Add OSS grafana dashboard template#82
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a Grafana dashboard template for monitoring the Avalanche indexer metrics. The dashboard is designed to work with OSS (open-source) Grafana instances and provides comprehensive visibility into indexer performance, including block processing rates, RPC metrics, receipt fetching, log processing, and error tracking.
Changes:
- Added a complete Grafana dashboard JSON template with 18 panels covering all key indexer metrics
- Includes template variables for filtering by job, environment, EVM chain ID, region, and cloud provider
- Provides stat panels for key metrics and time series visualizations for trends and latencies
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "targets": [ | ||
| { | ||
| "refId": "A", | ||
| "expr": "sum by (type) (rate(indexer_errors_total{job=~\"$job\",environment=~\"$environment\",evm_chain_id=~\"$evm_chain_id\",region=~\"$region\",cloud_provider=~\"$cloud_provider\"}[5m]))", |
There was a problem hiding this comment.
This query uses a hardcoded time range [5m] instead of the dynamic [$__rate_interval] variable that is used consistently in other panels throughout the dashboard (lines 223, 453, 480, 501, 506, 534, 539, 567, 572, 600, 628, 633). Using [$__rate_interval] is a Grafana best practice that automatically adjusts the time range based on the dashboard's refresh rate and time window, ensuring more accurate rate calculations. Consider changing [5m] to [$__rate_interval] for consistency and better adaptability.
Why this should be merged
Adds a template for users to create their own dashboards off of.
How this works
Paste into Grafana to build a dashboard.
How this was tested
Tested in Grafana.
Need to be documented in RELEASES.md?
No.