I am currently using github.com/prometheus/client_golang to serve as an endpoint for retrieving metrics for my Golang appplication. It provides many default datasets out of the box, for example:
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 10
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.13.10"} 1
It seems like I can not find any functionality in the library to add labels to these datasets. Because I'll have many of these applications running on the same machine, I need to add labels to differentiate the datapoints. Is there any way to do this in the client_golang library?