Skip to content

feat(monitoring): add Prometheus config, Grafana dashboard, and compose overlay#822

Open
wangzishuai1987 wants to merge 1 commit into
jarchain:masterfrom
wangzishuai1987:feat/monitoring-grafana
Open

feat(monitoring): add Prometheus config, Grafana dashboard, and compose overlay#822
wangzishuai1987 wants to merge 1 commit into
jarchain:masterfrom
wangzishuai1987:feat/monitoring-grafana

Conversation

@wangzishuai1987
Copy link
Copy Markdown

Summary

Add monitoring stack for the Grey JAM node testnet:

  • monitoring/prometheus.yml: scrapes all 6 validators on port 9615
  • monitoring/grafana/dashboards/grey.json: pre-built Grafana dashboard with 12 panels covering block height, finality lag, peer count, work packages, PVM gas, RPC latency (p95), database size, gossipsub messages, and state transitions
  • docker-compose.monitoring.yml: overlay that adds Prometheus + Grafana containers alongside the testnet

Usage:

docker compose -f docker-compose.yml -f docker-compose.monitoring.yml up

Grafana: http://localhost:3000 (admin/admin)
Prometheus: http://localhost:9090

Context

Addresses #231 (Grey: Docker image, docker-compose testnet, and deployment tooling):

  • JSON dashboard for Prometheus metrics
  • docker-compose.monitoring.yml overlay: adds Prometheus + Grafana containers
  • Prometheus scrape config targeting all 6 validators

Test plan

  • Files are valid YAML / JSON
  • docker compose -f docker-compose.yml -f docker-compose.monitoring.yml config validates
  • Dashboard panels render with live metrics from a running testnet

…se overlay

Add monitoring stack for the Grey testnet:

- `monitoring/prometheus.yml`: scrapes all 6 validators on port 9615
- `monitoring/grafana/dashboards/grey.json`: pre-built dashboard with
  panels for block height, finality lag, peers, work packages, PVM gas,
  RPC latency, database size, gossipsub messages, and state transitions
- `docker-compose.monitoring.yml`: overlay that adds Prometheus + Grafana
  containers, connected to the testnet network

Usage:
  docker compose -f docker-compose.yml -f docker-compose.monitoring.yml up

Ref: jarchain#231
@github-actions
Copy link
Copy Markdown
Contributor

Genesis Review

Comparison targets:

How to review

Post a comment with the following format (rank from best to worst):

/review
difficulty: <commit1>, <commit2>, ..., <commitN>, currentPR
novelty: <commit1>, <commit2>, ..., <commitN>, currentPR
design: <commit1>, <commit2>, ..., <commitN>, currentPR
verdict: merge

Use the short commit hashes above and currentPR for this PR.
Each line ranks all comparison targets + this PR from best to worst.

To meta-review another reviewer's comment, react with 👍 or 👎.

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.

1 participant