Grafana Dashboard Creation
Configuring Grafana Datasource
Once the environment is up and running, login to the Grafana UI:
http://appliance_ip_address:3000
Then navigate to Grafana -> Data sources
- On the next screen, click “Add new data source”
- Then select Prometheus
- Prometheus server URL: http://localhost:9090
- Scroll to bottom and select “Save & test”
Configuring Dashboard Metric Charts:
Then navigate to Home -> Dashboards -> New -> New Dashboard
- Click “Add visualization”
- Select “Prometheus” as the DataSource
- Click Metrics Explorer-> Open
- Select a metric (example below selects NutanixCluster_stats_avg_io-Latency_usecs)
- Then click “Run queries”
- Under “Panel Options” give the chart an appropriate title
- The “Save dashboard”
Customizing Legend Titles
- To modify the legend titles, navigate to the “Overrides” section above the “Panel options Title” section
- Select “Add field override” -> “Fields with name” -> “your cluster name” -> “Add override property” -> “Display name” -> “type cluster / legend entity name” -> “Save Dashboard”
Before Override:
After Override:
Operations to convert metrics
The exporter stats have default X & Y Axis values. In this example IO Latency is in microseconds, this will get converted to milliseconds to better articulate what’s reported.
Navigate back to your Dashboard and edit your visualization
- Under “Metric” click “Operations”
- Select “Binary operations” -> “Divide by scalar”
- Enter “1000” as the “Value”
- 1000 microseconds = 1ms, you can see the graph above has not yet been converted (or if it has you have serious performance issues! 😄)
- Then click “Run queries”
A finished dashboard look example:
Demo Video Coming Soon