mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add docker container network usage graphs
This commit is contained in:
12982
salt/grafana/dashboards/sysdash.json
Normal file
12982
salt/grafana/dashboards/sysdash.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -133,42 +133,39 @@ grafana:
|
|||||||
y: 9
|
y: 9
|
||||||
h: 1
|
h: 1
|
||||||
w: 24
|
w: 24
|
||||||
cpu_docker_combined_current:
|
cpu_docker_combined_current_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 10
|
y: 10
|
||||||
h: 8
|
h: 8
|
||||||
w: 24
|
w: 24
|
||||||
cpu_docker_combined_trend:
|
cpu_docker_combined_trend_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 18
|
y: 18
|
||||||
h: 8
|
h: 8
|
||||||
w: 24
|
w: 24
|
||||||
memory_used_docker_combined_current:
|
memory_used_docker_combined_current_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 26
|
y: 26
|
||||||
h: 8
|
h: 8
|
||||||
w: 24
|
w: 24
|
||||||
memory_used_docker_combined_trend:
|
memory_used_docker_combined_trend_graph:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 34
|
y: 34
|
||||||
h: 8
|
h: 8
|
||||||
w: 24
|
w: 24
|
||||||
# cpu_usage_idle:
|
network_usage_docker_combined_current_graph:
|
||||||
# enabled: true
|
gridPos:
|
||||||
# trend: true
|
x: 0
|
||||||
# gridPos:
|
y: 42
|
||||||
# h: 10
|
h: 8
|
||||||
# w: 20
|
w: 24
|
||||||
# x: 0
|
network_usage_docker_combined_trend_graph:
|
||||||
# y: 0
|
gridPos:
|
||||||
# cpu_usage_tasks: {}
|
x: 0
|
||||||
# disk_io: {}
|
y: 50
|
||||||
# disk_used_root: {}
|
h: 8
|
||||||
# disk_used_nsm: {}
|
w: 24
|
||||||
# elasticsearch_cpu_usage: {}
|
|
||||||
# elasticsearch_documents_count: {}
|
|
||||||
# elasticsearch_field_data_cache_size: {}
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
"type": "graph",
|
"type": "graph",
|
||||||
"title": "Container CPU Usage Current",
|
"title": "Container CPU Usage Current",
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.cpu_docker_combined_current.gridPos.x }},
|
"x": {{ PANELS.cpu_docker_combined_current_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.cpu_docker_combined_current.gridPos.y }},
|
"y": {{ PANELS.cpu_docker_combined_current_graph.gridPos.y }},
|
||||||
"w": {{ PANELS.cpu_docker_combined_current.gridPos.w }},
|
"w": {{ PANELS.cpu_docker_combined_current_graph.gridPos.w }},
|
||||||
"h": {{ PANELS.cpu_docker_combined_current.gridPos.h }}
|
"h": {{ PANELS.cpu_docker_combined_current_graph.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 100,
|
"id": 100,
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
"type": "graph",
|
"type": "graph",
|
||||||
"title": "Container CPU Usage Trend",
|
"title": "Container CPU Usage Trend",
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.cpu_docker_combined_trend.gridPos.x }},
|
"x": {{ PANELS.cpu_docker_combined_trend_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.cpu_docker_combined_trend.gridPos.y }},
|
"y": {{ PANELS.cpu_docker_combined_trend_graph.gridPos.y }},
|
||||||
"w": {{ PANELS.cpu_docker_combined_trend.gridPos.w }},
|
"w": {{ PANELS.cpu_docker_combined_trend_graph.gridPos.w }},
|
||||||
"h": {{ PANELS.cpu_docker_combined_trend.gridPos.h }}
|
"h": {{ PANELS.cpu_docker_combined_trend_graph.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 101,
|
"id": 101,
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "5 Minute Load Average",
|
"title": "5 Minute Load Average - $cpucount Cores",
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"options": {
|
"options": {
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
"type": "graph",
|
"type": "graph",
|
||||||
"title": "Container Memory Usage Current",
|
"title": "Container Memory Usage Current",
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.memory_used_docker_combined_current.gridPos.x }},
|
"x": {{ PANELS.memory_used_docker_combined_current_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.memory_used_docker_combined_current.gridPos.y }},
|
"y": {{ PANELS.memory_used_docker_combined_current_graph.gridPos.y }},
|
||||||
"w": {{ PANELS.memory_used_docker_combined_current.gridPos.w }},
|
"w": {{ PANELS.memory_used_docker_combined_current_graph.gridPos.w }},
|
||||||
"h": {{ PANELS.memory_used_docker_combined_current.gridPos.h }}
|
"h": {{ PANELS.memory_used_docker_combined_current_graph.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 102,
|
"id": 102,
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
"type": "graph",
|
"type": "graph",
|
||||||
"title": "Container Memory Usage Trend",
|
"title": "Container Memory Usage Trend",
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.memory_used_docker_combined_trend.gridPos.x }},
|
"x": {{ PANELS.memory_used_docker_combined_trend_graph.gridPos.x }},
|
||||||
"y": {{ PANELS.memory_used_docker_combined_trend.gridPos.y }},
|
"y": {{ PANELS.memory_used_docker_combined_trend_graph.gridPos.y }},
|
||||||
"w": {{ PANELS.memory_used_docker_combined_trend.gridPos.w }},
|
"w": {{ PANELS.memory_used_docker_combined_trend_graph.gridPos.w }},
|
||||||
"h": {{ PANELS.memory_used_docker_combined_trend.gridPos.h }}
|
"h": {{ PANELS.memory_used_docker_combined_trend_graph.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 103,
|
"id": 103,
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -0,0 +1,231 @@
|
|||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"dashLength": 10,
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"fill": 1,
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.network_usage_docker_combined_current_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.network_usage_docker_combined_current_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.network_usage_docker_combined_current_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.network_usage_docker_combined_current_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61868,
|
||||||
|
"legend": {
|
||||||
|
"alignAsTable": false,
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"hideZero": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"rightSide": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"nullPointMode": "connected",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"pointradius": 2,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"alias": "$tag_container_name RX",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"container_name"
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "docker_container_net",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"rx_bytes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "non_negative_derivative",
|
||||||
|
"params": [
|
||||||
|
"1s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "math",
|
||||||
|
"params": [
|
||||||
|
"*8"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "AND",
|
||||||
|
"key": "container_name",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$containers$/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alias": "$tag_container_name TX",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"container_name"
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "docker_container_net",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"refId": "B",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"tx_bytes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "non_negative_derivative",
|
||||||
|
"params": [
|
||||||
|
"1s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "math",
|
||||||
|
"params": [
|
||||||
|
"*8"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "AND",
|
||||||
|
"key": "container_name",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$containers$/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hide": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"title": "Container Network Usage Current",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:315",
|
||||||
|
"format": "bps",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:316",
|
||||||
|
"format": "short",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
},
|
||||||
|
"bars": false,
|
||||||
|
"dashes": false,
|
||||||
|
"decimals": null,
|
||||||
|
"fillGradient": 0,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"percentage": false,
|
||||||
|
"points": false,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null,
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
@@ -0,0 +1,231 @@
|
|||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"dashLength": 10,
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"fill": 1,
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.network_usage_docker_combined_trend_graph.gridPos.x }},
|
||||||
|
"y": {{ PANELS.network_usage_docker_combined_trend_graph.gridPos.y }},
|
||||||
|
"w": {{ PANELS.network_usage_docker_combined_trend_graph.gridPos.w }},
|
||||||
|
"h": {{ PANELS.network_usage_docker_combined_trend_graph.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61461,
|
||||||
|
"legend": {
|
||||||
|
"alignAsTable": false,
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"hideZero": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"rightSide": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"nullPointMode": "connected",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"pointradius": 2,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"alias": "$tag_container_name RX",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"container_name"
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "docker_container_net",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "so_long_term",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"rx_bytes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "non_negative_derivative",
|
||||||
|
"params": [
|
||||||
|
"1s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "math",
|
||||||
|
"params": [
|
||||||
|
"*8"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "AND",
|
||||||
|
"key": "container_name",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$containers$/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alias": "$tag_container_name TX",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"container_name"
|
||||||
|
],
|
||||||
|
"type": "tag"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "docker_container_net",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "so_long_term",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"refId": "B",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"tx_bytes"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "non_negative_derivative",
|
||||||
|
"params": [
|
||||||
|
"1s"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "math",
|
||||||
|
"params": [
|
||||||
|
"*8"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "AND",
|
||||||
|
"key": "container_name",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$containers$/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hide": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeRegions": [],
|
||||||
|
"title": "Container Network Usage Trend",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:315",
|
||||||
|
"format": "bps",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$$hashKey": "object:316",
|
||||||
|
"format": "short",
|
||||||
|
"label": null,
|
||||||
|
"logBase": 1,
|
||||||
|
"max": null,
|
||||||
|
"min": null,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
},
|
||||||
|
"bars": false,
|
||||||
|
"dashes": false,
|
||||||
|
"decimals": null,
|
||||||
|
"fillGradient": 0,
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"percentage": false,
|
||||||
|
"points": false,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null,
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user