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 bug
Not exactly a bug. It is more a discrepancy between Cortex OTLP handler and Prometheus' OTLP handler. They don't have the same behavior today.
It doesn't convert resource attributes to metric labels automatically but instead use PromoteResourceAttributes to specify which resource attributes to promote to labels. Meanwhile, it enables target_info metric which contains the resource attributes info.
Describe the bug
Not exactly a bug. It is more a discrepancy between Cortex OTLP handler and Prometheus' OTLP handler. They don't have the same behavior today.
Prometheus OTLP handler has the following configuration enabled https://github.com/prometheus/prometheus/blob/main/storage/remote/write_handler.go#L515
It doesn't convert resource attributes to metric labels automatically but instead use
PromoteResourceAttributes
to specify which resource attributes to promote to labels. Meanwhile, it enablestarget_info
metric which contains the resource attributes info.Cortex is doing the opposite. It disables
target_info
metric and automatically convert all resource attributes to metric labels https://github.com/cortexproject/cortex/blob/master/pkg/util/push/otlp.go#L41. This could cause cardinality to blow up and cause issues for users who migrate from Prometheus to Cortex.Proposal
PromoteResourceAttributes
Feature Request: OTel resource attribute promotion #6110 and enabletarget_info
metrictarget_info
metric or not can be a separate feature flag.The text was updated successfully, but these errors were encountered: