Métriques du dépôt
- Stars
- (64 042 stars)
- Métriques de merge PR
- (Merge moyen 11j 5h) (118 PRs mergées en 30 j)
Description
Problem
Relates to https://docs.google.com/document/d/1epvoO_R7JhmHYsII-GJ6Yw99Ky91dKOqOtZGqX7Bk0g/edit#heading=h.4lju4hrri2ch Resource Attributes and their mapping section.
This issue is intended as an umbrella issue to address the various problems that come from supporting natively OTEL resource attributes. There are two cases that we want to support:
- Application pushing metrics through the OTEL Collector.
- Application instrumented with OTEL SDK exposing metrics through /metrics and Prometheus scraping them.
We want both cases to be handled equally so that the ingestion method is not part of the problem.
Proposal
The OTEL spec says that everything that is a resource attribute goes into target_info. One potential solution today is that Prometheus copy these attributes into series labels.
One way to do this is by setting up a config that specifies which attributes need to be mapped as labels. This config can be used for the both usecases that we have to support.