php-fpm-exporter
php-fpm-exporter copied to clipboard
Collecting metrics from multiple containers
Hi,
How do we collect metrics from single box when multiple containers are running on it ?
For example: If 9 containers are running in 2 machines, Those 9 container will be using a random service ports selected by orchestration tool.
In that scenario, How do we collect php-fpm stats from those 2 boxes (machine-wise/aggregate reports).
Thanks for any help !!
(Background: I am not a project maintainer, but work a little bit with containers)
I would conjecture it depends on the orchestration tool, but in the case of (for example) Kubernetes, you colocate them in the same network namespace as the PHP-FPM process (termed a "pod"), and query them over localhost. In essence, you run 9 exporters also.
What orchestration tool are you using?
we are using Apache mesos
@roshu10 I run an instance of php-fpm-exporter as a "side car" of each PHP container using Kubernetes.