Add exporter to docker-compose.yml

This commit is contained in:
Enrico Stahn 2018-02-20 13:31:49 +11:00
parent 76cd02aba3
commit 695caeeb25
No known key found for this signature in database
GPG key ID: 5263621C269A50DE

View file

@ -10,8 +10,15 @@ services:
- "./prometheus.yml:/etc/prometheus/prometheus.yml" - "./prometheus.yml:/etc/prometheus/prometheus.yml"
phpfpm: phpfpm:
image: docker-php image: hipages/php
ports: ports:
- "9000:9000" - "9000:9000"
environment: environment:
PHP_FPM_PM_STATUS_PATH: "/status" 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"