1.7 KiB
1.7 KiB
Grafana Dashboards for Go Services
These community Grafana dashboards visualize Go runtime performance out of the box. They display the metrics automatically exposed by github.com/prometheus/client_golang — no custom instrumentation needed.
Recommended Dashboards
| Dashboard | ID | What it shows |
|---|---|---|
| Go Host & Runtime Metrics | 21221 | Host metrics + Go runtime (goroutines, heap, GC, threads) in one view |
| Go Processes | 6671 | Multi-process comparison — CPU, memory, goroutines, GC across all Go services |
| Go Metrics | 10826 | Focused Go runtime view — memory breakdown, GC pauses, allocations, goroutines |
How to Install
Dashboards are imported via Dashboards > New > Import in Grafana using the dashboard ID (e.g., 21221), then selecting the Prometheus data source.
These dashboards require the default Go collector metrics (go_goroutines, go_memstats_*, go_gc_duration_seconds, process_*). If you use the Prometheus client library with default collectors, everything works out of the box.
When to Use Each
- 21221 (Host & Runtime) — day-to-day monitoring of a single Go service alongside its host. Best as the default Go dashboard.
- 6671 (Go Processes) — comparing multiple Go services or replicas side by side. Useful during deployments to spot regressions across instances.
- 10826 (Go Metrics) — deep-diving into memory and GC behavior of a single service. Best for investigating performance issues.