add trends memory usage and network graphs

This commit is contained in:
m0duspwnens
2021-07-14 09:57:43 -04:00
parent 1d23d1b2e2
commit 53c6edcbdb
3 changed files with 162 additions and 112 deletions

View File

@@ -316,7 +316,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Management Traffic", "title": "Management Traffic - $manint",
"tooltip": { "tooltip": {
"msResolution": true, "msResolution": true,
"shared": true, "shared": true,

View File

@@ -1,135 +1,185 @@
{ {
"type": "graph", "aliasColors": {},
"title": "Memory Usage", "dashLength": 10,
"gridPos": {
"x": {{ PANELS.memory_usage_graph.gridPos.x }},
"y": {{ PANELS.memory_usage_graph.gridPos.y }},
"w": {{ PANELS.memory_usage_graph.gridPos.w }},
"h": {{ PANELS.memory_usage_graph.gridPos.h }}
},
"id": 61873,
"targets": [
{
"refId": "A",
"queryType": "randomWalk",
"policy": "default",
"resultFormat": "time_series",
"orderByTime": "ASC",
"tags": [],
"groupBy": [
{
"type": "time",
"params": [
"$__interval"
]
},
{
"type": "fill",
"params": [
"null"
]
}
],
"select": [
[
{
"type": "field",
"params": [
"value"
]
},
{
"type": "mean",
"params": []
}
]
],
"query": "SELECT mean(total) as total, mean(used) as used, mean(cached) as cached, mean(free) as free, mean(buffered) as buffered FROM \"mem\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), host ORDER BY asc",
"rawQuery": true,
"alias": "$tag_host: $col"
}
],
"options": {
"alertThreshold": true
},
"datasource": "InfluxDB", "datasource": "InfluxDB",
"fieldConfig": { "fieldConfig": {
"defaults": {}, "defaults": {},
"overrides": [] "overrides": []
}, },
"pluginVersion": "7.5.4", "fill": 1,
"renderer": "flot", "gridPos": {
"yaxes": [ "x": {{ PANELS.memory_usage_graph.gridPos.x }},
{ "y": {{ PANELS.memory_usage_graph.gridPos.y }},
"label": null, "w": {{ PANELS.memory_usage_graph.gridPos.w }},
"show": true, "h": {{ PANELS.memory_usage_graph.gridPos.h }}
"logBase": 1,
"min": "0",
"max": null,
"format": "bytes",
"$$hashKey": "object:235"
},
{
"label": null,
"show": true,
"logBase": 1,
"min": null,
"max": null,
"format": "short",
"$$hashKey": "object:236"
}
],
"xaxis": {
"show": true,
"mode": "time",
"name": null,
"values": [],
"buckets": null
}, },
"yaxis": { "id": 61873,
"align": false, "legend": {
"alignLevel": null "alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"total": false,
"values": true
}, },
"lines": true, "lines": true,
"fill": 1,
"linewidth": 1, "linewidth": 1,
"dashLength": 10,
"spaceLength": 10,
"pointradius": 2,
"legend": {
"show": true,
"values": true,
"min": true,
"max": true,
"current": true,
"total": false,
"avg": true,
"alignAsTable": true
},
"nullPointMode": "connected", "nullPointMode": "connected",
"tooltip": { "options": {
"value_type": "individual", "alertThreshold": true
"shared": true,
"sort": 0
}, },
"aliasColors": {}, "pluginVersion": "7.5.4",
"pointradius": 2,
"renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"$$hashKey": "object:295", "$$hashKey": "object:295",
"alias": "/total/", "alias": "/total/",
"color": "#C4162A",
"fill": 0
},
{
"$$hashKey": "object:164",
"alias": "/trend/",
"fill": 0, "fill": 0,
"color": "#C4162A" "linewidth": 4,
"dashes": true,
"dashLength": 4
}
],
"spaceLength": 10,
"targets": [
{
"alias": "$tag_host: $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(total) as total, mean(used) as used, mean(cached) as cached, mean(free) as free, mean(buffered) as buffered FROM \"mem\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), host ORDER BY asc",
"queryType": "randomWalk",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
},
{
"alias": "$tag_host: $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(mean_total) as trend_total, mean(mean_used) as trend_used, mean(mean_cached) as trean_cached, mean(mean_free) as trend_free, mean(mean_buffered) as trend_buffered FROM \"so_long_term\".\"mem\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), host ORDER BY asc",
"queryType": "randomWalk",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [],
"hide": false
} }
], ],
"thresholds": [], "thresholds": [],
"timeRegions": [], "timeRegions": [],
"fillGradient": 0, "title": "Memory Usage",
"dashes": false, "tooltip": {
"hiddenSeries": false, "shared": true,
"points": false, "sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:235",
"format": "bytes",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:236",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
},
"bars": false, "bars": false,
"stack": false, "dashes": false,
"description": "",
"fillGradient": 0,
"hiddenSeries": false,
"percentage": false, "percentage": false,
"points": false,
"stack": false,
"steppedLine": false, "steppedLine": false,
"description": "" "timeFrom": null,
"timeShift": null
} }

View File

@@ -191,7 +191,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Monitor Traffic", "title": "Monitor Traffic - $monint",
"tooltip": { "tooltip": {
"msResolution": true, "msResolution": true,
"shared": true, "shared": true,