From 6c680f8ef8ea1b99b5205f154e6093162871daa4 Mon Sep 17 00:00:00 2001 From: Marcel Fuhrmann Date: Mon, 26 Aug 2019 16:41:31 +0200 Subject: [PATCH 1/2] added pguptime graph --- .../pg_database_stats.json | 256 +++++++++++++++++- 1 file changed, 241 insertions(+), 15 deletions(-) diff --git a/OpenNMS PostgreSQL Database Stats/pg_database_stats.json b/OpenNMS PostgreSQL Database Stats/pg_database_stats.json index 71e55bc..aeab26a 100644 --- a/OpenNMS PostgreSQL Database Stats/pg_database_stats.json +++ b/OpenNMS PostgreSQL Database Stats/pg_database_stats.json @@ -5,13 +5,13 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "5.3.4" + "version": "6.2.3" }, { "type": "panel", "id": "graph", "name": "Graph", - "version": "5.0.0" + "version": "" }, { "type": "datasource", @@ -33,11 +33,12 @@ } ] }, + "description": "PostgreSQL database stats", "editable": true, - "gnetId": null, - "graphTooltip": 0, + "gnetId": 9488, + "graphTooltip": 1, "id": null, - "iteration": 1544470232931, + "iteration": 1566825481204, "links": [], "panels": [ { @@ -49,7 +50,7 @@ "fill": 1, "gridPos": { "h": 7, - "w": 24, + "w": 18, "x": 0, "y": 0 }, @@ -69,6 +70,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -164,6 +166,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Connections $psql_instance", "tooltip": { @@ -202,6 +205,101 @@ "alignLevel": null } }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$onms_instance", + "fill": 1, + "gridPos": { + "h": 7, + "w": 6, + "x": 18, + "y": 0 + }, + "id": 39, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total", + "fill": 0 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "attribute": "pguptime", + "label": "Uptime", + "nodeId": "$psql_instance", + "refId": "G", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Uptime", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "s", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, { "collapsed": false, "gridPos": { @@ -225,7 +323,7 @@ "fill": 1, "gridPos": { "h": 10, - "w": 15, + "w": 11, "x": 0, "y": 8 }, @@ -247,6 +345,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -327,6 +426,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Stats", "tooltip": { @@ -375,11 +475,11 @@ "fill": 1, "gridPos": { "h": 10, - "w": 9, - "x": 15, + "w": 7, + "x": 11, "y": 8 }, - "id": 7, + "id": 38, "legend": { "alignAsTable": true, "avg": false, @@ -397,6 +497,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -446,6 +547,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Disk Blocks", "tooltip": { @@ -485,6 +587,120 @@ "alignLevel": null } }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$onms_instance", + "fill": 1, + "gridPos": { + "h": 10, + "w": 6, + "x": 18, + "y": 8 + }, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "hideEmpty": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": {}, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "application": { + "filter": "" + }, + "attribute": "max_xid", + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "label": "Transaction ID count", + "mode": 0, + "nodeId": "$psql_instance", + "options": { + "showDisabledItems": false + }, + "refId": "A", + "resourceId": "$db", + "triggers": { + "acknowledged": 2, + "count": true, + "minSeverity": 3 + }, + "type": "attribute" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Transaction ID max count", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "short", + "label": "", + "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, @@ -517,6 +733,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -559,6 +776,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Db Size", "tooltip": { @@ -631,6 +849,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -703,6 +922,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Transactions", "tooltip": { @@ -775,6 +995,7 @@ "linewidth": 1, "links": [], "nullPointMode": "null", + "options": {}, "percentage": false, "pointradius": 5, "points": false, @@ -856,6 +1077,7 @@ ], "thresholds": [], "timeFrom": null, + "timeRegions": [], "timeShift": null, "title": "Temp Files", "tooltip": { @@ -898,7 +1120,7 @@ } ], "refresh": "30s", - "schemaVersion": 16, + "schemaVersion": 18, "style": "dark", "tags": [ "postgresql", @@ -908,11 +1130,13 @@ "list": [ { "current": { - "text": "OpenNMS FUL Performance", - "value": "OpenNMS FUL Performance" + "text": "OpenNMS Performance FRA", + "value": "OpenNMS Performance FRA" }, "hide": 0, + "includeAll": false, "label": null, + "multi": false, "name": "onms_instance", "options": [], "query": "opennms-helm-performance-datasource", @@ -925,6 +1149,7 @@ "allValue": null, "current": {}, "datasource": "$onms_instance", + "definition": "", "hide": 0, "includeAll": false, "label": null, @@ -946,6 +1171,7 @@ "allValue": null, "current": {}, "datasource": "$onms_instance", + "definition": "", "hide": 0, "includeAll": false, "label": null, @@ -966,7 +1192,7 @@ ] }, "time": { - "from": "now-2d", + "from": "now-30m", "to": "now" }, "timepicker": { @@ -997,5 +1223,5 @@ "timezone": "", "title": "OpenNMS - PostgreSQL Database Stats", "uid": "y6HXJTPmz", - "version": 2 + "version": 7 } From e38ed99beb61038fd837ad6b8453a0a118298c6d Mon Sep 17 00:00:00 2001 From: Marcel Fuhrmann Date: Mon, 26 Aug 2019 16:43:28 +0200 Subject: [PATCH 2/2] Update pg_database_stats.json --- OpenNMS PostgreSQL Database Stats/pg_database_stats.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenNMS PostgreSQL Database Stats/pg_database_stats.json b/OpenNMS PostgreSQL Database Stats/pg_database_stats.json index aeab26a..926a4e6 100644 --- a/OpenNMS PostgreSQL Database Stats/pg_database_stats.json +++ b/OpenNMS PostgreSQL Database Stats/pg_database_stats.json @@ -38,7 +38,7 @@ "gnetId": 9488, "graphTooltip": 1, "id": null, - "iteration": 1566825481204, + "iteration": 1566825481210, "links": [], "panels": [ {