Skip to content

Commit

Permalink
feat(PVO11Y-4565): Add degraded instances list
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pokorny <[email protected]>
  • Loading branch information
martysp21 committed Jan 20, 2025
1 parent 90c3c23 commit c6d749c
Showing 1 changed file with 179 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ data:
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 689731,
"id": 761221,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -268,6 +268,7 @@ data:
"lastNotNull"
],
"fields": "",
"limit": 1,
"values": false
},
"showPercentChange": false,
Expand Down Expand Up @@ -295,13 +296,182 @@ data:
"title": "Degraded service instances",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${Datasource}"
},
"description": "List of all degraded services in the period with the origin of the alert and source cluster.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "left",
"cellOptions": {
"type": "auto"
},
"filterable": true,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "service"
},
"properties": [
{
"id": "displayName",
"value": "Service"
}
]
},
{
"matcher": {
"id": "byName",
"options": "check"
},
"properties": [
{
"id": "displayName",
"value": "From check"
}
]
},
{
"matcher": {
"id": "byName",
"options": "source_cluster"
},
"properties": [
{
"id": "displayName",
"value": "Source Cluster"
}
]
},
{
"matcher": {
"id": "byName",
"options": "From check"
},
"properties": [
{
"id": "custom.width",
"value": 132
}
]
},
{
"matcher": {
"id": "byName",
"options": "Service"
},
"properties": [
{
"id": "custom.width",
"value": 320
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 6
},
"id": 19,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"enablePagination": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.4.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${Datasource}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "(count by (service, check,source_cluster) (konflux_up{service=~\"$service\"} == 0))",
"format": "table",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Degraded services list",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Time": {
"aggregations": [
"logmin"
]
},
"check": {
"aggregations": [],
"operation": "groupby"
},
"service": {
"aggregations": [],
"operation": "groupby"
},
"source_cluster": {
"aggregations": [],
"operation": "groupby"
}
}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 6
"y": 11
},
"id": 11,
"panels": [],
Expand Down Expand Up @@ -378,7 +548,7 @@ data:
"h": 12,
"w": 24,
"x": 0,
"y": 7
"y": 12
},
"id": 18,
"options": {
Expand Down Expand Up @@ -421,9 +591,9 @@ data:
"list": [
{
"current": {
"selected": true,
"text": "rhtap-observatorium-stage",
"value": "PDCCF087A30F0737B"
"selected": false,
"text": "rhtap-observatorium-production",
"value": "P22466E8E7855F1E0"
},
"hide": 0,
"includeAll": false,
Expand Down Expand Up @@ -473,7 +643,7 @@ data:
{
"allValue": "",
"current": {
"selected": false,
"selected": true,
"text": "All",
"value": "$__all"
},
Expand Down Expand Up @@ -501,14 +671,14 @@ data:
]
},
"time": {
"from": "now-7d",
"from": "now-1h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Availability Exporter Dashboard",
"uid": "fdifr5mbapv5sb",
"version": 180,
"version": 3,
"weekStart": ""
}
kind: ConfigMap
Expand Down

0 comments on commit c6d749c

Please sign in to comment.