From 2352cc9deaa582e9943d498604273aa0ca96faea Mon Sep 17 00:00:00 2001 From: Eugenio Marzo Date: Mon, 2 Jan 2023 20:34:58 +0100 Subject: [PATCH] fix metrics --- nginx/KubeInvaders.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx/KubeInvaders.conf b/nginx/KubeInvaders.conf index e84cd67a1..7519be156 100644 --- a/nginx/KubeInvaders.conf +++ b/nginx/KubeInvaders.conf @@ -92,6 +92,8 @@ server { metric = "deleted_namespace_pods_count{namespace=\"".. namespace .."\"}" ngx.say(metric .. " " .. red:get(res)) + else + ngx.say(res .. " " .. red:get(res)) end end }