From b8376ae5bb4ac146ebceabe85ea08fc9a7fa8415 Mon Sep 17 00:00:00 2001 From: "phillip.toohill" Date: Fri, 8 Nov 2024 09:29:04 -0600 Subject: [PATCH] feat: Updating openstack and alerts dashboards with additional checks (#535) --- etc/grafana-dashboards/open_alerts.json | 5 +- etc/grafana-dashboards/openstack_metrics.json | 299 +++++++++++++----- 2 files changed, 220 insertions(+), 84 deletions(-) diff --git a/etc/grafana-dashboards/open_alerts.json b/etc/grafana-dashboards/open_alerts.json index 7fba6958..a2b11f70 100644 --- a/etc/grafana-dashboards/open_alerts.json +++ b/etc/grafana-dashboards/open_alerts.json @@ -6,7 +6,7 @@ "type": "datasource", "id": "camptocamp-prometheus-alertmanager-datasource", "name": "Prometheus AlertManager Datasource", - "version": "2.0.1" + "version": "2.1.0" }, { "type": "grafana", @@ -162,6 +162,7 @@ "reason": true, "runbook_url": true, "service": true, + "state": true, "status": true, "summary": true, "target": true, @@ -1001,6 +1002,6 @@ "timezone": "browser", "title": "OPEN ALERTS OF ALERTMANAGER", "uid": "WojOgXTmk", - "version": 14, + "version": 15, "weekStart": "" } diff --git a/etc/grafana-dashboards/openstack_metrics.json b/etc/grafana-dashboards/openstack_metrics.json index 6eb15b21..b273baa5 100644 --- a/etc/grafana-dashboards/openstack_metrics.json +++ b/etc/grafana-dashboards/openstack_metrics.json @@ -2165,6 +2165,7 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "description": "PUBLICNET FloatingIPs Total", "fieldConfig": { "defaults": { "color": { @@ -2175,12 +2176,12 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "dark-red", "value": null }, { - "color": "red", - "value": 80 + "color": "green", + "value": 21 } ] }, @@ -2194,7 +2195,7 @@ "x": 0, "y": 57 }, - "id": 78, + "id": 100, "options": { "colorMode": "value", "graphMode": "area", @@ -2220,7 +2221,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_neutron_floating_ips", + "expr": "sum(last_over_time(openstack_neutron_network_ip_availabilities_total{network_name=\"PUBLICNET\"}[1d]))", "format": "table", "instant": true, "legendFormat": "__auto", @@ -2228,7 +2229,7 @@ "refId": "A" } ], - "title": "Floating IPs", + "title": "Floating IPs Total", "type": "stat" }, { @@ -2236,6 +2237,7 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "description": "PUBLICNET FloatingIPs Available", "fieldConfig": { "defaults": { "color": { @@ -2246,12 +2248,12 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "dark-red", "value": null }, { - "color": "red", - "value": 80 + "color": "green", + "value": 21 } ] }, @@ -2265,7 +2267,7 @@ "x": 4, "y": 57 }, - "id": 79, + "id": 99, "options": { "colorMode": "value", "graphMode": "area", @@ -2291,7 +2293,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_neutron_networks", + "expr": "sum(last_over_time(openstack_neutron_network_ip_availabilities_total{network_name=\"PUBLICNET\"}[1d])) - sum(last_over_time(openstack_neutron_network_ip_availabilities_used{network_name=\"PUBLICNET\"}[1d])) ", "format": "table", "instant": true, "legendFormat": "__auto", @@ -2299,7 +2301,7 @@ "refId": "A" } ], - "title": "Networks", + "title": "Floating IPs Available", "type": "stat" }, { @@ -2360,9 +2362,9 @@ "exemplar": false, "expr": "openstack_neutron_ports", "format": "table", - "instant": true, + "instant": false, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -2399,7 +2401,7 @@ "x": 12, "y": 57 }, - "id": 81, + "id": 82, "options": { "colorMode": "value", "graphMode": "area", @@ -2425,7 +2427,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_neutron_subnets", + "expr": "openstack_neutron_routers", "format": "table", "instant": true, "legendFormat": "__auto", @@ -2433,7 +2435,7 @@ "refId": "A" } ], - "title": "Subnets", + "title": "Routers", "type": "stat" }, { @@ -2466,7 +2468,7 @@ "x": 16, "y": 57 }, - "id": 82, + "id": 101, "options": { "colorMode": "value", "graphMode": "area", @@ -2492,7 +2494,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_neutron_routers", + "expr": "openstack_neutron_routers_not_active", "format": "table", "instant": true, "legendFormat": "__auto", @@ -2500,7 +2502,7 @@ "refId": "A" } ], - "title": "Routers", + "title": "Routers not active", "type": "stat" }, { @@ -2570,6 +2572,144 @@ "title": "Security Groups", "type": "stat" }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 61 + }, + "id": 79, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "openstack_neutron_networks", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Networks", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 61 + }, + "id": 81, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "openstack_neutron_subnets", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Subnets", + "type": "stat" + }, { "collapsed": false, "datasource": { @@ -2580,7 +2720,7 @@ "h": 1, "w": 24, "x": 0, - "y": 61 + "y": 65 }, "id": 39, "panels": [], @@ -2625,7 +2765,7 @@ "h": 2, "w": 4, "x": 0, - "y": 62 + "y": 66 }, "id": 54, "options": { @@ -2698,7 +2838,7 @@ "h": 4, "w": 2, "x": 4, - "y": 62 + "y": 66 }, "id": 56, "links": [], @@ -2774,7 +2914,7 @@ "h": 4, "w": 2, "x": 6, - "y": 62 + "y": 66 }, "id": 93, "links": [], @@ -2850,7 +2990,7 @@ "h": 4, "w": 2, "x": 8, - "y": 62 + "y": 66 }, "id": 91, "links": [], @@ -2926,7 +3066,7 @@ "h": 4, "w": 2, "x": 10, - "y": 62 + "y": 66 }, "hideTimeOverride": false, "id": 90, @@ -3001,7 +3141,7 @@ "h": 4, "w": 2, "x": 12, - "y": 62 + "y": 66 }, "id": 92, "links": [], @@ -3077,7 +3217,7 @@ "h": 4, "w": 2, "x": 14, - "y": 62 + "y": 66 }, "id": 94, "links": [], @@ -3153,7 +3293,7 @@ "h": 4, "w": 2, "x": 16, - "y": 62 + "y": 66 }, "id": 96, "links": [], @@ -3229,7 +3369,7 @@ "h": 4, "w": 2, "x": 18, - "y": 62 + "y": 66 }, "id": 97, "links": [], @@ -3305,7 +3445,7 @@ "h": 4, "w": 2, "x": 20, - "y": 62 + "y": 66 }, "id": 98, "links": [], @@ -3381,7 +3521,7 @@ "h": 4, "w": 2, "x": 22, - "y": 62 + "y": 66 }, "id": 95, "links": [], @@ -3453,7 +3593,7 @@ "h": 2, "w": 4, "x": 0, - "y": 64 + "y": 68 }, "id": 58, "options": { @@ -3559,7 +3699,7 @@ "h": 9, "w": 12, "x": 0, - "y": 66 + "y": 70 }, "id": 40, "links": [], @@ -3666,7 +3806,7 @@ "h": 9, "w": 12, "x": 12, - "y": 66 + "y": 70 }, "id": 2, "links": [], @@ -3728,8 +3868,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3891,8 +4030,7 @@ "mode": "absolute", "steps": [ { - "color": "yellow", - "value": null + "color": "yellow" }, { "color": "red", @@ -3945,7 +4083,7 @@ "h": 9, "w": 12, "x": 0, - "y": 75 + "y": 79 }, "id": 55, "options": { @@ -3974,7 +4112,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4099,8 +4237,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4117,7 +4254,7 @@ "h": 9, "w": 12, "x": 12, - "y": 75 + "y": 79 }, "id": 6, "links": [], @@ -4164,7 +4301,7 @@ "h": 1, "w": 24, "x": 0, - "y": 84 + "y": 88 }, "id": 42, "panels": [], @@ -4229,8 +4366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4247,7 +4383,7 @@ "h": 8, "w": 12, "x": 0, - "y": 85 + "y": 89 }, "id": 44, "options": { @@ -4329,8 +4465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4347,7 +4482,7 @@ "h": 8, "w": 12, "x": 12, - "y": 85 + "y": 89 }, "id": 45, "options": { @@ -4409,7 +4544,7 @@ "h": 4, "w": 4, "x": 0, - "y": 93 + "y": 97 }, "id": 67, "options": { @@ -4437,11 +4572,11 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_cinder_volumes", + "expr": "openstack_cinder_volumes ", "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4477,7 +4612,7 @@ "h": 4, "w": 4, "x": 4, - "y": 93 + "y": 97 }, "id": 69, "options": { @@ -4509,7 +4644,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4545,7 +4680,7 @@ "h": 4, "w": 4, "x": 8, - "y": 93 + "y": 97 }, "id": 70, "options": { @@ -4577,7 +4712,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4590,7 +4725,7 @@ "h": 1, "w": 24, "x": 0, - "y": 97 + "y": 101 }, "id": 71, "panels": [], @@ -4628,7 +4763,7 @@ "h": 4, "w": 4, "x": 0, - "y": 98 + "y": 102 }, "id": 60, "options": { @@ -4656,11 +4791,11 @@ }, "editorMode": "code", "exemplar": false, - "expr": "openstack_identity_domains", + "expr": "openstack_identity_domains ", "format": "table", - "instant": true, + "instant": false, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4698,7 +4833,7 @@ "h": 4, "w": 4, "x": 4, - "y": 98 + "y": 102 }, "id": 73, "options": { @@ -4728,9 +4863,9 @@ "exemplar": false, "expr": "openstack_identity_users", "format": "table", - "instant": true, + "instant": false, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4768,7 +4903,7 @@ "h": 4, "w": 4, "x": 8, - "y": 98 + "y": 102 }, "id": 74, "options": { @@ -4800,7 +4935,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4838,7 +4973,7 @@ "h": 4, "w": 4, "x": 12, - "y": 98 + "y": 102 }, "id": 75, "options": { @@ -4870,7 +5005,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4908,7 +5043,7 @@ "h": 4, "w": 4, "x": 16, - "y": 98 + "y": 102 }, "id": 76, "options": { @@ -4940,7 +5075,7 @@ "format": "table", "instant": true, "legendFormat": "__auto", - "range": false, + "range": true, "refId": "A" } ], @@ -4953,7 +5088,7 @@ "h": 1, "w": 24, "x": 0, - "y": 102 + "y": 106 }, "id": 59, "panels": [], @@ -4991,7 +5126,7 @@ "h": 4, "w": 4, "x": 0, - "y": 103 + "y": 107 }, "id": 72, "options": { @@ -5062,7 +5197,7 @@ "h": 4, "w": 4, "x": 4, - "y": 103 + "y": 107 }, "id": 61, "options": { @@ -5133,7 +5268,7 @@ "h": 4, "w": 4, "x": 8, - "y": 103 + "y": 107 }, "id": 62, "options": { @@ -5204,7 +5339,7 @@ "h": 4, "w": 4, "x": 12, - "y": 103 + "y": 107 }, "id": 65, "options": { @@ -5240,7 +5375,7 @@ "refId": "A" } ], - "title": "Amphorae In Error", + "title": "Amphorae allocated", "type": "stat" }, { @@ -5274,7 +5409,7 @@ "h": 4, "w": 4, "x": 16, - "y": 103 + "y": 107 }, "id": 64, "options": { @@ -5345,7 +5480,7 @@ "h": 4, "w": 4, "x": 20, - "y": 103 + "y": 107 }, "id": 63, "options": { @@ -5415,7 +5550,7 @@ ] }, "time": { - "from": "now-24h", + "from": "now-2d", "to": "now" }, "timepicker": { @@ -5446,6 +5581,6 @@ "timezone": "", "title": "OpenStack Exporter", "uid": "YZCsB1Qmy", - "version": 52, + "version": 68, "weekStart": "" }