clintcolding / UnisphereExporter

Prometheus exporter for VMAX Unisphere metrics built with PowerShell!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unisphere Exporter

Prometheus exporter for VMAX Unisphere metrics built with PowerShell!

Dependencies

Polaris - A cross-platform, minimalist web framework for PowerShell.
NSSM - A service helper which doesn't suck.

Configuration

  • Update the config.json with the correct Unisphere API settings for your environment.
  • The metrics which will be collected are defined in metrics.json

Running as a Service

  1. Clone this repo to C:\Program Files\WindowsPowerShell\Modules
Set-Location "C:\Program Files\WindowsPowerShell\Modules"
git clone "https://gitlab.servevirtual.net/Platform/UnisphereExporter.git"
  1. Copy the StartListener.ps1 function to an unprotected folder such as D:\Resources\UnisphereExporter
Copy-Item -Path .\UnisphereExporter\StartListener.ps1 -Destination D:\Resources\UnisphereExporter\StartListener.ps1
  1. Verify the paths in CreateService.ps1 are correct based on where you've copied the source files

  2. Setup as a service by running CreateService.ps1

  3. Validate by locally browsing to http://localhost:9183/metrics

About

Prometheus exporter for VMAX Unisphere metrics built with PowerShell!


Languages

Language:PowerShell 100.0%