We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
telegraf inputs phpfpm doesn't handle '?' char. In my nginx setup the pool name is a variable like:
# PHP-FPM Monitoring section set $pool "default"; if ($arg_pool) { set $pool $arg_pool; } location ~ "/fpm-(status|ping)" { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm_$pool.sock; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; .... }
with this config you can call the pool name directly with:
http://localhost/fpm-status?pool=<mysuperpoolname>
put in your config to use phpfpm inputs like :
[phpfpm] urls = ["http://localhost/fpm-status?pool=pool0","http://localhost/fpm-status?pool=pool1"]
telegraf 1.0.1
127.0.0.1 - - [16/Oct/2016:22:39:00 +0200] "GET /fpm-status?pool=pool0 HTTP/1.1" 200 215 "-" "Go-http-client/1.1" 127.0.0.1 - - [16/Oct/2016:22:39:00 +0200] "GET /fpm-status?pool=pool1 HTTP/1.1" 200 206 "-" "Go-http-client/1.1"
127.0.0.1 - - [16/Oct/2016:22:26:00 +0200] "GET /fpm-status HTTP/1.1" 502 166 "-" "Go-http-client/1.1" 127.0.0.1 - - [16/Oct/2016:22:26:00 +0200] "GET /fpm-status HTTP/1.1" 502 166 "-" "Go-http-client/1.1"
I replace '?' with %3F like:
%3F
[phpfpm] urls = ["http://localhost/fpm-status%3Fpool=pool0","http://localhost/fpm-status%3Fpool=pool1"]
Regards, Yann
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hi,
telegraf inputs phpfpm doesn't handle '?' char.
In my nginx setup the pool name is a variable like:
with this config you can call the pool name directly with:
Relevant telegraf.conf:
put in your config to use phpfpm inputs like :
System info:
telegraf 1.0.1
Expected behavior:
Actual behavior:
Workaround
I replace '?' with
%3F
like:Regards,
Yann
The text was updated successfully, but these errors were encountered: