change panels

This commit is contained in:
m0duspwnens
2021-07-13 12:30:45 -04:00
parent 5b3751da70
commit 9a6ac7bd20
2 changed files with 84 additions and 100 deletions

View File

@@ -1,146 +1,130 @@
{ {
"aliasColors": {}, "type": "graph",
"dashLength": 10, "title": "CPU Usage",
"datasource": "InfluxDB",
"editable": true,
"fill": 1,
"grid": {},
"gridPos": { "gridPos": {
"x": {{ PANELS.cpu_usage_tasks_graph.gridPos.x }}, "x": {{ PANELS.cpu_usage_tasks_graph.gridPos.x }},
"y": {{ PANELS.cpu_usage_tasks_graph.gridPos.y }}, "y": {{ PANELS.cpu_usage_tasks_graph.gridPos.y }},
"w": {{ PANELS.cpu_usage_tasks_graph.gridPos.w }}, "w": {{ PANELS.cpu_usage_tasks_graph.gridPos.w }},
"h": {{ PANELS.cpu_usage_tasks_graph.gridPos.h }} "h": {{ PANELS.cpu_usage_tasks_graph.gridPos.h }}
}, },
"height": "300", "id": 61871,
"id": 27,
"interval": "$inter",
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": true,
"hideZero": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sort": "current",
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"pointradius": 5,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"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"
} }
], ],
"hide": false,
"measurement": "cpu",
"policy": "default",
"query": "SELECT mean(usage_user) as \"user\", mean(usage_system) as \"system\", mean(usage_softirq) as \"softirq\", mean(usage_steal) as \"steal\", mean(usage_nice) as \"nice\", mean(usage_irq) as \"irq\", mean(usage_iowait) as \"iowait\", mean(usage_guest) as \"guest\", mean(usage_guest_nice) as \"guest_nice\" FROM \"cpu\" WHERE \"host\" =~ /^$servername$/ and cpu = 'cpu-total' AND $timeFilter GROUP BY time($interval), *",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [ "select": [
[ [
{ {
"type": "field",
"params": [ "params": [
"value" "value"
], ]
"type": "field"
}, },
{ {
"params": [], "type": "mean",
"type": "mean" "params": []
} }
] ]
], ],
"tags": [], "query": "SELECT mean(usage_user) as \"user\", mean(usage_system) as \"system\", mean(usage_softirq) as \"softirq\", mean(usage_steal) as \"steal\", mean(usage_nice) as \"nice\", mean(usage_irq) as \"irq\", mean(usage_iowait) as \"iowait\", mean(usage_guest) as \"guest\", mean(usage_guest_nice) as \"guest_nice\" FROM \"cpu\" WHERE \"host\" =~ /^$servername$/ and cpu = 'cpu-total' AND $timeFilter GROUP BY time($interval), *",
"orderByTime": "ASC" "rawQuery": true,
"alias": "$tag_host: $col"
} }
], ],
"thresholds": [], "options": {
"timeRegions": [], "alertThreshold": true
"title": "CPU 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": "percent", "label": null,
"logBase": 1,
"max": 100,
"min": 0,
"show": true, "show": true,
"$$hashKey": "object:1007" "logBase": 1,
"min": "0",
"max": "100",
"format": "percent",
"$$hashKey": "object:202",
"decimals": null
}, },
{ {
"format": "short", "label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true, "show": true,
"$$hashKey": "object:1008" "logBase": 1,
"min": null,
"max": null,
"format": "short",
"$$hashKey": "object:203"
} }
], ],
"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,
"spaceLength": 10,
"pointradius": 2,
"legend": {
"show": true,
"values": true,
"min": true,
"max": true,
"current": true,
"total": false,
"avg": true,
"alignAsTable": true,
"hideEmpty": true,
"hideZero": true
}, },
"overrides": [] "nullPointMode": "connected",
"tooltip": {
"value_type": "individual",
"shared": true,
"sort": 0
}, },
"pluginVersion": "7.5.4", "aliasColors": {},
"bars": false, "seriesOverrides": [],
"dashes": false, "thresholds": [],
"error": false, "timeRegions": [],
"fillGradient": 0, "fillGradient": 0,
"percentage": false, "dashes": false,
"hiddenSeries": false,
"points": false, "points": false,
"bars": false,
"stack": false, "stack": false,
"steppedLine": false, "percentage": false,
"timeFrom": null, "steppedLine": false
"timeShift": null,
"hiddenSeries": false
} }

View File

@@ -44,7 +44,7 @@
} }
] ]
], ],
"query": "SELECT mean(load1) as \"1m\", mean(load5) as \"5m\", mean(load15) as \"15m\" FROM \"system\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), * ORDER BY asc", "query": "SELECT mean(load1) as \"1 minute\", mean(load5) as \"5 minutes\", mean(load15) as \"15 minutes\" FROM \"system\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), * ORDER BY asc",
"rawQuery": true, "rawQuery": true,
"alias": "$tag_host: $col" "alias": "$tag_host: $col"
} }