prometheus/templates/scripts/prometheus-phpfpm-exporter-script.sh.j2

3 lines
219 B
Plaintext
Raw Normal View History

2021-10-05 16:52:47 +02:00
#!/bin/bash
/usr/local/bin/prometheus-phpfpm-exporter $(ls -1 {{ prometheus_phpfpm_sockets_directory }}*.sock {{ prometheus_phpfpm_sockets_directory_additional }} | awk '{print "--phpfpm.socket-paths "$1}' |head -c -1)