Closed erfansahaf closed 4 years ago
You should be connecting directly to the fpm PHP_FPM_SCRAPE_URI=tcp://application:9000/status
@vasekboch When I try to use the TCP
protocol as PHP_FPM_SCRAPE_URI=tcp://application:9000/status
, it just doesn't work. It shows no error in logs, but the fail metric is always one (instead of being zero).
@erfansahaf As @vasekboch already pointed out correctly you should connect php-fpm_exporter
directly to PHP-FPM. You can find docker-compose
examples here in the test directory.
My guess is that applications
is not exposing the port.
@estahn What is the difference between hipages/php
image and the PHP official image? Since application
and the php-fpm_exporter
are both on the same network, there is no need to exposing port to the outside world, right?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@estahn What is the difference between
hipages/php
image and the PHP official image? Sinceapplication
and thephp-fpm_exporter
are both on the same network, there is no need to exposing port to the outside world, right?
@erfansahaf Apologies, I haven't seen your comment in my notifications. We had some customisations around NewRelic and things to make it easier to work with.
You don't need to expose the port to the outside world.
Thanks for your response. My problem solved in another way and I didn't use this exporter. Closing it.
First of all, thanks for your time and for developing this exporter for the open-source community.
I wish to use
php-fpm_exporter
alongside myapplication
container by a docker-compose file. My PHP pool status is accessible byhttp://application/status
page, but the exporter can not pull the metrics from this endpoint. The request to the mentioned endpoint will be proxied by Nginx to the fastcgi127.0.0.1:9000
.I guess there is something wrong with the protocol (that in my case is
http
) but your examples are all usingtcp
. When I try to see the exporter container logs, it shows the following error (I tried with thetcp
protocol but didn't work either and thephpfpm_up
was still 0) :My docker-compose.yml file: