elastic-ipfs / metrics-collector

collect elastic-ipfs events into metrics
Other
2 stars 0 forks source link

IndexerMetricsCollector can be configured with defaultLabels (e.g. job, instance) #20

Closed gobengo closed 2 years ago

gobengo commented 2 years ago

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.

gobengo commented 2 years ago

https://indexer-metrics-collector-production.protocol-labs.workers.dev/metrics