Skip to content

Instantly share code, notes, and snippets.

@rfratto
rfratto / non_global_metrics.go
Last active February 17, 2021 20:44
One way to do non-global Prometheus metrics in an application
package main
import (
"os"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/expfmt"
)