Skip to content

Commit

Permalink
Merge pull request #24 from flanksource/fix-col-count-name
Browse files Browse the repository at this point in the history
fix: assign column name to check execs query
  • Loading branch information
yashmehrotra authored Dec 4, 2023
2 parents d159e8e + e90d711 commit fe994ec
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 fe994ec

Please sign in to comment.