The example should divide the sum by the count, as described in https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations