Metricbeat php_fpm read sockets multiple pools

Hi,

I have php-fpm installed on servers configured with multiple pools; I've set them to point to unix socket files, instead of HTTP, so like in the php-fpm.d files:

listen = /var/run/php-fpm/php-fpm-web.sock

I can fairly easily configure apache to point to one of these with a proxy invocation:

<LocationMatch "/fpm-status-$POOL">
Require ip 127.0.0.1 ::1
ProxyPass unix:/var/run/php-fpm/php-fpm-web.sock|fcgi://localhost/fpm-status-$POOL

The php_fpm module can be configured for multiple ports, but not multiple status_paths.

Do I have to rework my infrastructure to use network ports to query php-fpm status, or is it possible to set up metricbeat to use multiple hosts?

It would be even better if metricbeat could directly open and query the socket, rather than having to proxy through Apache.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.