Prometheus + Grafana Setup
Prometheus + Grafana Setup
Prometheus + Grafana Setup
This guide shows how to set up Prometheus and Grafana for visualizing Dynamo metrics on a single machine for demo purposes.

Components:
For metrics reference, see Metrics Documentation.
This is a single machine example.
Start the observability stack (Prometheus, Grafana, Tempo, exporters). See Observability Getting Started for instructions and prerequisites.
Start frontend and worker (a simple single GPU example):
After the workers are running, send a few test requests to populate metrics in the system:
After sending a few requests, the Prometheus Exposition Format text metrics are available at:
http://localhost:8000/metricshttp://localhost:8081/metricsOnce Dynamo components are running:
http://localhost:3000 (username: dynamo, password: dynamo)Other interfaces:
http://localhost:9090Note: If accessing from another machine, replace localhost with the machine’s hostname or IP address, and ensure firewall rules allow access to these ports (3000, 9090).
The Prometheus configuration is specified in prometheus.yml. This file is set up to collect metrics from the metrics aggregation service endpoint.
Please be aware that you might need to modify the target settings to align with your specific host configuration and network environment.
After making changes to prometheus.yml, restart the Prometheus service. See Observability Getting Started for Docker Compose commands.
Grafana is pre-configured with:
Verify services are running using docker compose ps
Check logs using docker compose logs
Check Prometheus targets at http://localhost:9090/targets to verify metric collection.
If you encounter issues with stale data or configuration, stop services and wipe volumes using docker compose down -v then restart.
Note: The -v flag removes named volumes (grafana-data, tempo-data), which will reset dashboards and stored metrics.
For specific Docker Compose commands, see Observability Getting Started.
For detailed information on creating custom metrics in Dynamo components, see: