Update examples/customlabels/main.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com> Signed-off-by: Ying WANG <74549700+ying-jeanne@users.noreply.github.com>
This commit is contained in:
parent
b079872c87
commit
6efd27deef
|
@ -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{}),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue