Skip to content

Commit

Permalink
fix(grafana-dashboard): use vector(0) if all ep are available
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Sep 22, 2023
1 parent c777eb6 commit 6f69bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chart/saml-exporter/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "count(sum(rate(http_client_request{code!~\"^2.*\", job=~\".*/saml-exporter\"}[$__rate_interval])) by (host))",
"expr": "count(sum(rate(http_client_request{code!~\"^2.*\", job=~\".*/saml-exporter\"}[$__rate_interval])) by (host)) or vector(0)",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
Expand Down Expand Up @@ -2051,4 +2051,4 @@
"timezone": "",
"title": "SAML Metadata",
"weekStart": ""
}
}
4 changes: 2 additions & 2 deletions grafana/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "count(sum(rate(http_client_request{code!~\"^2.*\", job=~\".*/saml-exporter\"}[$__rate_interval])) by (host))",
"expr": "count(sum(rate(http_client_request{code!~\"^2.*\", job=~\".*/saml-exporter\"}[$__rate_interval])) by (host)) or vector(0)",
"interval": "",
"legendFormat": "",
"queryType": "randomWalk",
Expand Down Expand Up @@ -2051,4 +2051,4 @@
"timezone": "",
"title": "SAML Metadata",
"weekStart": ""
}
}

0 comments on commit 6f69bde

Please sign in to comment.