Skip to content

NetApp StorageGRID Webscale Prometheus proxy for Grafana

Notifications You must be signed in to change notification settings

sepich/netapp-grafana-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetApp StorageGRID Webscale proxy for Grafana

Per official netapp API docs Prometheus metrics are exposed:

metrics – Operations on StorageGRID Webscale metrics including instant metric queries at a single point in time and range metric queries over a range of time.

Note: The Grid Management API uses the Prometheus systems monitoring tool as the backend data source. For information about constructing Prometheus queries, see the Prometheus web site.

But this endpoint is incompatible for direct use by Grafana, because of Token requirements and renamed URI locations.

This proxy fixes incompatibilities and allows to have Grafana dashboards for data inside StorageGRID.

Note: Turns out Grafana already exists on Admin node, but blocked by firewall. So, you could either allow port 3000 and use internal NetApp grafana, or use this proxy - if you have no root access to NetApp.

Quick start

You can use proxy.py directly, or there is docker-compose example with grafana provided for quick check.

First, create User on NetApp with Metric Query access rights:

Then create secret file with his creds and endpoint URI, and save it as napp.json:

{"username": "zabbix", "password": "pass", "endpoint": "https://napp.local"}

Start proxy and grafana:

docker-compose up

Proxy will check access on start, and die with detailed message in case of any issues. In case everything is up - grafana should be available on your http://localhost

Login with admin/admin and set the datasource to proxy container:

Then you should see NetApp items:

Use in docker

Image is available on docker hub as: sepa/netapp-grafana-proxy
You can set these environment variables to override defaults:

environment:
  PORT: '8080'
  SECRET: /run/secrets/napp.json

About

NetApp StorageGRID Webscale Prometheus proxy for Grafana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published