Skip to content

Zumo grafana prometheus dashboard - #510

Merged
fcostaoliveira merged 3 commits into
masterfrom
zumo-grafana-prometheus-dashboard
Jul 15, 2026
Merged

fcostaoliveira merged 3 commits into
masterfrom
zumo-grafana-prometheus-dashboard

Conversation

@zumo64

@zumo64 zumo64 commented Jul 13, 2026 •

Copy link
Copy Markdown
Collaborator

Added a memtier grafana dashboard for the prometheus datasource


Note

Low Risk
Documentation and Grafana JSON only; no application or exporter code changes.

Overview
Adds a Prometheus Grafana dashboard at grafana/dashboards/prom-memtier.json for live runs using --prometheus-port, alongside the existing Graphite-oriented memtier.json.

The new dashboard wires PromQL across the exported memtier_* metrics (throughput, latency percentiles and heatmap, bytes, hits/misses, errors, retries, connections/threads, run progress, build info, and exporter health). Instance, Run (--prometheus-run-label=run=NAME), and ad hoc label Filters support comparing multiple benchmark processes or labeled runs on one view.

.gitignore now un-ignores grafana/dashboards/*.json so dashboard definitions are versioned despite the global *.json rule.

docs/REALTIME_METRICS.md splits Grafana import instructions into separate Graphite and Prometheus sections and points Prometheus users at prom-memtier.json.

Reviewed by Cursor Bugbot for commit 28f4e38. Bugbot is set up for automated code reviews on this repo. Configure here.

zumo64 added 2 commits July 13, 2026 19:22
added !grafana/dashboards/*.json in .gitignore
added grafana/dashboards/prom-memtier.json
added Grafana dashboard instructions
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Run filter excludes unlabeled metrics

High Severity

Every panel selector includes run=~"$run" with the Run variable’s allValue set to .*. In PromQL, that matcher only matches series that actually have a run label. The exporter adds custom labels only via --prometheus-run-label (optional by default), so a typical --prometheus-port run has no run label and all panels stay empty even when “All” is selected—contrary to the Run variable description.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 860e514. Configure here.

@zumo64
zumo64 requested a review from fcostaoliveira July 15, 2026 07:27
Remove a double space before "into", drop trailing whitespace, and add a
final newline in the Grafana dashboard import section.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 28f4e38. Configure here.

"expr": "sum by (instance, run) (rate(memtier_hits_total{instance=~\"$instance\", run=~\"$run\"}[$__rate_interval])) / (sum by (instance, run) (rate(memtier_hits_total{instance=~\"$instance\", run=~\"$run\"}[$__rate_interval])) + sum by (instance, run) (rate(memtier_misses_total{instance=~\"$instance\", run=~\"$run\"}[$__rate_interval])))",
"legendFormat": "{{run}} {{instance}}",
"refId": "A"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hit ratio omits arbitrary misses

Medium Severity

The Hit Ratio and Hits / Misses panels use only memtier_hits_total and memtier_misses_total, while the exporter exposes --command traffic on memtier_arbitrary_hits_total and memtier_arbitrary_misses_total. The panel text says arbitrary hits are folded into those totals, which the exporter does not do.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 28f4e38. Configure here.

@fcostaoliveira fcostaoliveira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed. Docs + Grafana JSON only, low risk.

  • All 30 PromQL expressions map to real metrics emitted by the exporter (prometheus_metrics.cpp) — no name mismatches.
  • --prometheus-port / --prometheus-run-label=run=NAME match the actual flags.
  • Dashboard JSON is valid (20 panels); uid memtier-prometheus doesn't collide with the Graphite memtier.json.

On the Cursor Bugbot "Run filter excludes unlabeled metrics" finding: this is a false positive. In PromQL a matcher that matches the empty string also selects series that don't have the label at all, and the Run variable's allValue is .* — so run=~".*" (the "All" case) does include runs started without --prometheus-run-label. The variable description is correct as written.

Pushed a small follow-up commit fixing whitespace nits in REALTIME_METRICS.md (double space, trailing whitespace, missing final newline).

@fcostaoliveira
fcostaoliveira merged commit 657ef37 into master Jul 15, 2026
122 checks passed
fcostaoliveira added a commit that referenced this pull request Jul 16, 2026
* added memtier grafana dashboard for prometheus

added !grafana/dashboards/*.json in .gitignore
added grafana/dashboards/prom-memtier.json

* Update REALTIME_METRICS.md

added Grafana dashboard instructions

* docs: fix REALTIME_METRICS.md whitespace nits

Remove a double space before "into", drop trailing whitespace, and add a
final newline in the Grafana dashboard import section.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: fcostaoliveira <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
fcostaoliveira added a commit that referenced this pull request Jul 16, 2026
* added memtier grafana dashboard for prometheus

added !grafana/dashboards/*.json in .gitignore
added grafana/dashboards/prom-memtier.json

* Update REALTIME_METRICS.md

added Grafana dashboard instructions

* docs: fix REALTIME_METRICS.md whitespace nits

Remove a double space before "into", drop trailing whitespace, and add a
final newline in the Grafana dashboard import section.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: fcostaoliveira <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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