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

One server, multiple PHP-FPM endpoints #6034

Closed
petecooper opened this issue May 16, 2019 · 4 comments
Closed

One server, multiple PHP-FPM endpoints #6034

petecooper opened this issue May 16, 2019 · 4 comments
Labels
area/collectors Everything related to data collection collectors/python.d question

Comments

@petecooper
Copy link
Contributor

Question summary

Is it possible to have multiple, local PHP-FPM endpoints monitored from a single collector, each with they own identifier (e.g. "PHP 7.1", "PHP 7.2" etc)? If so, what is the sanest/preferred syntax for the collector, please?

I have three PHP-FPM endpoints, each with monitoring enabled, at:

http://127.0.0.1:71/phpfpm71status?full&json
http://127.0.0.1:72/phpfpm72status?full&json
http://127.0.0.1:73/phpfpm73status?full&json

When one endpoint is used in Netdata, like this (from conf.d/python.d/phpfpm.conf)…

update_every: 1
priority: 90100
local:      
url: 'http://127.0.0.1:72/phpfpm72status?full&json'

…it works perfectly. But I cannot figure out how to collect multiple instances on the same server and have Netdata show them discretely.

Thank you in advance.

OS / Environment

Ubuntu 18.04 LTS

Component Name

python.d phpfpm collector

@ilyam8
Copy link
Member

ilyam8 commented May 16, 2019

Hi @petecooper

Sure

#5964 (comment)

@petecooper
Copy link
Contributor Author

Thank you @ilyam8 - I have tried multiple instances of local in one file, like this:

update_every: 1
priority: 90100

local:
url: 'http://127.0.0.1:71/phpfpm71status?full&json'

local:
url: 'http://127.0.0.1:72/phpfpm72status?full&json'

local:
url: 'http://127.0.0.1:73/phpfpm73status?full&json'

Screen Shot 2019-05-16 at 20 26 36

I reload Netdata using sudo systemctl restart netdata, and the dashboard shows one instance:

Screen Shot 2019-05-16 at 20 27 25

…or is this single instance actually three endpoints combined?

@ilyam8
Copy link
Member

ilyam8 commented May 16, 2019

local is a key, it should be unique

local71:
  url: 'http://127.0.0.1:71/phpfpm71status?full&json'

local72:
  url: 'http://127.0.0.1:72/phpfpm72status?full&json'

local73:
  url: 'http://127.0.0.1:73/phpfpm73status?full&json'

@petecooper
Copy link
Contributor Author

Perfect - thank you very much!

@ilyam8 ilyam8 added collectors/python.d area/collectors Everything related to data collection and removed area/external/python labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection collectors/python.d question
Projects
None yet
Development

No branches or pull requests

2 participants