From 017f94708922f6ab66e31d449f2a8dd79dfce8d5 Mon Sep 17 00:00:00 2001 From: Camille Prugnard Date: Mon, 11 Oct 2021 10:29:14 +0200 Subject: [PATCH] add sock to php fpm socket paths --- templates/scripts/prometheus-phpfpm-exporter-script.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/scripts/prometheus-phpfpm-exporter-script.sh.j2 b/templates/scripts/prometheus-phpfpm-exporter-script.sh.j2 index 8634fbe..2bee314 100644 --- a/templates/scripts/prometheus-phpfpm-exporter-script.sh.j2 +++ b/templates/scripts/prometheus-phpfpm-exporter-script.sh.j2 @@ -1,2 +1,2 @@ #!/bin/bash -/usr/local/bin/prometheus-phpfpm-exporter $(ls -1 {{ prometheus_phpfpm_sockets_directory }} | awk '{print "--phpfpm.socket-paths {{ prometheus_phpfpm_sockets_directory }}" $1}' |head -c -1) +/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)