Skip to content

Add Prometheus and Grafana to the pipeline#17

Draft
edilmedeiros wants to merge 7 commits intomasterfrom
feat/prometheus-grafana
Draft

Add Prometheus and Grafana to the pipeline#17
edilmedeiros wants to merge 7 commits intomasterfrom
feat/prometheus-grafana

Conversation

@edilmedeiros
Copy link
Contributor

No description provided.

Which is the standard port for Prometheus metrics.
@edilmedeiros edilmedeiros self-assigned this Jul 28, 2025
@edilmedeiros edilmedeiros added the enhancement New feature or request label Jul 28, 2025
@edilmedeiros
Copy link
Contributor Author

Everything seems to be in place, but I can't use the available dashboards in https://github.com/0xB10C/peer-observer/tree/master/tools/metrics/dashboards.

Still working to be them right.

Reminder to self: include documentation about the http endpoints we get with this pipeline.

@0xB10C
Copy link
Contributor

0xB10C commented Aug 8, 2025

Added up-to-date "playlist" dashboards in peer-observer/peer-observer#213 along with some documentation in https://github.com/0xB10C/peer-observer/tree/master/tools/metrics#grafana-dashboards - let me know if you run into any problems.

scrape_configs:
- job_name: 'peer-observer-metrics'
static_configs:
- targets: ['metrics:8001']
Copy link
Contributor

Choose a reason for hiding this comment

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

To allow for a multi-node setup, I use the label host in my set up for the dashboards. Even if you just have one host, you probably want to add a name for it here. See also https://github.com/0xB10C/peer-observer/tree/master/tools/metrics#grafana-dashboards

Suggested change
- targets: ['metrics:8001']
- targets: ['metrics:8001']
labels:
host: node1

@@ -0,0 +1,365 @@
{
Copy link
Contributor

@0xB10C 0xB10C Aug 8, 2025

Choose a reason for hiding this comment

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

if possible, it might be better to provision the dashboards from the peer-observer repo directly and not maintain them here too

@0xB10C
Copy link
Contributor

0xB10C commented Nov 7, 2025

This might be helpful: You can do this similar to https://github.com/0xB10C/peer-observer-infra-library/blob/e14fc1e29a3adbd35d5e3af73766039279fbf5c4/modules/web/web.nix#L451-L466 (which is in Nix, but you get the idea). I don't think the infrastructure focused dashboards in https://github.com/0xB10C/peer-observer-infra-library/tree/master/modules/web/dashboards are too relevant (since you don't run the node-exporter in the container I think), but you might be able to come up with others that are relevant for this docker setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments