From 8f82c7356eefb55a716dd155473b6dcab2d76fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Pe=C3=B1as=20San=20Jos=C3=A9?= Date: Mon, 25 Aug 2025 09:57:26 +0200 Subject: [PATCH] Add port spec to docker example Stumbled on this while testing, w/o the por spec in docker run example the port is not publised to localhost so the posterior `curl` open browser can't connect to metrics. It adds ergonomics for new people, as copy and paste just works --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0854843e..63858377 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ If you like to have a more granular reporting please use `phpfpm_process_state`. * Run docker manually ``` docker pull hipages/php-fpm_exporter - docker run -it --rm -e PHP_FPM_SCRAPE_URI="tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status" hipages/php-fpm_exporter + docker run -it --rm -p 9253:9253 -e PHP_FPM_SCRAPE_URI="tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status" hipages/php-fpm_exporter ``` * Run the docker-compose example