Closed ravitri closed 11 months ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
cc @frzifus
thx @ravitri, I will have a look asap.
@frzifus - Would like to share an update on this.
We checked more on the recording rule expression and added job
and instance
in the aggregation as well and it worked for us. Example:
BEFORE:
sum by (mylabel)(sum_over_time(dummy_metric[1m]))
AFTER:
sum by (job, instance, mylabel)(sum_over_time(dummy_metric[1m]))
Basically what was understood is that setting honor_labels: true
relied on either the job
or the instance
label to be present else it reported error. I am inclined to think that it's the expected behavior but also specifically from recording rules and cardinality point of view am also wondering if honor_labels: true
should ignore absence of job
and instance
or not.
Would like to have your thoughts on it as well. Thanks a lot!
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been closed as inactive because it has been stale for 120 days with no activity.
Component(s)
receiver/prometheus
What happened?
Description
Metrics ingestion using prometheus receiver doesn't work when
match[]
filter scrapes/federate
endpoint that includes label/metric from a recording rule which doesn't have job/instance label.Details
The requirement is that
/federate
endpoint is to be scraped using a match filter label or metric of the recording rule(s) withhonor_labels: true
but it doesn't work. However, the metric is exported to OTLPHTTP endpoint whenhonor_labels: false
.The debug logs report the following(log modified to redact details and extra labels):
Steps to Reproduce
otel_collect: true
:/federate
endpoint directly.Expected Result
/federate
endpoint withotel_collect: true
should work fine whenhonor_labels: true
.Actual Result
recording_rule_metric
metric is visible in otlphttp endpoint whenhonor_labels: false
. Also, it does not havejob
orinstance
labels.match[]
filter doesn't work withotel_collect: true
nor__name__="recording_rule_metric"
whenhonor_labels: true
.dummy_metric
has thejob
andinstance
labels and the metric is exported to otlphttp endpoint even whenhonor_labels: true
.Collector version
0.77.0
Environment information
Environment
OS: Red Hat Enterprise Linux CoreOS 412.86.202303241612-0 (Ootpa) Platform: AWS Kubernetes: v1.25.7
OpenTelemetry Collector configuration
Log output
Additional context
No response