http stats module prometheus counter resets or per worker stats?
I am trying to use http exporter for prometheus.
It seems like there are missing per worker labels (like: request_total{worker="1"}), or counter reset is too frequent(???)
# module configuration
modules.load('http')
function startHttp ()
net.listen('0.0.0.0', 8453, { kind = 'webmgmt' })
end
pcall(startHttp)
# Prometheus exporter metric output
# there is running bench(50k pps) from single client IP at the same time
#
root@xxx:~# while true; do echo -n "$(date) ";curl -s -k https://localhost:8453/metrics|grep ^request_total;done
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 133.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 143.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 32747110.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 136.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 143.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 143.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:28 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 143.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 32785830.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 133.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 132.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 131.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 3311121.000000
Mon Oct 5 23:17:29 CEST 2020 request_total 143.000000