hipages / php-fpm_exporter

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

Get the (short) PHP version from the socket #155

Open jadjay opened 3 years ago

jadjay commented 3 years ago

Through all the very pertinent informations this exporter is parsing, it lakes the php-fpm version of the pool,

It may be obvious on smalls sets, but with thousands of websites it could be handy to get easily what version works on what servers.

Example :

# HELP phpfpm_process_version The version of the process ("7.0", "7.1", ... ).
# TYPE phpfpm_process_version string

or :

# HELP phpfpm_process_version_full The full version of the process ("7.0", "7.1", ... ).
# TYPE phpfpm_process_version string
# HELP phpfpm_process_version_major The major version of the process ("5", "7", "8", ... ).
# TYPE phpfpm_process_version string/integer
# HELP phpfpm_process_version_minor The minor version of the process ("0", "1", "2", "3" ... ).
# TYPE phpfpm_process_version string/integer

Thank you for considering my request,

Regards,

itcsoft54 commented 2 years ago

php-fpm is base on php-fpm status page, from source code (https://github.com/php/php-src/blob/master/sapi/fpm/fpm/fpm_status.c), they have no "php version" field.

jadjay commented 2 years ago

Aw 😭

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.