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
At this point, occasional label changes may already occur. And you can also perform the following operations to make it easier to detect when the above-mentioned issues occur."
2. Use the cumulativeToDelta component in the OTel configuration to convert metrics to delta.
Expected Result
If the pod corresponding to the scraped instance does not change, the labels of the metrics should always remain the same.
Actual Result
The situation where occasional metric label changes occur.
Collector version
v0.95.0 (after troubleshooting, the latest version is likely to experience the same issue)
We discovered this issue because we observed that the value of the delta metric was the same as that of the cumulative metric. That is, there would be a sharp increase at a certain point.
After troubleshooting, we believe that when OTel updates the target information, some metrics read the target information, causing occasional and brief label errors. The following are the causes we believe.
For targets with the same URL, prometheus will update DiscoveredLabels with the information of the most recently processed target.
In the meantime, prometheus receiver will read the DiscoveredLabels of the target.
Step one and step two are concurrent. If step two is executed before step one is fully completed, it will cause step two to read the information of an unexpected target.
The following are examples.
And I have a question. Why does prometheus receiver need to add nodeResources?
The text was updated successfully, but these errors were encountered:
Component(s)
receiver/prometheus
What happened?
Description
When collecting metrics throug
kubernetes_sd_configs
, occasional label changes may occur.Steps to Reproduce
eg.
At this point, occasional label changes may already occur. And you can also perform the following operations to make it easier to detect when the above-mentioned issues occur."
2. Use the
cumulativeToDelta
component in the OTel configuration to convert metrics to delta.Expected Result
If the pod corresponding to the scraped instance does not change, the labels of the metrics should always remain the same.
Actual Result
The situation where occasional metric label changes occur.
Collector version
v0.95.0 (after troubleshooting, the latest version is likely to experience the same issue)
Environment information
Environment
OS: kubernetes
Compiler: go 1.22.0
OpenTelemetry Collector configuration
Log output
Additional context
We discovered this issue because we observed that the value of the delta metric was the same as that of the cumulative metric. That is, there would be a sharp increase at a certain point.
After troubleshooting, we believe that when OTel updates the target information, some metrics read the target information, causing occasional and brief label errors. The following are the causes we believe.
DiscoveredLabels
with the information of the most recently processed target.DiscoveredLabels
of the target.The following are examples.
And I have a question. Why does prometheus receiver need to add
nodeResources
?The text was updated successfully, but these errors were encountered: