update memory usage graph panel

This commit is contained in:
m0duspwnens
2021-07-13 14:09:23 -04:00
parent ec8f9228e8
commit f9e29eaede

View File

@@ -1,146 +1,135 @@
{ {
"aliasColors": {}, "type": "graph",
"bars": false, "title": "Memory Usage",
"dashLength": 10, "gridPos": {
"dashes": false, "x": {{ PANELS.row_memory.gridPos.x }},
"datasource": "InfluxDB", "y": {{ PANELS.row_memory.gridPos.y }},
"editable": true, "w": {{ PANELS.row_memory.gridPos.w }},
"error": false, "h": {{ PANELS.row_memory.gridPos.h }}
"fill": 1, },
"fillGradient": 0, "id": 61873,
"grid": {},
"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 }}
},
"height": "400",
"id": 12054,
"interval": "$inter",
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/total/",
"color": "#BF1B00",
"fill": 0,
"linewidth": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"alias": "$tag_host: $col", "refId": "A",
"dsType": "influxdb", "queryType": "randomWalk",
"function": "mean", "policy": "default",
"resultFormat": "time_series",
"orderByTime": "ASC",
"tags": [],
"groupBy": [ "groupBy": [
{ {
"interval": "auto", "type": "time",
"params": [ "params": [
"auto" "$__interval"
], ]
"type": "time"
}, },
{ {
"key": "host", "type": "fill",
"params": [ "params": [
"tag" "null"
], ]
"type": "tag"
} }
], ],
"measurement": "mem_inactive",
"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",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [ "select": [
[ [
{ {
"type": "field",
"params": [ "params": [
"value" "value"
], ]
"type": "field"
}, },
{ {
"params": [], "type": "mean",
"type": "mean" "params": []
} }
] ]
], ],
"tags": [] "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"
} }
], ],
"thresholds": [], "options": {
"timeFrom": null, "alertThreshold": true
"timeRegions": [],
"timeShift": null,
"title": "Memory Usage",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
}, },
"type": "graph", "datasource": "InfluxDB",
"xaxis": { "fieldConfig": {
"buckets": null, "defaults": {},
"mode": "time", "overrides": []
"name": null,
"show": true,
"values": []
}, },
"pluginVersion": "7.5.4",
"renderer": "flot",
"yaxes": [ "yaxes": [
{ {
"format": "bytes", "label": null,
"show": true,
"logBase": 1, "logBase": 1,
"min": "0",
"max": null, "max": null,
"min": 0, "format": "bytes",
"show": true "$$hashKey": "object:235"
}, },
{ {
"format": "short", "label": null,
"show": true,
"logBase": 1, "logBase": 1,
"max": null,
"min": null, "min": null,
"show": true "max": null,
"format": "short",
"$$hashKey": "object:236"
} }
], ],
"xaxis": {
"show": true,
"mode": "time",
"name": null,
"values": [],
"buckets": null
},
"yaxis": { "yaxis": {
"align": false, "align": false,
"alignLevel": null "alignLevel": null
}, },
"fieldConfig": { "lines": true,
"defaults": { "fill": 1,
"links": [] "linewidth": 1,
}, "dashLength": 10,
"overrides": [] "spaceLength": 10,
"pointradius": 2,
"legend": {
"show": true,
"values": true,
"min": true,
"max": true,
"current": true,
"total": false,
"avg": true,
"alignAsTable": true
}, },
"pluginVersion": "7.5.4", "nullPointMode": "connected",
"hiddenSeries": false "tooltip": {
"value_type": "individual",
"shared": true,
"sort": 0
},
"aliasColors": {},
"seriesOverrides": [
{
"$$hashKey": "object:295",
"alias": "/total/",
"fill": 0,
"color": "#C4162A"
}
],
"thresholds": [],
"timeRegions": [],
"fillGradient": 0,
"dashes": false,
"hiddenSeries": false,
"points": false,
"bars": false,
"stack": false,
"percentage": false,
"steppedLine": false,
"description": ""
} }