php-fpm_exporter icon indicating copy to clipboard operation
php-fpm_exporter copied to clipboard

Unable to get php-fpm7.4.16 information

Open TestsLing opened this issue 3 years ago • 3 comments

env

  • docker Engine v20.10.5
  • php:7.4.16-fpm
  • php-fpm-exporter:latest

php-fpm-exporter log

time="2021-05-11T01:34:41Z" level=info msg="Starting server on :9253 with path /metrics"
time="2021-05-11T01:34:41Z" level=info msg="Idle/Active/Total Processes will be calculated by php-fpm_exporter."
time="2021-05-11T01:37:05Z" level=error msg="Unknown process state 'Getting request information'"
time="2021-05-11T01:37:18Z" level=fatal msg="Error during shutdowncontext deadline exceeded"
time="2021-05-25T07:02:03Z" level=info msg="Starting server on :9253 with path /metrics"
time="2021-05-25T07:02:03Z" level=info msg="Idle/Active/Total Processes will be calculated by php-fpm_exporter."
time="2021-05-25T07:02:40Z" level=error msg="Pool[tcp://php-fpm:9000/status]: Server busy. Please try again later."
time="2021-05-25T07:02:40Z" level=error msg="invalid character 'S' looking for beginning of value"
time="2021-05-25T07:02:40Z" level=error msg="invalid character 'S' looking for beginning of value"
time="2021-05-25T07:02:40Z" level=error msg="Error scraping PHP-FPM: invalid character 'S' looking for beginning of value"
time="2021-05-25T07:03:08Z" level=error msg="Unknown process state 'Getting request information'"
time="2021-05-25T07:03:09Z" level=error msg="Pool[tcp://php-fpm:9000/status]: Server busy. Please try again later."
time="2021-05-25T07:03:09Z" level=error msg="invalid character 'S' looking for beginning of value"
time="2021-05-25T07:03:09Z" level=error msg="invalid character 'S' looking for beginning of value"
time="2021-05-25T07:03:09Z" level=error msg="Error scraping PHP-FPM: invalid character 'S' looking for beginning of value"

TestsLing avatar May 25 '21 07:05 TestsLing

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.

stale[bot] avatar Jan 09 '22 06:01 stale[bot]

What type of activity would you like to see?

I am also getting this error, a new state needs to be implemented?

gmaz42 avatar Jan 18 '22 16:01 gmaz42

Greetings, here with me the error also arises:

time="2022-03-07T21:30:16Z" level=info msg="Starting server on :9253 with path /metrics"
time="2022-03-07T21:30:16Z" level=info msg="Idle/Active/Total Processes will be calculated by php-fpm_exporter."
time="2022-03-07T21:55:49Z" level=error msg="Unknown process state 'Getting request information'"

Why this case PoolProcessRequestInfo74 does not match 'Getting request information'?

https://github.com/hipages/php-fpm_exporter/blob/master/phpfpm/phpfpm.go#L45

Does anyone know which process state case was not mapped in CountProcessState?

https://github.com/hipages/php-fpm_exporter/blob/master/phpfpm/phpfpm.go#L238

PoolProcessRequestInfo74 is not correct interpreted and also not covered in test case.

https://github.com/hipages/php-fpm_exporter/blob/master/phpfpm/phpfpm_test.go#L24

xeroxzone avatar Mar 08 '22 11:03 xeroxzone