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

3 lines
208 B
Plaintext
Raw Normal View History

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