Commit 7c5bf912 authored by godog's avatar godog

Switch php-fpm-exporter implementation

Looks like Grafana dashboards are for this exporter, looks like more
maintained.
parent c71db352
Pipeline #3187 passed with stage
in 1 minute and 53 seconds
......@@ -57,15 +57,19 @@ fpm.service: {
exit_kills: true,
}
fpm-exporter.service: {
command: "sh -c '. /etc/apache2/envvars && HOME=/ exec /usr/sbin/php-fpm-exporter server --phpfpm.scrape-uri=unix:///run/php/php7.0-fpm.sock\\\\;/status --web.listen-address=:\$PHP_FPM_EXPORTER_PORT'",
command: "sh -c '. /etc/apache2/envvars && HOME=/ exec /usr/sbin/php-fpm-exporter --phpfpm.socket-paths=/run/php/php7.0-fpm.sock --web.listen-address=:\$PHP_FPM_EXPORTER_PORT'",
restart: true,
}
EOF
# Install the php-fpm prometheus exporter binary (no package yet).
curl -sL -o /usr/sbin/php-fpm-exporter \
https://github.com/hipages/php-fpm_exporter/releases/download/v1.0.0/php-fpm_exporter_1.0.0_linux_amd64
chmod 0755 /usr/sbin/php-fpm-exporter
curl -sL \
https://github.com/Lusitaniae/phpfpm_exporter/releases/download/v0.4.0/phpfpm_exporter-0.4.0.linux-amd64.tar.gz \
| tar -C /run zxv
install -m 0755 \
/run/phpfpm_exporter-0.4.0.linux-amd64/phpfpm_exporter \
/usr/sbin/php-fpm-exporter
fi
# Enable/disable Apache modules and configs.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment