From 6efd27deef6f8be471236bc790be32f3ca17d300 Mon Sep 17 00:00:00 2001 From: Ying WANG <74549700+ying-jeanne@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:20:45 +0200 Subject: [PATCH] Update examples/customlabels/main.go Co-authored-by: Bartlomiej Plotka Signed-off-by: Ying WANG <74549700+ying-jeanne@users.noreply.github.com> --- examples/customlabels/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/customlabels/main.go b/examples/customlabels/main.go index de7bad1..fcfce29 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": "bartek"}, reg).MustRegister( + prometheus.WrapRegistererWith(prometheus.Labels{"serviceName": "my-service-name"}, reg).MustRegister( collectors.NewGoCollector(), collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}), )