sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.96k stars 577 forks source link

Prometheus metric endpoint summary metrics do not contain '_sum' field #361

Open Alphayeeeet opened 8 months ago

Alphayeeeet commented 8 months ago

The metrics available under host:port/service/metrics/prometheus are not common to the prometheus format.

For example the following metric does not contain an '_sum' value to be able to calculate the average value by dividing sum/count.

image

The common format which contains quantiles, sum and count is documented on the official prometheus site: https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations

Maybe the metric libraries should be updated.

nblair commented 8 months ago

Thanks @Alphayeeeet for opening this; I've labeled it as an Enhancement Request, so we'll leave it open to track demand.

Alphayeeeet commented 4 months ago

@nblair Any updates on this? Without this metric sums, monitoring is quite difficult to get reasonable numbers for average.