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
histogram_percentile is recommended to use with rate function which assumes we have at least 2 data points scraped. But sometime it is not true.
For example, a lot of services start with db connection initialization. If I use a histogram to monitor the latency to establish 10-20 db connections. Normally they are scraped in one time and applying rate function will not generate percentile value at all. I have confirmed that in grafana.
This issue can be found in any histogram and no percentile is generated for the first scraped data point. Sometimes it can be ignored. But sometimes we can not, such as the scenario that I listed above.
Is there any way to generate the percentile correctly? or is there any other better metric to monitor db connection latency distribution scraped only one time normally?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
histogram_percentile is recommended to use with rate function which assumes we have at least 2 data points scraped. But sometime it is not true.
For example, a lot of services start with db connection initialization. If I use a histogram to monitor the latency to establish 10-20 db connections. Normally they are scraped in one time and applying rate function will not generate percentile value at all. I have confirmed that in grafana.
This issue can be found in any histogram and no percentile is generated for the first scraped data point. Sometimes it can be ignored. But sometimes we can not, such as the scenario that I listed above.
Is there any way to generate the percentile correctly? or is there any other better metric to monitor db connection latency distribution scraped only one time normally?
Beta Was this translation helpful? Give feedback.
All reactions