Skip to content

Commit

Permalink
fix: handle out of bounds error for prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jun 12, 2024
1 parent bfc147e commit 4e1afff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mission-control-prometheus
description: A Helm chart for the Prometheus bundle for Flanksource Mission Control
icon: https://github.com/flanksource/docs/blob/main/docs/images/flanksource-icon.png?raw=true
type: application
version: 0.1.7
version: 0.1.8
appVersion: "1.0.0"
maintainers:
- name: Flanksource
2 changes: 1 addition & 1 deletion charts/prometheus/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
- query: 'count(prometheus_rule_group_last_duration_seconds > 1)'
url: {{ .Values.prometheusURL | quote }}
display:
expr: results[0].value
expr: results[?0].orValue(0)
- name: Version
lookup:
prometheus:
Expand Down

0 comments on commit 4e1afff

Please sign in to comment.