php-fpm-exporter icon indicating copy to clipboard operation
php-fpm-exporter copied to clipboard

Collecting metrics from multiple containers

Open roshan8 opened this issue 7 years ago • 3 comments

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 !!

roshan8 avatar Dec 05 '17 18:12 roshan8

(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?

andrewhowdencom avatar Dec 06 '17 09:12 andrewhowdencom

we are using Apache mesos

roshan8 avatar Dec 06 '17 09:12 roshan8

@roshu10 I run an instance of php-fpm-exporter as a "side car" of each PHP container using Kubernetes.

bakins avatar Feb 16 '18 12:02 bakins