prometheus-cpp
prometheus-cpp copied to clipboard
Sample the summary observed values
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.