From e90d7115ed6aa824c0c6d50b139087c2aefd7ffd Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Mon, 4 Dec 2023 13:25:20 +0530 Subject: [PATCH] fix: assign column name to check execs query --- chart/templates/topology.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/topology.yaml b/chart/templates/topology.yaml index 2e6c0b5f..0e189229 100644 --- a/chart/templates/topology.yaml +++ b/chart/templates/topology.yaml @@ -203,12 +203,12 @@ spec: - connection: connection://postgres/mission-control display: expr: results.rows[0].count - query: SELECT COUNT(*)/(30*24) FROM check_statuses WHERE (NOW() - created_at) > INTERVAL '30 days' + query: SELECT COUNT(*)/(30*24) AS count FROM check_statuses WHERE (NOW() - created_at) > INTERVAL '30 days' - name: Check Executions / Day lookup: postgres: - connection: connection://postgres/mission-control - query: SELECT COUNT(*)/30 FROM check_statuses WHERE (NOW() - created_at) > INTERVAL '30 days' + query: SELECT COUNT(*)/30 FROM AS count check_statuses WHERE (NOW() - created_at) > INTERVAL '30 days' display: expr: results.rows[0].count