For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Grafana
Visualize agentgateway metrics and traces with Grafana
Use Grafana to create dashboards for agentgateway metrics and visualize distributed traces.
Quick start
Run Grafana with Docker:
docker run -d --name grafana \
-p 3001:3000 \
grafana/grafana:latestAccess Grafana at http://localhost:3001 (default credentials: admin/admin).
Add Prometheus data source
- Go to Configuration → Data Sources
- Click Add data source
- Select Prometheus
- Set URL to
http://prometheus:9090(or your Prometheus URL) - Click Save & Test
Add Jaeger data source
For distributed tracing:
- Go to Configuration → Data Sources
- Click Add data source
- Select Jaeger
- Set URL to
http://jaeger:16686(or your Jaeger URL) - Click Save & Test
Sample dashboard
Create a dashboard with these panels:
Request rate
rate(agentgateway_requests_total[5m])Request duration (p99)
histogram_quantile(0.99, rate(agentgateway_request_duration_seconds_bucket[5m]))Active connections
agentgateway_connections_activeError rate
rate(agentgateway_requests_total{status=~"5.."}[5m]) / rate(agentgateway_requests_total[5m])LLM token usage
rate(agentgateway_llm_tokens_total[5m])MCP sessions
agentgateway_mcp_sessions_activeDocker Compose example
version: '3'
services:
agentgateway:
image: ghcr.io/agentgateway/agentgateway:latest
ports:
- "3000:3000"
- "15020:15020"
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana-storage:/var/lib/grafana
volumes:
grafana-storage: