Skip to content

Add OSS grafana dashboard template#82

Open
jsafy1 wants to merge 2 commits into
mainfrom
js/grafana-graphs
Open

Add OSS grafana dashboard template#82
jsafy1 wants to merge 2 commits into
mainfrom
js/grafana-graphs

Conversation

@jsafy1

@jsafy1 jsafy1 commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

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.

@jsafy1 jsafy1 requested a review from allenz682 as a code owner February 12, 2026 21:56
Copilot AI review requested due to automatic review settings February 12, 2026 21:56
@jsafy1 jsafy1 requested review from a team and nbrons as code owners February 12, 2026 21:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread pkg/metrics/dashboards/avalanche-indexer-metrics-template.json
"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]))",

Copilot AI Feb 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
Comment thread pkg/metrics/dashboards/avalanche-indexer-metrics-template.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants