prometheus-cpp icon indicating copy to clipboard operation
prometheus-cpp copied to clipboard

Sample the summary observed values

Open taozhijiang opened this issue 2 years ago • 0 comments

Support setting up sample_ratio for summary metric. When used in our production environment, the thoughput qps is extremely high, and we found the default implemention will cause serious performance problem. So the summary metric, we recored full count and sum value, but can sample the observations to calculate quantiles. This works an can reduce performance and resource impact.

taozhijiang avatar Sep 09 '22 12:09 taozhijiang