From 695caeeb25e79f98beb3b5e5aba3a8d29dde67c6 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Tue, 20 Feb 2018 13:31:49 +1100 Subject: [PATCH] Add exporter to docker-compose.yml --- docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6b783ee..c52c807 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,15 @@ services: - "./prometheus.yml:/etc/prometheus/prometheus.yml" phpfpm: - image: docker-php + image: hipages/php ports: - "9000:9000" environment: PHP_FPM_PM_STATUS_PATH: "/status" + + exporter: + image: hipages/php-fpm_exporter:0.0.3 + ports: + - "9253:9253" + environment: + PHP_FPM_SCRAPE_URI: "tcp://phpfpm:9000/status"