Skip to content

Commit

Permalink
fix: assign column name to check execs query
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Dec 4, 2023
1 parent d159e8e commit e90d711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/templates/topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e90d711

Please sign in to comment.