Closed
Description
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