mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add swap usage percent to overview dash
This commit is contained in:
@@ -110,7 +110,31 @@ grafana:
|
||||
h: 8
|
||||
w: 24
|
||||
|
||||
row_swap:
|
||||
gridPos:
|
||||
x: 0
|
||||
y: 58
|
||||
h: 1
|
||||
w: 24
|
||||
swap_usage_percent_graph:
|
||||
gridPos:
|
||||
x: 0
|
||||
y: 59
|
||||
h: 8
|
||||
w: 24
|
||||
|
||||
row_network:
|
||||
gridPos:
|
||||
x: 0
|
||||
y: 67
|
||||
h: 1
|
||||
w: 24
|
||||
management_interface_traffic_graph:
|
||||
gridPos:
|
||||
x: 0
|
||||
y: 68
|
||||
h: 8
|
||||
w: 24
|
||||
|
||||
|
||||
standalone:
|
||||
|
||||
154
salt/grafana/panels/swap_usage_percent_graph.json.jinja
Normal file
154
salt/grafana/panels/swap_usage_percent_graph.json.jinja
Normal file
@@ -0,0 +1,154 @@
|
||||
{
|
||||
"type": "graph",
|
||||
"title": "Swap Usage",
|
||||
"gridPos": {
|
||||
"x": {{ PANELS.swap_usage_percent_graph.gridPos.x }},
|
||||
"y": {{ PANELS.swap_usage_percent_graph.gridPos.y }},
|
||||
"w": {{ PANELS.swap_usage_percent_graph.gridPos.w }},
|
||||
"h": {{ PANELS.swap_usage_percent_graph.gridPos.h }}
|
||||
},
|
||||
"id": 69013,
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"queryType": "randomWalk",
|
||||
"policy": "default",
|
||||
"resultFormat": "time_series",
|
||||
"orderByTime": "ASC",
|
||||
"tags": [
|
||||
{
|
||||
"key": "host",
|
||||
"operator": "=~",
|
||||
"value": "/^$servername$/"
|
||||
},
|
||||
{
|
||||
"condition": "AND",
|
||||
"key": "role",
|
||||
"operator": "=~",
|
||||
"value": "/^$role$/"
|
||||
}
|
||||
],
|
||||
"groupBy": [
|
||||
{
|
||||
"type": "time",
|
||||
"params": [
|
||||
"$__interval"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "tag",
|
||||
"params": [
|
||||
"host"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "tag",
|
||||
"params": [
|
||||
"role"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "fill",
|
||||
"params": [
|
||||
"null"
|
||||
]
|
||||
}
|
||||
],
|
||||
"select": [
|
||||
[
|
||||
{
|
||||
"type": "field",
|
||||
"params": [
|
||||
"used_percent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "mean",
|
||||
"params": []
|
||||
}
|
||||
]
|
||||
],
|
||||
"measurement": "swap",
|
||||
"alias": "$tag_host $tag_role"
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
"alertThreshold": true
|
||||
},
|
||||
"datasource": "InfluxDB",
|
||||
"fieldConfig": {
|
||||
"defaults": {},
|
||||
"overrides": []
|
||||
},
|
||||
"pluginVersion": "7.5.4",
|
||||
"renderer": "flot",
|
||||
"yaxes": [
|
||||
{
|
||||
"label": null,
|
||||
"show": true,
|
||||
"logBase": 1,
|
||||
"min": null,
|
||||
"max": null,
|
||||
"format": "percent",
|
||||
"$$hashKey": "object:100",
|
||||
"decimals": 1
|
||||
},
|
||||
{
|
||||
"label": null,
|
||||
"show": true,
|
||||
"logBase": 1,
|
||||
"min": null,
|
||||
"max": null,
|
||||
"format": "short",
|
||||
"$$hashKey": "object:101"
|
||||
}
|
||||
],
|
||||
"xaxis": {
|
||||
"show": true,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"values": [],
|
||||
"buckets": null
|
||||
},
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"dashLength": 10,
|
||||
"spaceLength": 10,
|
||||
"pointradius": 2,
|
||||
"legend": {
|
||||
"alignAsTable": true,
|
||||
"avg": true,
|
||||
"current": true,
|
||||
"max": true,
|
||||
"min": false,
|
||||
"rightSide": true,
|
||||
"show": true,
|
||||
"sort": "current",
|
||||
"sortDesc": true,
|
||||
"total": false,
|
||||
"values": true
|
||||
},
|
||||
"nullPointMode": "connected",
|
||||
"tooltip": {
|
||||
"value_type": "individual",
|
||||
"shared": true,
|
||||
"sort": 2
|
||||
},
|
||||
"aliasColors": {},
|
||||
"seriesOverrides": [],
|
||||
"thresholds": [],
|
||||
"timeRegions": [],
|
||||
"fill": 0,
|
||||
"fillGradient": 0,
|
||||
"dashes": false,
|
||||
"hiddenSeries": false,
|
||||
"points": false,
|
||||
"bars": false,
|
||||
"stack": false,
|
||||
"percentage": false,
|
||||
"steppedLine": false
|
||||
}
|
||||
Reference in New Issue
Block a user