-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Istio standard metrics do not increase after 1hour or so even though real time traffic is flowing #51100
Comments
Request to help on this since the issue happenning in sporadic manner. |
CC @zirain This sounds like related to metric rotation? We need prometheus to scrape often enough. |
metric rotation disabled by default. |
Thanks for the input, We tried to put env variable METRIC_ROTATION_INTERVAL as 10s in pilot config, intially the metrics started flowing in then observed that the metrics stopped coming. So we have to removet the above env variable. When we do port-forwarding to envoy metrics of pod "http://{host}:15090/stats/prometheus", we observed that the TCP sent / received bytes counters are not incresing, even if the data processing is happenning. Request to help on this. |
While investigating this issue in detail, discovered a behavioural change between the 1.18.7 and 1.19.0 versions. Observations with 1.18.7 and below versions: PG@C02G40YWMD6M istio-1.18.7 % bin/istioctl x es pvos-switch-state-publisher-c4f47bf8d-6r7qn.acp-system -oprom | grep _bytes_total Observations with 1.19.0 and above versions till 1.22.0: PG@C02G40YWMD6M istio-1.19.0 % bin/istioctl x es pvos-switch-state-publisher-c4f47bf8d-l72wr.acp-system -oprom | grep _bytes_total NOTE: till Istio 1.18.7, in our clusters, stats are being captured properly. There is no issues of metrics not being reported. Could you please help understand this behavioural change in detail and could this be a concern in getting the proper stats? |
Hi @kyessenov, in 1.19 we can see there is PR (istio/proxy#4887) raised on metadat exchange, do you see this could introduce the above bevaior ? Request your input on this. |
Found an issue in the istio proxy code. Please check. Issue: Updating peer id: Fetching the peerInfo: This setting of "envoy.wasm.metadata_exchange.peer_unknown" changes were added in 1.19.0, before the keys were either downstream_peer_id/upstream_peer_id. Hence, stats were coming with till 1.18.7 versions and stopped from 1.19.0 version. As @SanjayaKumarSahoo pointed out, this got introduced as part of PR istio/proxy#4887. |
any update on this issue please? |
kuat is out, will take a looks if I have bandwith, I think it happen after 1h because the idle time is default to 1h. |
Hi,
We have recently upgraded Istio from 1.16.4 to 1.19.1 and started noticing an issue where Istio standard metrics such as istio_tcp_received_bytes_total, istio_tcp_sent_bytes_total counters do not increase after 1 hour or so of deployment.
Once we restart the application k8s pods or update the istio configmap by removing and adding back defaultProviders:metrics:prometheus, istio standard metrics start working again but stops after sometime.
current Istio version: 1.19.1
K8s version: 1.26
We have noticed the same issue with Istio 1.21.2 version in our environment.
Any leads to resolve this issue would be highly appreciated.
The text was updated successfully, but these errors were encountered: