Skip to content

feat(docker): add Prometheus + Grafana monitoring compose overlay#3436

Merged
amir-deris merged 9 commits into
mainfrom
amir/plt-334-local-grafana-prometheus-docker-compose-setup
May 19, 2026
Merged

feat(docker): add Prometheus + Grafana monitoring compose overlay#3436
amir-deris merged 9 commits into
mainfrom
amir/plt-334-local-grafana-prometheus-docker-compose-setup

Conversation

@amir-deris
Copy link
Copy Markdown
Contributor

@amir-deris amir-deris commented May 14, 2026

Summary

  • Adds docker/docker-compose.monitoring.yaml — a compose overlay that attaches Prometheus and Grafana to the existing localnet network alongside the 4-node local cluster
  • Adds docker/docker_compose_monitoring/prometheus.yaml — scrape config targeting all four nodes (sei-node-{0-3}:1317) at 5 s intervals
  • Adds docker/docker_compose_monitoring/grafana-datasource.yaml — auto-provisions Prometheus as the default Grafana datasource on startup
  • Adds make docker-cluster-start-monitoring / make docker-cluster-stop-monitoring Makefile targets and updates docker/README.md to document the combined workflow alongside the existing script-based alternative

Note

Low Risk
Low risk: adds optional local Docker Compose monitoring services and make targets without changing chain/runtime logic or production configuration.

Overview
Adds a docker-compose.monitoring.yml overlay that runs Prometheus and Grafana on the existing localnet network, including a Prometheus scrape config for all four local nodes and a provisioned Grafana Prometheus datasource.

Introduces make docker-cluster-start-monitoring / make docker-cluster-stop-monitoring to bring the cluster + monitoring stack up/down in one command, and updates docker/README.md to document the combined workflow alongside the existing script-based approach.

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 19, 2026, 6:09 PM

@amir-deris amir-deris changed the title Added new docker compose stack for monitoring feat(docker): add Prometheus + Grafana monitoring compose overlay May 14, 2026
Comment thread Makefile Outdated
@amir-deris amir-deris requested review from bdchatham and masih May 14, 2026 17:03
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.31%. Comparing base (627db96) to head (4f20aa7).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3436      +/-   ##
==========================================
+ Coverage   58.96%   59.31%   +0.34%     
==========================================
  Files        2185     2118      -67     
  Lines      181835   174556    -7279     
==========================================
- Hits       107225   103537    -3688     
+ Misses      65008    61997    -3011     
+ Partials     9602     9022     -580     
Flag Coverage Δ
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 204 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cursor
Copy link
Copy Markdown

cursor Bot commented May 15, 2026

PR Summary

Low Risk
Low risk: changes are limited to local Docker/Makefile tooling and documentation, with no production code or consensus logic impact.

Overview
Adds a Docker Compose monitoring overlay to run Prometheus and Grafana alongside the existing 4-node localnet, including Prometheus scrape config for the four nodes and automatic Grafana provisioning of the Prometheus datasource.

Updates the Makefile to factor shared cluster env vars into CLUSTER_ENV_VARS and introduces make docker-cluster-start-monitoring / make docker-cluster-stop-monitoring to bring the cluster and monitoring stack up/down together, with corresponding docker/README.md documentation.

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

Comment thread docker/docker_compose_monitoring/prometheus.yaml Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

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 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, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1f70ad0. Configure here.

Comment thread Makefile Outdated
@amir-deris amir-deris enabled auto-merge May 19, 2026 18:13
@amir-deris amir-deris added this pull request to the merge queue May 19, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 19, 2026
@amir-deris amir-deris added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 9077811 May 19, 2026
43 of 44 checks passed
@amir-deris amir-deris deleted the amir/plt-334-local-grafana-prometheus-docker-compose-setup branch May 19, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants