istio: Envoy stat monitor duplicated metrics
Is this the right place to submit this?
- This is not a security vulnerability or a crashing bug
- This is not a question about how to use Istio
Bug Description
Use prometheus-operator helm chart 58.5.3. Use istio-base/istiod/istio-gateway deployed via helm chart 1.21.1
Applied CR pod monitor as defined: https://github.com/istio/istio/blob/master/samples/addons/extras/prometheus-operator.yaml
Found error at prometheus pod:
ts=2024-07-22T12:05:19.281Z caller=scrape.go:1738 level=warn component="scrape manager" scrape_pool=podMonitor/istio-system/envoy-stats-monitor/0 target=http://192.168.143.81:15020/stats/prometheus msg="Error on ingesting samples with different value but same timestamp" num_dropped=4
Example of scrapped metrics shows that metric istio_tcp_connections_closed_total is doubled with the same value.
I do not know how to find what are duplicated metrics with different timestamps.
It raised alert on prometheus like: https://github.com/prometheus-operator/kube-prometheus/wiki/PrometheusDuplicateTimestamps
Version
client version: 1.20.3
control plane version: 1.21.1
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 23 (11 by maintainers)
Could it be related with the 2.52 changes on Prom that could have brought to light these cases ?
On our setup we see a similar situation with the following metrics:
@slawekww @zirain @kyessenov Please ^^^^^^
I can provide debugging data if required.
Guys,
Please re-open this, we see exactly the same issue in our Istio 1.24.1 clusters running Prometheus 2.52.0
The “samples with different value but same timestamp” messages are coming from Prometheus indeed but that is part of a check the Prometheus folks introduced to spot duplicates.
We have certain workloads which Prometheus complaints of exactly the same duplicate metrics as above and then we have others also Istio based that don’t exhibit the same Prometheus problem.
Is the case that the metric is missing say port metadata of the service the proxy is talking too to disambiguate ?
In any case istio shouldn’t be producing the same metric with the same labels twice ( different values ).
seems not duplicateistio.stats filter does not duplicate, @kyessenov PTAL.