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 #32

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

Collecting metrics from multiple containers #32

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 Apache stats from those 2 boxes (machine-wise/aggregate reports).

Thanks for any help !!

@Lusitaniae
Copy link
Owner

Hi @roshu10

The best practice for prometheus is to use one exporter for each process you wish to monitor.

If you have 9 apache instances running on 2 machines through docker, you should have another 9 instances of apache exporter along side them.

Most (if not all) exporters are made to work in this way.

@roshan8
Copy link
Author

roshan8 commented Dec 6, 2017

Thanks for your reply :)

qtn1)
Is there any way to run one exporter per server to monitor multiple container ?

qtn2)
if 4 apache containers are running in one box, how can i run 4 exporters ?
4 apache containers will be having random service ports assigned by orchestration tool. I don't want to run 4 exporters manually every time apache container gets created.
How can we automate it ?

@Lusitaniae
Copy link
Owner

Lusitaniae commented Dec 6, 2017 via email

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

2 participants