Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-fpm metrics source #7083

Open
jszwedko opened this issue Apr 11, 2021 · 3 comments
Open

php-fpm metrics source #7083

jszwedko opened this issue Apr 11, 2021 · 3 comments
Labels
source: new A request for a new source type: feature A value-adding code addition that introduce new functionality.

Comments

@jszwedko
Copy link
Member

Requested by user in discord: https://discord.com/channels/742820443487993987/759154784309215252/830879932510371861

php-fpm seems to be able to expose a status page similar to Apache's mod_status: https://www.tecmint.com/enable-monitor-php-fpm-status-in-nginx/ . We could add a source component similar to our apache_metrics and nginix_metrics sources to pull this information.

@jszwedko jszwedko added the type: feature A value-adding code addition that introduce new functionality. label Apr 11, 2021
@yakimov
Copy link

yakimov commented Jul 21, 2021

+++
This is a very useful metric for sites that uses PHP.
DevOps will be able to control important parameters and will tune them if it's needed.
I would say it's more important data than data from Nginx or Apache metrics.

@jszwedko jszwedko added the source: new A request for a new source label Dec 28, 2022
@neilmcguigan
Copy link

for now, you can do the following (creates logs...use log_to_metric to transform to metrics):

phpfpm_status:
  type: http_client
  endpoint: "http://127.0.0.1/status?json&full"
  decoding:
    codec: json

@nsteinmetz
Copy link

The issue I have right now is that the output of http://127.0.0.1/status?json is:

{
  "pool": "somecorp.com",
  "process manager": "static",
  "start time": 1726513970,
  "start since": 5312,
  "accepted conn": 22292,
  "listen queue": 0,
  "max listen queue": 0,
  "listen queue len": 0,
  "idle processes": 96,
  "active processes": 4,
  "total processes": 100,
  "max active processes": 13,
  "max children reached": 0,
  "slow requests": 0
}

But seems vector fails to decode and returns an empty output.

Any idea on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: new A request for a new source type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

4 participants