Hi. I use net-mgmt/prometheus and want to get php-fpm statistic over "phpfpm_exporter" but get it problem:
On the FreeBSD 12.0-RELEASE amd64 run php-fpm and works fine ( i see phpinfo()):
In the php.ini i add string in pool file:
Please help me.
Code:
root@sfn:/# /usr/local/etc/rc.d/phpfpm_exporter start
Starting phpfpm_exporter.
root@sfn:/#
{"level":"error","ts":1570619327.8761797,"msg":"failed to get php-fpm status","error":"HTTP request failed: Get http://127.0.0.1:9000/status: EOF","errorVerbose":"Get http://127.0.0.1:9000/status: EOF\nHTTP request failed\ngithub.com/bakins/php-fpm-exporter.getData\n\t/usr/ports/sysutils/phpfpm_exporter/work/src/github.com/bakins/php-fpm-exporter/collector.go:86\ngithub.com/bakins/php-fpm-exporter.(*collector).Collect\n\t/usr/ports/sysutils/phpfpm_exporter/work/src/github.com/bakins/php-fpm-exporter/collector.go:105\ngithub.com/bakins/php-fpm-exporter/vendor/github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2\n\t/usr/ports/sysutils/phpfpm_exporter/work/src/github.com/bakins/php-fpm-exporter/vendor/github.com/prometheus/client_golang/prometheus/registry.go:433\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"}
Code:
root@sfn:/ # sockstat -4 | grep 9000
www php-fpm 27109 5 tcp4 127.0.0.1:9000 *:*
www php-fpm 26903 5 tcp4 127.0.0.1:9000 *:*
root php-fpm 26837 7 tcp4 127.0.0.1:9000 *:*
root@sfn:/ #
Code:
pm.status_path = /status