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

php-fpm plugin: missing server tag #1575

Closed
ojan opened this issue Aug 3, 2016 · 1 comment · Fixed by #3928
Closed

php-fpm plugin: missing server tag #1575

ojan opened this issue Aug 3, 2016 · 1 comment · Fixed by #3928
Assignees
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@ojan
Copy link

ojan commented Aug 3, 2016

server not parsed in an array of urls for php-fpm plugin

Relevant telegraf.conf:

  urls = [ "http://wp0/status?full", "http://wp1/status?full", "http://wp2/status?full" ]

System info:

Telegraf 1.0 beta 2 et 1.0 beta 3
Ubuntu 16.04 64bits

Expected behavior:

As other plugin, like nginx, the hostname passed int the url should be parsed as a host or server tag

* Plugin: nginx, Collection 1
> nginx,host=dc01,port=80,server=wp2 accepts=5222i,active=9i,handled=5222i,reading=0i,requests=8318i,waiting=8i,writing=1i 1470233836162593686
> nginx,host=dc01,port=80,server=wp0 accepts=5222i,active=9i,handled=5222i,reading=0i,requests=8327i,waiting=8i,writing=1i 1470233836162591517
> nginx,host=dc01,port=80,server=wp1 accepts=5885i,active=9i,handled=5885i,reading=0i,requests=8989i,waiting=8i,writing=1i 1470233836162775466

Actual behavior:

urls = [ "http://wp0/status?full", "http://wp1/status?full", "http://wp2/status?full" ]

when passing an array of urls for the php-fpm plugin, hostname is ignored and then the plugin returns only the hostname of the node where the plugin is run.

Additional info:

 Plugin: phpfpm, Collection 1
> phpfpm,host=dc01,pool=www accepted_conn=1673i,active_processes=1i,idle_processes=2i,listen_queue=0i,listen_queue_len=0i,max_active_processes=3i,max_children_reached=0i,max_listen_queue=0i,slow_requests=0i,total_processes=3i 1470233477888231839
> phpfpm,host=dc01,pool=www accepted_conn=1662i,active_processes=1i,idle_processes=2i,listen_queue=0i,listen_queue_len=0i,max_active_processes=3i,max_children_reached=0i,max_listen_queue=0i,slow_requests=0i,total_processes=3i 1470233477888333827
> phpfpm,host=dc01,pool=www accepted_conn=1695i,active_processes=1i,idle_processes=2i,listen_queue=0i,listen_queue_len=0i,max_active_processes=3i,max_children_reached=0i,max_listen_queue=0i,slow_requests=0i,total_processes=3i 1470233477888412090
@ojan ojan changed the title php-fpm plugin php-fpm plugin: missing server tag Aug 3, 2016
@xergio
Copy link

xergio commented Feb 15, 2018

+1 pls

@danielnelson danielnelson added this to the 1.6.0 milestone Feb 16, 2018
@danielnelson danielnelson self-assigned this Mar 23, 2018
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants