Lusitaniae / phpfpm_exporter

Prometheus exporter for PHP-FPM.
Apache License 2.0
80 stars 20 forks source link

I try to run it in docker and get an error in the logs #18

Open chanyshev opened 3 years ago

chanyshev commented 3 years ago

Run with Docker

SOCK="/run/php/php7.2-fpm.sock"; \
docker run -d -p 9253:9253 -v $SOCK:$SOCK  \
lusotycoon/phpfpm-exporter \
--phpfpm.socket-paths=$SOCK

docker logs quirky_yonath

2021/02/26 11:25:30 Starting phpfpm_exporter (version=0.5.0, branch=HEAD, revision=9cb855b0e40f98db3bfae60d34d7b87834329310) 2021/02/26 11:25:30 Build context (go=go1.12.6, user=root@a53eecf46f97, date=20190621-12:09:02) 2021/02/26 11:25:30 Starting Server: :9253 2021/02/26 11:25:39 Failed to scrape socket: malformed MIME header line: Primary script unknown 2021/02/26 11:25:49 Failed to scrape socket: malformed MIME header line: Primary script unknown 2021/02/26 11:25:59 Failed to scrape socket: malformed MIME header line: Primary script unknown