mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
trends for load and process status
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
{
|
{
|
||||||
"type": "graph",
|
"aliasColors": {},
|
||||||
"title": "Load Averages",
|
"dashLength": 10,
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.load_averages_graph.gridPos.x }},
|
"x": {{ PANELS.load_averages_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.load_averages_graph.gridPos.y }},
|
"y": {{ PANELS.load_averages_graph.gridPos.y }},
|
||||||
@@ -8,120 +13,166 @@
|
|||||||
"h": {{ PANELS.load_averages_graph.gridPos.h }}
|
"h": {{ PANELS.load_averages_graph.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 61869,
|
"id": 61869,
|
||||||
"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(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,
|
|
||||||
"alias": "$tag_host: $col"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"options": {
|
"options": {
|
||||||
"alertThreshold": true
|
"alertThreshold": true
|
||||||
},
|
},
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"pluginVersion": "7.5.4",
|
"pluginVersion": "7.5.4",
|
||||||
|
"pointradius": 2,
|
||||||
"renderer": "flot",
|
"renderer": "flot",
|
||||||
"yaxes": [
|
"seriesOverrides": [
|
||||||
{
|
{
|
||||||
"label": null,
|
"$$hashKey": "object:364",
|
||||||
"show": true,
|
"alias": "/trend/",
|
||||||
"logBase": 1,
|
"fill": 0,
|
||||||
"min": null,
|
"linewidth": 4,
|
||||||
"max": null,
|
"dashes": true,
|
||||||
"format": "short",
|
"dashLength": 4
|
||||||
"$$hashKey": "object:287"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": null,
|
|
||||||
"show": true,
|
|
||||||
"logBase": 1,
|
|
||||||
"min": null,
|
|
||||||
"max": null,
|
|
||||||
"format": "short",
|
|
||||||
"$$hashKey": "object:288"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"alias": "$tag_host: $col",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"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",
|
||||||
|
"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_load1) as \"trend_1 minute\", mean(mean_load5) as \"trend_5 minutes\", mean(mean_load15) as \"trend_15 minutes\" FROM \"so_long_term\".\"system\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), * ORDER BY asc",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"rawQuery": true,
|
||||||
|
"refId": "B",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "mean"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [],
|
||||||
|
"hide": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"title": "Load Averages - $cpucount Cores",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
"xaxis": {
|
"xaxis": {
|
||||||
"show": true,
|
"buckets": null,
|
||||||
"mode": "time",
|
"mode": "time",
|
||||||
"name": null,
|
"name": null,
|
||||||
"values": [],
|
"show": true,
|
||||||
"buckets": null
|
"values": []
|
||||||
},
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:287",
|
||||||
|
"format": "short",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:288",
|
||||||
|
"format": "short",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"yaxis": {
|
"yaxis": {
|
||||||
"align": false,
|
"align": false,
|
||||||
"alignLevel": null
|
"alignLevel": null
|
||||||
},
|
},
|
||||||
"lines": true,
|
"bars": false,
|
||||||
"linewidth": 1,
|
"dashes": false,
|
||||||
"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",
|
|
||||||
"tooltip": {
|
|
||||||
"value_type": "individual",
|
|
||||||
"shared": true,
|
|
||||||
"sort": 0
|
|
||||||
},
|
|
||||||
"aliasColors": {},
|
|
||||||
"seriesOverrides": [],
|
|
||||||
"thresholds": [],
|
|
||||||
"timeRegions": [],
|
|
||||||
"fill": 0,
|
"fill": 0,
|
||||||
"fillGradient": 0,
|
"fillGradient": 0,
|
||||||
"dashes": false,
|
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"points": false,
|
|
||||||
"bars": false,
|
|
||||||
"stack": false,
|
|
||||||
"percentage": false,
|
"percentage": false,
|
||||||
"steppedLine": false
|
"points": false,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
{
|
{
|
||||||
"aliasColors": {},
|
"aliasColors": {},
|
||||||
"bars": false,
|
|
||||||
"dashLength": 10,
|
"dashLength": 10,
|
||||||
"dashes": false,
|
|
||||||
"datasource": "InfluxDB",
|
"datasource": "InfluxDB",
|
||||||
"editable": true,
|
"editable": true,
|
||||||
"error": false,
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"links": []
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
"fill": 1,
|
"fill": 1,
|
||||||
"fillGradient": 0,
|
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.process_status_graph.gridPos.x }},
|
"x": {{ PANELS.process_status_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.process_status_graph.gridPos.y }},
|
"y": {{ PANELS.process_status_graph.gridPos.y }},
|
||||||
@@ -36,14 +38,20 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"alertThreshold": true
|
"alertThreshold": true
|
||||||
},
|
},
|
||||||
"percentage": false,
|
"pluginVersion": "7.5.4",
|
||||||
"pointradius": 5,
|
"pointradius": 5,
|
||||||
"points": false,
|
|
||||||
"renderer": "flot",
|
"renderer": "flot",
|
||||||
"seriesOverrides": [],
|
"seriesOverrides": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:549",
|
||||||
|
"alias": "/trend/",
|
||||||
|
"fill": 0,
|
||||||
|
"linewidth": 4,
|
||||||
|
"dashes": true,
|
||||||
|
"dashLength": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
"spaceLength": 10,
|
"spaceLength": 10,
|
||||||
"stack": false,
|
|
||||||
"steppedLine": false,
|
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"alias": "$tag_host: $col",
|
"alias": "$tag_host: $col",
|
||||||
@@ -88,13 +96,59 @@
|
|||||||
"operator": "=~",
|
"operator": "=~",
|
||||||
"value": "/^$server$/"
|
"value": "/^$server$/"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"orderByTime": "ASC"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alias": "$tag_host: $col",
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "processes",
|
||||||
|
"policy": "default",
|
||||||
|
"query": "SELECT mean(mean_running) as trend_running, mean(mean_blocked) as trend_blocked, mean(mean_sleeping) as trend_sleeping, mean(mean_stopped) as trend_stopped, mean(mean_zombies) as trend_zombies, mean(mean_paging) as trend_paging, mean(mean_unknown) as trend_unknown FROM \"so_long_term\".\"processes\" WHERE host =~ /$servername$/ AND $timeFilter GROUP BY time($interval), host ORDER BY asc",
|
||||||
|
"rawQuery": true,
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"blocked"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "mean"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$server$/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"hide": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": [],
|
"thresholds": [],
|
||||||
"timeFrom": null,
|
|
||||||
"timeRegions": [],
|
"timeRegions": [],
|
||||||
"timeShift": null,
|
|
||||||
"title": "Process Status",
|
"title": "Process Status",
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"msResolution": false,
|
"msResolution": false,
|
||||||
@@ -117,7 +171,8 @@
|
|||||||
"logBase": 1,
|
"logBase": 1,
|
||||||
"max": null,
|
"max": null,
|
||||||
"min": null,
|
"min": null,
|
||||||
"show": true
|
"show": true,
|
||||||
|
"$$hashKey": "object:512"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"format": "short",
|
"format": "short",
|
||||||
@@ -125,19 +180,23 @@
|
|||||||
"logBase": 1,
|
"logBase": 1,
|
||||||
"max": null,
|
"max": null,
|
||||||
"min": null,
|
"min": null,
|
||||||
"show": true
|
"show": true,
|
||||||
|
"$$hashKey": "object:513"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"yaxis": {
|
"yaxis": {
|
||||||
"align": false,
|
"align": false,
|
||||||
"alignLevel": null
|
"alignLevel": null
|
||||||
},
|
},
|
||||||
"fieldConfig": {
|
"bars": false,
|
||||||
"defaults": {
|
"dashes": false,
|
||||||
"links": []
|
"error": false,
|
||||||
},
|
"fillGradient": 0,
|
||||||
"overrides": []
|
"hiddenSeries": false,
|
||||||
},
|
"percentage": false,
|
||||||
"pluginVersion": "7.5.4",
|
"points": false,
|
||||||
"hiddenSeries": false
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user