Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(watchtower): incident commander usage lookup #362

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions charts/mission-control/templates/mission-control.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spec:
schedule: '@every 1m'
properties:
- headline: true
name: Incidents
lookup:
postgres:
- connection: "connection://{{ .Values.connectionName }}"
Expand All @@ -88,11 +89,12 @@ spec:
query: SELECT count(*) FROM incidents WHERE (resolved IS NULL) OR (closed
IS NULL)
results: 1
- lookup:
- name: percentage_lookup
lookup:
postgres:
- connection: "connection://{{ .Values.connectionName }}"
display:
expr: results.rows[0].props
expr: results.rows[0].props.toJSON()
name: Incident commander pod usage query
query: |
SELECT
Expand All @@ -111,7 +113,6 @@ spec:
) sub
WHERE property->>'name' IN ('memory', 'cpu') LIMIT 1;

name: Incidents
- name: Docs
text: https://docs.flanksource.com
type: url
Expand Down Expand Up @@ -261,7 +262,7 @@ spec:
postgres:
- connection: "connection://{{ .Values.connectionName }}"
display:
expr: results.rows[0].props
expr: results.rows[0].props.toJSON()
name: Canary checker pod usage query
query: |
SELECT
Expand Down
Loading