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

3 lines
219 B
Django/Jinja

#!/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)