From dc555c94c9d38197c27126a3bdec63e1dad42e1a Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Thu, 31 Jul 2025 13:49:13 +0200 Subject: [PATCH] Updated NodeExporter --- debian/changelog | 2 +- .../dashboards/Peticiones_nginx.json | 4 +- .../resources/dashboards/Node_Exporter.json | 118 ++++++++++++++++-- 3 files changed, 114 insertions(+), 10 deletions(-) diff --git a/debian/changelog b/debian/changelog index a1ed05a..9ee0b6e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -oglog (0.0.1-9) UNRELEASED; urgency=low +oglog (0.0.1-11) UNRELEASED; urgency=low * Initial release. Closes: #nnnn diff --git a/debian/oglog/opt/opengnsys/oglog/etc/grafana/resources/dashboards/Peticiones_nginx.json b/debian/oglog/opt/opengnsys/oglog/etc/grafana/resources/dashboards/Peticiones_nginx.json index b165788..9ec07ef 100644 --- a/debian/oglog/opt/opengnsys/oglog/etc/grafana/resources/dashboards/Peticiones_nginx.json +++ b/debian/oglog/opt/opengnsys/oglog/etc/grafana/resources/dashboards/Peticiones_nginx.json @@ -55,7 +55,7 @@ { "datasource": { "type": "grafana-opensearch-datasource", - "uid": "${DS_OPENSEARCH}" + "uid": "OpenSearch-Opengnsys" }, "fieldConfig": { "defaults": { @@ -147,7 +147,7 @@ ], "datasource": { "type": "grafana-opensearch-datasource", - "uid": "${DS_OPENSEARCH}" + "uid": "OpenSearch-Opengnsys" }, "format": "table", "luceneQueryType": "Metric", diff --git a/etc/grafana/resources/dashboards/Node_Exporter.json b/etc/grafana/resources/dashboards/Node_Exporter.json index 8e7a8f3..ab060fa 100644 --- a/etc/grafana/resources/dashboards/Node_Exporter.json +++ b/etc/grafana/resources/dashboards/Node_Exporter.json @@ -19,7 +19,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 11, + "id": 8, "links": [], "panels": [ { @@ -550,7 +550,7 @@ }, "gridPos": { "h": 7, - "w": 12, + "w": 9, "x": 0, "y": 14 }, @@ -707,8 +707,8 @@ }, "gridPos": { "h": 7, - "w": 12, - "x": 12, + "w": 8, + "x": 9, "y": 14 }, "id": 7, @@ -745,6 +745,110 @@ "title": "Disk Space Usage", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "PE9241A399AC21FCB" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 100, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 17, + "y": 14 + }, + "id": 10, + "options": { + "barRadius": 0, + "barWidth": 0.82, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "orientation": "auto", + "showValue": "auto", + "stacking": "none", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 + }, + "pluginVersion": "11.6.3", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "(\n node_filesystem_size_bytes{instance=\"$instance\",job=\"node_exporter\", fstype!~\"tmpfs|overlay|squashfs\"}\n - \n node_filesystem_avail_bytes{instance=\"$instance\", job=\"node_exporter\", fstype!~\"tmpfs|overlay|squashfs\"}\n)\n/\nnode_filesystem_size_bytes{instance=\"$instance\", job=\"node_exporter\" , fstype!~\"tmpfs|overlay|squashfs\"}\n* 100", + "format": "time_series", + "instant": false, + "legendFormat": "{{mountpoint}}", + "range": true, + "refId": "A" + } + ], + "title": "Panel Title", + "transformations": [ + { + "id": "reduce", + "options": { + "reducers": [ + "last" + ] + } + } + ], + "type": "barchart" + }, { "datasource": { "uid": "Prometheus-Opengnsys" @@ -986,7 +1090,7 @@ }, "timepicker": {}, "timezone": "browser", - "title": "Node Exporter Quickstart and Dashboard", - "uid": "detj9a0xvdbswa", - "version": 2 + "title": "Node Exporter Servers", + "uid": "opengnsys-node-exporter", + "version": 1 } \ No newline at end of file