1
0
Fork 0

Update health-status dashboard

This commit is contained in:
Malte Brandy 2020-12-02 03:42:42 +01:00
parent 867de948aa
commit 5086208e82
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -1,56 +1,65 @@
{ {
"annotations": { "annotations": {
"list": [{ "list": [
"builtIn": 1, {
"datasource": "-- Grafana --", "builtIn": 1,
"enable": true, "datasource": "-- Grafana --",
"hide": true, "enable": true,
"iconColor": "rgba(0, 211, 255, 1)", "hide": true,
"name": "Annotations & Alerts", "iconColor": "rgba(0, 211, 255, 1)",
"type": "dashboard" "name": "Annotations & Alerts",
}] "type": "dashboard"
}, }
"editable": true, ]
"gnetId": null, },
"graphTooltip": 0, "editable": true,
"id": 1, "gnetId": null,
"links": [], "graphTooltip": 0,
"panels": [{ "links": [],
"panels": [
{
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "prometheus", "datasource": null,
"decimals": 0, "decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 10, "fill": 10,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 15, "h": 14,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 6, "id": 12,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": false, "avg": false,
"current": true, "current": true,
"hideEmpty": false, "hideEmpty": false,
"max": false, "max": false,
"min": false, "min": false,
"rightSide": false, "rightSide": false,
"show": true, "show": true,
"total": false, "total": false,
"values": true "values": true
}, },
"lines": true, "lines": true,
"linewidth": 0, "linewidth": 0,
"nullPointMode": "null as zero", "nullPointMode": "null as zero",
"options": { "options": {
"dataLinks": [] "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "7.3.4",
"pointradius": 2, "pointradius": 2,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -58,266 +67,200 @@
"spaceLength": 10, "spaceLength": 10,
"stack": true, "stack": true,
"steppedLine": false, "steppedLine": false,
"targets": [{ "targets": [
"expr": "up{instance!=\"apollo:9100\"} +1 == 1", {
"interval": "", "expr": "ALERTS{alert_type=\"infrastructure\"}",
"legendFormat": "{{name}}", "interval": "",
"refId": "A" "legendFormat": "{{alertname}} for {{name}} ({{alertstate}})",
}], "refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Active alerts",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 15,
"w": 12,
"x": 12,
"y": 0
},
"hiddenSeries": false,
"id": 6,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"hideEmpty": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "up{instance!=\"apollo:9100\"} +1 == 1",
"interval": "",
"legendFormat": "{{name}}",
"refId": "A"
}
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Unreachable nodes", "title": "Unreachable nodes",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"transparent": true, "transparent": true,
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"buckets": null, "buckets": null,
"mode": "time", "mode": "time",
"name": null, "name": null,
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [{ "yaxes": [
"decimals": 0, {
"format": "short", "decimals": 0,
"label": null, "format": "short",
"logBase": 1, "label": null,
"max": null, "logBase": 1,
"min": "0", "max": null,
"show": true "min": "0",
}, { "show": true
"format": "short", },
"label": null, {
"logBase": 1, "format": "short",
"max": null, "label": null,
"min": null, "logBase": 1,
"show": true "max": null,
}], "min": null,
"show": true
}
],
"yaxis": { "yaxis": {
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} }
}, { },
"aliasColors": {}, {
"axis": {
"align": false,
"alignLevel": null
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"decimals": 0,
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 15,
"w": 12,
"x": 12,
"y": 0
},
"hiddenSeries": false,
"id": 4,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null as zero",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [{
"expr": "node_systemd_unit_state{state=\"failed\",exported_name!~\"configure-printer.*\"} > 0",
"format": "time_series",
"interval": "",
"legendFormat": "{{exported_name}} from {{ name }}",
"refId": "A"
}],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Failed Systemd Units",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}, {
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}],
"yaxis": {
"align": false,
"alignLevel": null
}
}, {
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "prometheus", "datasource": "prometheus",
"decimals": 0, "decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 10, "fill": 10,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
"h": 18, "h": 19,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 15 "y": 14
},
"hiddenSeries": false,
"id": 2,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null as zero",
"options": {
"dataLinks": [{
"targetBlank": true,
"title": "${__field.labels.packageName} status on hydra",
"url": "${__field.labels.url}"
}]
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [{
"expr": "hydra_job_failed > 0",
"interval": "",
"legendFormat": "{{packageName}} on {{jobset}}",
"refId": "A"
}],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Nixpkgs Build Failures",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}, {
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}],
"yaxis": {
"align": false,
"alignLevel": null
}
}, {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"decimals": 0,
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 19,
"w": 12,
"x": 12,
"y": 15
}, },
"hiddenSeries": false, "hiddenSeries": false,
"id": 8, "id": 8,
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": false, "avg": false,
"current": true, "current": true,
"max": false, "max": false,
"min": false, "min": false,
"show": true, "show": true,
"total": false, "total": false,
"values": true "values": true
}, },
"lines": true, "lines": true,
"linewidth": 0, "linewidth": 0,
"nullPointMode": "null as zero", "nullPointMode": "null as zero",
"options": { "options": {
"dataLinks": [] "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "7.3.4",
"pointradius": 2, "pointradius": 2,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -325,133 +268,360 @@
"spaceLength": 10, "spaceLength": 10,
"stack": true, "stack": true,
"steppedLine": false, "steppedLine": false,
"targets": [{ "targets": [
"expr": "1 - probe_success == 1", {
"interval": "", "expr": "1 - probe_success == 1",
"legendFormat": "{{job}} against {{instance}}", "interval": "",
"refId": "A" "legendFormat": "{{job}} against {{instance}}",
}], "refId": "A"
}
],
"thresholds": [], "thresholds": [],
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Probe Timeouts", "title": "Probe Timeouts",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"transparent": true, "transparent": true,
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"buckets": null, "buckets": null,
"mode": "time", "mode": "time",
"name": null, "name": null,
"show": true, "show": true,
"values": [] "values": []
}, },
"yaxes": [{ "yaxes": [
"decimals": 0, {
"format": "short", "decimals": 0,
"label": null, "format": "short",
"logBase": 1, "label": null,
"max": null, "logBase": 1,
"min": "0", "max": null,
"show": true "min": "0",
}, { "show": true
"format": "short", },
"label": null, {
"logBase": 1, "format": "short",
"max": null, "label": null,
"min": null, "logBase": 1,
"show": true "max": null,
}], "min": null,
"show": true
}
],
"yaxis": { "yaxis": {
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} }
}, { },
"columns": [{ {
"text": "Current", "aliasColors": {},
"value": "current" "axis": {
}], "align": false,
"alignLevel": null
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus", "datasource": "prometheus",
"decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 15,
"w": 12,
"x": 12,
"y": 15
},
"hiddenSeries": false,
"id": 4,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "node_systemd_unit_state{state=\"failed\",exported_name!~\"configure-printer.*\"} > 0",
"format": "time_series",
"interval": "",
"legendFormat": "{{exported_name}} from {{ name }}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Failed Systemd Units",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"decimals": 0,
"fieldConfig": {
"defaults": {
"custom": {},
"links": [
{
"targetBlank": true,
"title": "${__field.labels.packageName} status on hydra",
"url": "${__field.labels.url}"
}
]
},
"overrides": []
},
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 18,
"w": 12,
"x": 12,
"y": 30
},
"hiddenSeries": false,
"id": 2,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 0,
"nullPointMode": "null as zero",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "hydra_job_failed > 0",
"interval": "",
"legendFormat": "{{packageName}} on {{jobset}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Nixpkgs Build Failures",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"transparent": true,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"columns": [
{
"text": "Current",
"value": "current"
}
],
"datasource": "prometheus",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%", "fontSize": "100%",
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 0 "y": 33
}, },
"id": 10, "id": 10,
"pageSize": null, "pageSize": null,
"pluginVersion": "6.7.4", "pluginVersion": "6.7.4",
"showHeader": true, "showHeader": true,
"sort": { "sort": {
"col": 0, "col": 0,
"desc": true "desc": true
}, },
"styles": [{ "styles": [
"alias": "Time", {
"align": "right", "alias": "Time",
"colorMode": null, "align": "right",
"colors": [ "colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)", "rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "rgba(50, 172, 45, 0.97)"
], ],
"dateFormat": "YYYY-MM-DD HH:mm:ss", "dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2, "decimals": 2,
"pattern": "Current", "pattern": "Current",
"thresholds": [], "thresholds": [],
"type": "date", "type": "date",
"unit": "short" "unit": "short"
}], }
"targets": [{ ],
"expr": "hydra_job_completion_time * hydra_job_failed * 1000 > 0", "targets": [
"format": "time_series", {
"hide": false, "expr": "hydra_job_completion_time * hydra_job_failed * 1000 > 0",
"instant": true, "format": "time_series",
"interval": "", "hide": false,
"legendFormat": "{{job}}", "instant": true,
"refId": "A" "interval": "",
}], "legendFormat": "{{job}}",
"refId": "A"
}
],
"timeFrom": null, "timeFrom": null,
"timeShift": null, "timeShift": null,
"title": "Last failed hydra builds", "title": "Last failed hydra builds",
"transform": "timeseries_aggregations", "transform": "timeseries_aggregations",
"type": "table" "type": "table-old"
}], }
"refresh": "1m", ],
"schemaVersion": 22, "refresh": "1m",
"style": "dark", "schemaVersion": 26,
"tags": [], "style": "dark",
"templating": { "tags": [],
"list": [] "templating": {
}, "list": []
"time": { },
"from": "now-6h", "time": {
"to": "now" "from": "now-6h",
}, "to": "now"
"timepicker": { },
"refresh_intervals": [ "timepicker": {
"5s", "refresh_intervals": [
"10s", "5s",
"30s", "10s",
"1m", "30s",
"5m", "1m",
"15m", "5m",
"30m", "15m",
"1h", "30m",
"2h", "1h",
"1d" "2h",
] "1d"
}, ]
"timezone": "", },
"title": "Health Status", "timezone": "",
"uid": "health-status", "title": "Health Status",
"variables": { "uid": "health-status",
"list": [] "version": 1
},
"version": 1
} }