client_golang library.
See the overview for the general approach.
1. Add the dependency
2. Register custom metrics and expose /metrics
The default registry automatically exports Go runtime metrics (go_* — goroutines, GC pauses, heap, etc.) and process
metrics (process_* — CPU, memory, open FDs).
3. Declare the metrics endpoint in ops.json
4. Visualize with a community dashboard
| Dashboard | ID | Notes |
|---|---|---|
| Go Runtime Metrics | 14061 | Built by Grafana Labs specifically for the Prometheus Go Client Library — recommended starting point. |
| Go Processes | 6671 | Long-running community dashboard. Memory used, file descriptors, GC details, per-process status. |
| Go Metrics | 10826 | Kubernetes-oriented Go runtime dashboard, useful if you deploy via Helm. |
emails_sent_total, etc.) can be charted alongside.