Prometheus exporter for VMAX Unisphere metrics built with PowerShell!
Polaris - A cross-platform, minimalist web framework for PowerShell.
NSSM - A service helper which doesn't suck.
- Update the
config.json
with the correct Unisphere API settings for your environment. - The metrics which will be collected are defined in
metrics.json
- 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"
- Copy the
StartListener.ps1
function to an unprotected folder such asD:\Resources\UnisphereExporter
Copy-Item -Path .\UnisphereExporter\StartListener.ps1 -Destination D:\Resources\UnisphereExporter\StartListener.ps1
-
Verify the paths in
CreateService.ps1
are correct based on where you've copied the source files -
Setup as a service by running
CreateService.ps1
-
Validate by locally browsing to http://localhost:9183/metrics