You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
We should use this preceence instead to allow any override in external_labels I think...
OTEL resources (marked as "usefull")
OTEL attributes
external_labels config
Additional context
As an exemple I would override in my context the instance resource to put a hostname on it.
I will do it by a resource processor, but this order seems more smart anyway.
The text was updated successfully, but these errors were encountered:
Hi @gillg making this change would make it incompatible with how Prometheus does it unfortunately. Prometheus prioritises metric labels over external_labels:
Is your feature request related to a problem? Please describe.
Actualy the final label set pushed to prometheus is constructed with :
external_labels
configSee :
opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter/helper.go
Line 115 in 140f00a
Describe the solution you'd like
We should use this preceence instead to allow any override in
external_labels
I think...external_labels
configAdditional context
As an exemple I would override in my context the
instance
resource to put a hostname on it.I will do it by a resource processor, but this order seems more smart anyway.
The text was updated successfully, but these errors were encountered: