Skip to content

Conversation

@KolbyML
Copy link
Member

@KolbyML KolbyML commented Oct 22, 2025

Tyler wanted a way to easily setup prometheus/grafana locally. Here is my setup using docker compose.

Quick run instructions

./target/bin/nitro --dev --metrics --metrics-server.addr=0.0.0.0

^ enable metrics on nitro node use --metrics-server.addr=0.0.0.0 for maximum cross platform compatibility (change to local host at your own risk 👻)

cd metrics
docker compose up

^ cd into the metrics folder, then run docker compose up to start the prometheus/grafana setup

View your grafana dashboard at http://localhost:3000/ username/password is admin

For more information read the readme at metrics/README.md

Intentions

This PR is just to add my grafana setup to this repo as suggested by Tsahi and to help Tyler. Deeper integrations into the nitro-testnode can happen in future PR's if desired. I want this metrics setup to be compatible with running nitro locally regardless though ideally. As I want to use this setup if I am running nitro locally or https://github.com/OffchainLabs/nitro-devnode

@KolbyML KolbyML requested a review from tsahee October 22, 2025 22:25
@cla-bot cla-bot bot added the s label Oct 22, 2025
Copy link

@relyt29 relyt29 left a comment

Choose a reason for hiding this comment

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

I'm not tsahee so wait for approval from him, but I can confirm that I reviewed the code and I don't have any issues with it, and I was also able to reproduce the desired result by following instructions and running nitro locally with metrics

Thanks @KolbyML! :)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants