mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-19 07:23:06 +01:00
add trend, add network graphs
This commit is contained in:
@@ -163,64 +163,21 @@ grafana:
|
|||||||
h: 6
|
h: 6
|
||||||
w: 24
|
w: 24
|
||||||
|
|
||||||
row_docker_details:
|
row_network:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 29
|
y: 29
|
||||||
h: 1
|
h: 1
|
||||||
w: 24
|
w: 24
|
||||||
cpu_docker_combined_current_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 30
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
cpu_docker_combined_trend_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 38
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
memory_used_docker_combined_current_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 46
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
memory_used_docker_combined_trend_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 54
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
network_usage_docker_combined_current_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 62
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
network_usage_docker_combined_trend_graph:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 70
|
|
||||||
h: 8
|
|
||||||
w: 24
|
|
||||||
|
|
||||||
row_network:
|
|
||||||
gridPos:
|
|
||||||
x: 0
|
|
||||||
y: 78
|
|
||||||
h: 1
|
|
||||||
w: 24
|
|
||||||
management_traffic_graph:
|
management_traffic_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 79
|
y: 30
|
||||||
h: 6
|
h: 6
|
||||||
w: 24
|
w: 12
|
||||||
monitor_traffic_graph:
|
monitor_traffic_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 12
|
||||||
y: 85
|
y: 30
|
||||||
h: 6
|
h: 6
|
||||||
w: 24
|
w: 12
|
||||||
|
|||||||
261
salt/grafana/panels/management_interface_drops_graph.json.jinja
Normal file
261
salt/grafana/panels/management_interface_drops_graph.json.jinja
Normal file
@@ -0,0 +1,261 @@
|
|||||||
|
{
|
||||||
|
"type": "graph",
|
||||||
|
"title": "Management Interface Drops",
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.management_interface_drops_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.management_interface_drops_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.management_interface_drops_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.management_interface_drops_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61877,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(drop_in), 1s) as \"in\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "B",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(drop_out), 1s) as \"out\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "C",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_drop_in), 1s) as \"trend_in\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col",
|
||||||
|
"hide": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "D",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_drop_out), 1s) as \"trend_out\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"renderer": "flot",
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"label": "Drops per second",
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "pps",
|
||||||
|
"$$hashKey": "object:500"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": null,
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "short",
|
||||||
|
"$$hashKey": "object:501"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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,
|
||||||
|
"legend": {
|
||||||
|
"show": true,
|
||||||
|
"values": true,
|
||||||
|
"min": false,
|
||||||
|
"max": true,
|
||||||
|
"current": true,
|
||||||
|
"total": false,
|
||||||
|
"avg": true,
|
||||||
|
"alignAsTable": true
|
||||||
|
},
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"tooltip": {
|
||||||
|
"value_type": "individual",
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0
|
||||||
|
},
|
||||||
|
"aliasColors": {},
|
||||||
|
"seriesOverrides": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:592",
|
||||||
|
"alias": "/veth/",
|
||||||
|
"hiddenSeries": true,
|
||||||
|
"legend": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:621",
|
||||||
|
"alias": "/trend/",
|
||||||
|
"fill": 0,
|
||||||
|
"linewidth": 4,
|
||||||
|
"dashes": true,
|
||||||
|
"dashLength": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"fillGradient": 0,
|
||||||
|
"dashes": false,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"points": false,
|
||||||
|
"bars": false,
|
||||||
|
"stack": false,
|
||||||
|
"percentage": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"decimals": 0
|
||||||
|
}
|
||||||
@@ -0,0 +1,259 @@
|
|||||||
|
{
|
||||||
|
"type": "graph",
|
||||||
|
"title": "Management Interface Packets",
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.management_interface_packets_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.management_interface_packets_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.management_interface_packets_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.management_interface_packets_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61875,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(packets_recv), 1s) as \"in\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "B",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(packets_sent), 1s) as \"out\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "C",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_packets_recv), 1s) as \"trend_in\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col",
|
||||||
|
"hide": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "D",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_packets_sent), 1s) as \"trend_out\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$manint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"renderer": "flot",
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"label": "Packets per second",
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "pps",
|
||||||
|
"$$hashKey": "object:241"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": null,
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "short",
|
||||||
|
"$$hashKey": "object:242"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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,
|
||||||
|
"legend": {
|
||||||
|
"show": true,
|
||||||
|
"values": false,
|
||||||
|
"min": false,
|
||||||
|
"max": false,
|
||||||
|
"current": false,
|
||||||
|
"total": false,
|
||||||
|
"avg": false
|
||||||
|
},
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"tooltip": {
|
||||||
|
"value_type": "individual",
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0
|
||||||
|
},
|
||||||
|
"aliasColors": {},
|
||||||
|
"seriesOverrides": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:413",
|
||||||
|
"alias": "/veth/",
|
||||||
|
"hiddenSeries": true,
|
||||||
|
"legend": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:442",
|
||||||
|
"alias": "/trend/",
|
||||||
|
"fill": 0,
|
||||||
|
"linewidth": 4,
|
||||||
|
"dashes": true,
|
||||||
|
"dashLength": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"fillGradient": 0,
|
||||||
|
"dashes": false,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"points": false,
|
||||||
|
"bars": false,
|
||||||
|
"stack": false,
|
||||||
|
"percentage": false,
|
||||||
|
"steppedLine": false
|
||||||
|
}
|
||||||
261
salt/grafana/panels/monitor_interface_drops_graph.json.jinja
Normal file
261
salt/grafana/panels/monitor_interface_drops_graph.json.jinja
Normal file
@@ -0,0 +1,261 @@
|
|||||||
|
{
|
||||||
|
"type": "graph",
|
||||||
|
"title": "Monitor Interface Drops",
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.monitor_interface_drops_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.monitor_interface_drops_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.monitor_interface_drops_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.monitor_interface_drops_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61387,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(drop_in), 1s) as \"in\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "B",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(drop_out), 1s) as \"out\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "C",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_drop_in), 1s) as \"trend_in\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col",
|
||||||
|
"hide": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "D",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_drop_out), 1s) as \"trend_out\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), host,interface fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"renderer": "flot",
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"label": "Drops per second",
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "pps",
|
||||||
|
"$$hashKey": "object:500"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": null,
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "short",
|
||||||
|
"$$hashKey": "object:501"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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,
|
||||||
|
"legend": {
|
||||||
|
"show": true,
|
||||||
|
"values": true,
|
||||||
|
"min": false,
|
||||||
|
"max": true,
|
||||||
|
"current": true,
|
||||||
|
"total": false,
|
||||||
|
"avg": true,
|
||||||
|
"alignAsTable": true
|
||||||
|
},
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"tooltip": {
|
||||||
|
"value_type": "individual",
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0
|
||||||
|
},
|
||||||
|
"aliasColors": {},
|
||||||
|
"seriesOverrides": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:592",
|
||||||
|
"alias": "/veth/",
|
||||||
|
"hiddenSeries": true,
|
||||||
|
"legend": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:621",
|
||||||
|
"alias": "/trend/",
|
||||||
|
"fill": 0,
|
||||||
|
"linewidth": 4,
|
||||||
|
"dashes": true,
|
||||||
|
"dashLength": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"fillGradient": 0,
|
||||||
|
"dashes": false,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"points": false,
|
||||||
|
"bars": false,
|
||||||
|
"stack": false,
|
||||||
|
"percentage": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"decimals": 0
|
||||||
|
}
|
||||||
259
salt/grafana/panels/monitor_interface_packets_graph.json.jinja
Normal file
259
salt/grafana/panels/monitor_interface_packets_graph.json.jinja
Normal file
@@ -0,0 +1,259 @@
|
|||||||
|
{
|
||||||
|
"type": "graph",
|
||||||
|
"title": "Monitor Interface Packets",
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.monitor_interface_packets_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.monitor_interface_packets_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.monitor_interface_packets_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.monitor_interface_packets_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61878,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(packets_recv), 1s) as \"in\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "B",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(packets_sent), 1s) as \"out\" FROM \"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "C",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_packets_recv), 1s) as \"trend_in\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col",
|
||||||
|
"hide": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"refId": "D",
|
||||||
|
"hide": false,
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"value"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"query": "SELECT non_negative_derivative(mean(mean_packets_sent), 1s) as \"trend_out\" FROM \"so_long_term\".\"net\" WHERE host =~ /$servername/ AND interface =~ /$monint/ AND $timeFilter GROUP BY time($interval), * fill(none)",
|
||||||
|
"rawQuery": true,
|
||||||
|
"alias": "$tag_host: $tag_interface: $col"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"renderer": "flot",
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"label": "Packets per second",
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "pps",
|
||||||
|
"$$hashKey": "object:241"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": null,
|
||||||
|
"show": true,
|
||||||
|
"logBase": 1,
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"format": "short",
|
||||||
|
"$$hashKey": "object:242"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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,
|
||||||
|
"legend": {
|
||||||
|
"show": true,
|
||||||
|
"values": false,
|
||||||
|
"min": false,
|
||||||
|
"max": false,
|
||||||
|
"current": false,
|
||||||
|
"total": false,
|
||||||
|
"avg": false
|
||||||
|
},
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"tooltip": {
|
||||||
|
"value_type": "individual",
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0
|
||||||
|
},
|
||||||
|
"aliasColors": {},
|
||||||
|
"seriesOverrides": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:413",
|
||||||
|
"alias": "/veth/",
|
||||||
|
"hiddenSeries": true,
|
||||||
|
"legend": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:442",
|
||||||
|
"alias": "/trend/",
|
||||||
|
"fill": 0,
|
||||||
|
"linewidth": 4,
|
||||||
|
"dashes": true,
|
||||||
|
"dashLength": 4
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"fillGradient": 0,
|
||||||
|
"dashes": false,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"points": false,
|
||||||
|
"bars": false,
|
||||||
|
"stack": false,
|
||||||
|
"percentage": false,
|
||||||
|
"steppedLine": false
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user