From 48f5da7e33b3b9b841326925506a47a7ed7db1c5 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 14 Apr 2020 12:14:49 -0700 Subject: [PATCH] Fix status path when using globs in phpfpm (#7324) --- plugins/inputs/phpfpm/phpfpm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/phpfpm/phpfpm.go b/plugins/inputs/phpfpm/phpfpm.go index 75a6aeb17..4bb6443ab 100644 --- a/plugins/inputs/phpfpm/phpfpm.go +++ b/plugins/inputs/phpfpm/phpfpm.go @@ -312,9 +312,9 @@ func globUnixSocket(url string) ([]string, error) { for _, path := range paths { if status != "" { - status = fmt.Sprintf(":%s", status) + path = path + ":" + status } - addrs = append(addrs, fmt.Sprintf("%s%s", path, status)) + addrs = append(addrs, path) } return addrs, nil