diff --git a/examples/customlabels/main.go b/examples/customlabels/main.go index fcfce295e..966544a05 100644 --- a/examples/customlabels/main.go +++ b/examples/customlabels/main.go @@ -33,7 +33,7 @@ func main() { // Create a new registry. reg := prometheus.NewRegistry() - prometheus.WrapRegistererWith(prometheus.Labels{"serviceName": "my-service-name"}, reg).MustRegister( + prometheus.WrapRegistererWith(prometheus.Labels{"service": "my-service-name"}, reg).MustRegister( collectors.NewGoCollector(), collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), )