Change php-fpm to listen on :9000 to expose prometheus metrics via php-fpm_exporter

This commit is contained in:
Leonard Jonathan Oh 2023-03-14 13:21:48 +00:00
parent c117d8baa1
commit 47072710b2
7 changed files with 48 additions and 6 deletions

View file

@ -95,7 +95,7 @@ http {
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_PROXY "";
fastcgi_index index.php;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_param REMOTE_ADDR $http_x_real_ip;