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

Collecting metrics from multiple containers #12

Open
roshan8 opened this issue Dec 5, 2017 · 3 comments
Open

Collecting metrics from multiple containers #12

roshan8 opened this issue Dec 5, 2017 · 3 comments

Comments

@roshan8
Copy link

roshan8 commented Dec 5, 2017

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

@andrewhowdencom
Copy link
Contributor

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

@roshan8
Copy link
Author

roshan8 commented Dec 6, 2017

we are using Apache mesos

@bakins
Copy link
Owner

bakins commented Feb 16, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants