harmjanblok / puma-metrics

Puma plugin to export puma stats as prometheus metrics
MIT License
94 stars 27 forks source link

Question - Why is request count a gauge? #40

Closed KaoruDev closed 2 years ago

KaoruDev commented 2 years ago

Why is the request count metric a gauge? Shouldn't it be a counter? I don't understand how a sum of all the requests over time is useful?

Thanks for building this gem BTW! I found it frustrating that the prometheus-client couldn't listen on a different port, this gem hits that itch!

KaoruDev commented 2 years ago

NVM, I see now that the Prometheus exporter doesn't reset the data when it gets scraped.