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,6 +1,12 @@
{ {
"type": "graph", "aliasColors": {},
"title": "Memory Usage", "dashLength": 10,
"datasource": "InfluxDB",
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fill": 1,
"gridPos": { "gridPos": {
"x": {{ PANELS.memory_usage_graph.gridPos.x }}, "x": {{ PANELS.memory_usage_graph.gridPos.x }},
"y": {{ PANELS.memory_usage_graph.gridPos.y }}, "y": {{ PANELS.memory_usage_graph.gridPos.y }},
@@ -8,128 +14,172 @@
"h": {{ PANELS.memory_usage_graph.gridPos.h }} "h": {{ PANELS.memory_usage_graph.gridPos.h }}
}, },
"id": 61873, "id": 61873,
"targets": [ "legend": {
{ "alignAsTable": true,
"refId": "A", "avg": true,
"queryType": "randomWalk", "current": true,
"policy": "default", "max": true,
"resultFormat": "time_series", "min": true,
"orderByTime": "ASC", "show": true,
"tags": [], "total": false,
"groupBy": [ "values": true
{
"type": "time",
"params": [
"$__interval"
]
}, },
{ "lines": true,
"type": "fill", "linewidth": 1,
"params": [ "nullPointMode": "connected",
"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": { "options": {
"alertThreshold": true "alertThreshold": true
}, },
"datasource": "InfluxDB",
"fieldConfig": {
"defaults": {},
"overrides": []
},
"pluginVersion": "7.5.4", "pluginVersion": "7.5.4",
"renderer": "flot",
"yaxes": [
{
"label": null,
"show": true,
"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": {
"align": false,
"alignLevel": null
},
"lines": true,
"fill": 1,
"linewidth": 1,
"dashLength": 10,
"spaceLength": 10,
"pointradius": 2, "pointradius": 2,
"legend": { "renderer": "flot",
"show": true,
"values": true,
"min": true,
"max": true,
"current": true,
"total": false,
"avg": true,
"alignAsTable": true
},
"nullPointMode": "connected",
"tooltip": {
"value_type": "individual",
"shared": true,
"sort": 0
},
"aliasColors": {},
"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,
"bars": false, "value_type": "individual"
"stack": false, },
"percentage": false, "type": "graph",
"steppedLine": false, "xaxis": {
"description": "" "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,
"dashes": false,
"description": "",
"fillGradient": 0,
"hiddenSeries": false,
"percentage": false,
"points": false,
"stack": false,
"steppedLine": false,
"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,