Closed gobengo closed 2 years ago
It's conventional and useful to use 'job' and 'instance' labels on prometheus metrics to distinguish the origin of the observation. https://prometheus.io/docs/concepts/jobs_instances/
prom-client Registry has a setDefaultLabels method that can be used to include some labels on all metrics.
setDefaultLabels
https://indexer-metrics-collector-production.protocol-labs.workers.dev/metrics
Context
It's conventional and useful to use 'job' and 'instance' labels on prometheus metrics to distinguish the origin of the observation. https://prometheus.io/docs/concepts/jobs_instances/
prom-client Registry has a
setDefaultLabels
method that can be used to include some labels on all metrics.