hipages / php-fpm_exporter

A prometheus exporter for PHP-FPM.
Apache License 2.0
592 stars 119 forks source link

fix: generate gauge metrics for all states #173

Closed fisherking closed 3 years ago

fisherking commented 3 years ago

https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics The recommended way is to return all possible metrics even if their value is zero

Currently exporter return only non-zero metrics which leads to incorrect values in historical data in prometheus

This is a fix for #123

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 2.0.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: