Label Matching Problem in PromQL Queries for TCP Retransmission and Syn Retransmission Rates #949
Labels
bug
Something isn't working
help wanted
Extra attention is needed
keepalive
Use to prevent automatic closing
Issue Description
There is a label matching problem in the following PromQL queries:
Problem
The
sum by (instance)
aggregation is applied to the ratio calculations, but thekube_pod_info
metric is not aggregated on theinstance
label, and it does not appear in theon
clause. As a result, the join operation is performed on thecluster
,namespace
, andpod
labels, which might lead to incorrect comparisons or misleading results.Steps to Reproduce
Expected Behavior
The queries should correctly aggregate and join the metrics on the appropriate labels to avoid misleading results.
Possible Solution
To fix the issue, ensure that the
instance
label is considered in the join operation or modify the aggregation strategy. One possible solution might be to aggregatekube_pod_info
on theinstance
label as well.Changes
The label matching problem was introduced in the following commit:
d63872c
The text was updated successfully, but these errors were encountered: