I use OTEL http exporter to export metrics data to Grafana Cloud.
I noticed that resource attributes are ignored when ingesting metrics data into prometheus by Grafana cloud.
I wonder if it is possible to include resource attribute in time series label?
Grafana Mimir is long-term storage for Prometheus, so I believe Prometheus must sort it first - there is no point to have vendor specific implementation for this. Try to find some Github issue for that.
I would say workaround is simple - just use some processor and “move” all resource attributes to attributes before exporting to Mimir/Grafana Cloud.
We’re also running into this problem, using the OTEL .NET library, and sending logs, traces and metrics to the OTEL ingestion endpoint for Grafana Cloud.
Resource attributes are not being preserved for metrics, which means we can’t distinguish which deployment environment the metrics are coming from.
We’re not using a collector, and it’s also likely not necessary / an option for the environment, and as we’re just going through the OTEL endpoint it’s not clear how we could resolve this.