add packet loss panels

This commit is contained in:
m0duspwnens
2021-07-22 15:02:06 -04:00
parent 7b38b4e280
commit 191def686b
4 changed files with 204 additions and 82 deletions

View File

@@ -147,12 +147,14 @@ grafana:
y: 113 y: 113
h: 8 h: 8
w: 12 w: 12
hideTrend: true
stenographer_packet_loss_graph: stenographer_packet_loss_graph:
gridPos: gridPos:
x: 12 x: 12
y: 121 y: 121
h: 8 h: 8
w: 12 w: 1
hideTrend: true
row_cpu: row_cpu:
gridPos: gridPos:
@@ -208,6 +210,7 @@ grafana:
templating: templating:
list: list:
- servername_standalone - servername_standalone
- role
- containers - containers
- manint - manint
- monint - monint
@@ -642,6 +645,7 @@ grafana:
templating: templating:
list: list:
- servername_manager - servername_manager
- role
- containers - containers
- manint - manint
- monint - monint
@@ -971,6 +975,7 @@ grafana:
templating: templating:
list: list:
- servername_managersearch - servername_managersearch
- role
- containers - containers
- manint - manint
- monint - monint
@@ -1300,6 +1305,7 @@ grafana:
templating: templating:
list: list:
- servername_sensor - servername_sensor
- role
- containers - containers
- manint - manint
- monint - monint
@@ -1651,6 +1657,7 @@ grafana:
templating: templating:
list: list:
- servername_searchnode - servername_searchnode
- role
- containers - containers
- manint - manint
- monint - monint
@@ -1936,6 +1943,7 @@ grafana:
templating: templating:
list: list:
- servername_heavynode - servername_heavynode
- role
- containers - containers
- manint - manint
- monint - monint

View File

@@ -1,11 +1,6 @@
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false,
"maxDataPoints": 750,
"interval": "30s",
"cacheTimeout": null,
"dashLength": 10, "dashLength": 10,
"dashes": false,
"datasource": "InfluxDB", "datasource": "InfluxDB",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -13,24 +8,22 @@
}, },
"overrides": [] "overrides": []
}, },
"fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"x": {{ PANELS.stenographer_packet_loss_graph.gridPos.x }}, "x": {{ PANELS.stenographer_packet_loss_graph.gridPos.x }},
"y": {{ PANELS.stenographer_packet_loss_graph.gridPos.y }}, "y": {{ PANELS.stenographer_packet_loss_graph.gridPos.y }},
"w": {{ PANELS.stenographer_packet_loss_graph.gridPos.w }}, "w": {{ PANELS.stenographer_packet_loss_graph.gridPos.w }},
"h": {{ PANELS.stenographer_packet_loss_graph.gridPos.h }} "h": {{ PANELS.stenographer_packet_loss_graph.gridPos.h }}
}, },
"hiddenSeries": false,
"id": 19, "id": 19,
"interval": "30s",
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": true, "avg": true,
"current": true, "current": true,
"hideEmpty": true, "hideEmpty": true,
"max": true, "max": false,
"min": false, "min": false,
"rightSide": false, "rightSide": true,
"show": true, "show": true,
"sort": "current", "sort": "current",
"sortDesc": true, "sortDesc": true,
@@ -40,14 +33,13 @@
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"maxDataPoints": 750,
"nullPointMode": "connected", "nullPointMode": "connected",
"options": { "options": {
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false,
"pluginVersion": "7.5.4", "pluginVersion": "7.5.4",
"pointradius": 2, "pointradius": 2,
"points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
@@ -55,15 +47,14 @@
"dashLength": 4, "dashLength": 4,
"dashes": true, "dashes": true,
"fill": 0, "fill": 0,
"linewidth": 4 "linewidth": 4,
"$$hashKey": "object:2274"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"alias": "Loss Current", "alias": "Current $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -72,6 +63,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -87,27 +90,33 @@
"select": [ "select": [
[ [
{ {
"type": "field",
"params": [ "params": [
"drop" "drop"
], ]
"type": "field"
}, },
{ {
"params": [], "type": "mean",
"type": "last" "params": []
} }
] ]
], ],
"tags": [ "tags": [
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=~",
"value": "$servername" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
}, },
{ {
"alias": "Loss Trend", "alias": "Trend $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -116,6 +125,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -123,7 +144,7 @@
"type": "fill" "type": "fill"
} }
], ],
"hide": false, "hide": {{ PANELS.stenographer_packet_loss_graph.get('hideTrend', false)|json }},,
"measurement": "stenodrop", "measurement": "stenodrop",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "so_long_term", "policy": "so_long_term",
@@ -132,34 +153,38 @@
"select": [ "select": [
[ [
{ {
"type": "field",
"params": [ "params": [
"mean_drop" "mean_drop"
], ]
"type": "field"
}, },
{ {
"params": [], "type": "mean",
"type": "last" "params": []
} }
] ]
], ],
"tags": [ "tags": [
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=~",
"value": "$servername" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null,
"title": "Stenographer Packet Loss", "title": "Stenographer Packet Loss",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@@ -178,7 +203,8 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": 0, "min": 0,
"show": true "show": true,
"$$hashKey": "object:2287"
}, },
{ {
"format": "short", "format": "short",
@@ -186,11 +212,24 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": false "show": false,
"$$hashKey": "object:2288"
} }
], ],
"yaxis": { "yaxis": {
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} },
"bars": false,
"cacheTimeout": null,
"dashes": false,
"fill": 0,
"fillGradient": 0,
"hiddenSeries": false,
"percentage": false,
"points": false,
"stack": false,
"steppedLine": false,
"timeFrom": null,
"timeShift": null
} }

View File

@@ -1,11 +1,6 @@
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false,
"maxDataPoints": 750,
"interval": "30s",
"cacheTimeout": null,
"dashLength": 10, "dashLength": 10,
"dashes": false,
"datasource": "InfluxDB", "datasource": "InfluxDB",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@@ -13,24 +8,22 @@
}, },
"overrides": [] "overrides": []
}, },
"fill": 1,
"fillGradient": 0,
"gridPos": { "gridPos": {
"x": {{ PANELS.suricata_packet_loss_graph.gridPos.x }}, "x": {{ PANELS.suricata_packet_loss_graph.gridPos.x }},
"y": {{ PANELS.suricata_packet_loss_graph.gridPos.y }}, "y": {{ PANELS.suricata_packet_loss_graph.gridPos.y }},
"w": {{ PANELS.suricata_packet_loss_graph.gridPos.w }}, "w": {{ PANELS.suricata_packet_loss_graph.gridPos.w }},
"h": {{ PANELS.suricata_packet_loss_graph.gridPos.h }} "h": {{ PANELS.suricata_packet_loss_graph.gridPos.h }}
}, },
"hiddenSeries": false,
"id": 21, "id": 21,
"interval": "30s",
"legend": { "legend": {
"alignAsTable": true, "alignAsTable": true,
"avg": true, "avg": true,
"current": true, "current": true,
"hideEmpty": true, "hideEmpty": true,
"max": true, "max": false,
"min": false, "min": false,
"rightSide": false, "rightSide": true,
"show": true, "show": true,
"sort": "current", "sort": "current",
"sortDesc": true, "sortDesc": true,
@@ -40,14 +33,13 @@
"lines": true, "lines": true,
"linewidth": 1, "linewidth": 1,
"links": [], "links": [],
"maxDataPoints": 750,
"nullPointMode": "connected", "nullPointMode": "connected",
"options": { "options": {
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false,
"pluginVersion": "7.5.4", "pluginVersion": "7.5.4",
"pointradius": 2, "pointradius": 2,
"points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
@@ -55,15 +47,14 @@
"dashLength": 4, "dashLength": 4,
"dashes": true, "dashes": true,
"fill": 0, "fill": 0,
"linewidth": 4 "linewidth": 4,
"$$hashKey": "object:1059"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"alias": "Loss Current", "alias": "Current $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -72,6 +63,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -94,7 +97,7 @@
}, },
{ {
"params": [], "params": [],
"type": "last" "type": "mean"
}, },
{ {
"params": [ "params": [
@@ -107,13 +110,19 @@
"tags": [ "tags": [
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=~",
"value": "$servername" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
}, },
{ {
"alias": "Loss Trend", "alias": "Trend $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -122,6 +131,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -129,7 +150,7 @@
"type": "fill" "type": "fill"
} }
], ],
"hide": false, "hide": {{ PANELS.suricata_packet_loss_graph.get('hideTrend', false)|json }},
"measurement": "suridrop", "measurement": "suridrop",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "so_long_term", "policy": "so_long_term",
@@ -145,7 +166,7 @@
}, },
{ {
"params": [], "params": [],
"type": "last" "type": "mean"
}, },
{ {
"params": [ "params": [
@@ -158,20 +179,24 @@
"tags": [ "tags": [
{ {
"key": "host", "key": "host",
"operator": "=", "operator": "=~",
"value": "$servername" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
} }
], ],
"thresholds": [], "thresholds": [],
"timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null,
"title": "Suricata Packet Loss", "title": "Suricata Packet Loss",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@@ -189,7 +214,8 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": 0, "min": 0,
"show": true "show": true,
"$$hashKey": "object:1072"
}, },
{ {
"format": "short", "format": "short",
@@ -197,11 +223,24 @@
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": false "show": false,
"$$hashKey": "object:1073"
} }
], ],
"yaxis": { "yaxis": {
"align": false, "align": false,
"alignLevel": null "alignLevel": null
} },
"bars": false,
"cacheTimeout": null,
"dashes": false,
"fill": 0,
"fillGradient": 0,
"hiddenSeries": false,
"percentage": false,
"points": false,
"stack": false,
"steppedLine": false,
"timeFrom": null,
"timeShift": null
} }

View File

@@ -8,7 +8,6 @@
}, },
"overrides": [] "overrides": []
}, },
"fill": 1,
"gridPos": { "gridPos": {
"x": {{ PANELS.zeek_packet_loss_graph.gridPos.x }}, "x": {{ PANELS.zeek_packet_loss_graph.gridPos.x }},
"y": {{ PANELS.zeek_packet_loss_graph.gridPos.y }}, "y": {{ PANELS.zeek_packet_loss_graph.gridPos.y }},
@@ -22,9 +21,9 @@
"avg": true, "avg": true,
"current": true, "current": true,
"hideEmpty": true, "hideEmpty": true,
"max": true, "max": false,
"min": false, "min": false,
"rightSide": false, "rightSide": true,
"show": true, "show": true,
"sort": "current", "sort": "current",
"sortDesc": true, "sortDesc": true,
@@ -44,18 +43,18 @@
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [ "seriesOverrides": [
{ {
"$$hashKey": "object:314",
"alias": "/Trend/", "alias": "/Trend/",
"dashLength": 4, "dashLength": 4,
"dashes": true, "dashes": true,
"fill": 0, "fill": 0,
"linewidth": 4, "linewidth": 4
"$$hashKey": "object:314"
} }
], ],
"spaceLength": 10, "spaceLength": 10,
"targets": [ "targets": [
{ {
"alias": "Loss Current", "alias": "Current $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -64,6 +63,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -86,7 +97,7 @@
}, },
{ {
"params": [], "params": [],
"type": "last" "type": "mean"
}, },
{ {
"params": [ "params": [
@@ -101,11 +112,17 @@
"key": "host", "key": "host",
"operator": "=~", "operator": "=~",
"value": "/^$servername$/" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
}, },
{ {
"alias": "Loss Trend", "alias": "Trend $tag_host $tag_role",
"dsType": "influxdb", "dsType": "influxdb",
"groupBy": [ "groupBy": [
{ {
@@ -114,6 +131,18 @@
], ],
"type": "time" "type": "time"
}, },
{
"type": "tag",
"params": [
"host"
]
},
{
"type": "tag",
"params": [
"role"
]
},
{ {
"params": [ "params": [
"null" "null"
@@ -121,7 +150,7 @@
"type": "fill" "type": "fill"
} }
], ],
"hide": {{ PANELS.zeek_packet_loss_graph.get('hideTrend', false) }}, "hide": {{ PANELS.zeek_packet_loss_graph.get('hideTrend', false)|json }},
"measurement": "zeekdrop", "measurement": "zeekdrop",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "so_long_term", "policy": "so_long_term",
@@ -137,7 +166,7 @@
}, },
{ {
"params": [], "params": [],
"type": "last" "type": "mean"
}, },
{ {
"params": [ "params": [
@@ -152,6 +181,12 @@
"key": "host", "key": "host",
"operator": "=~", "operator": "=~",
"value": "/^$servername$/" "value": "/^$servername$/"
},
{
"condition": "AND",
"key": "role",
"operator": "=~",
"value": "/^$role$/"
} }
] ]
} }
@@ -161,7 +196,7 @@
"title": "Zeek Packet Loss", "title": "Zeek Packet Loss",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 0, "sort": 2,
"value_type": "individual" "value_type": "individual"
}, },
"type": "graph", "type": "graph",
@@ -174,23 +209,23 @@
}, },
"yaxes": [ "yaxes": [
{ {
"$$hashKey": "object:327",
"decimals": null, "decimals": null,
"format": "percent", "format": "percent",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": 0, "min": 0,
"show": true, "show": true
"$$hashKey": "object:327"
}, },
{ {
"$$hashKey": "object:328",
"format": "short", "format": "short",
"label": null, "label": null,
"logBase": 1, "logBase": 1,
"max": null, "max": null,
"min": null, "min": null,
"show": false, "show": false
"$$hashKey": "object:328"
} }
], ],
"yaxis": { "yaxis": {
@@ -200,6 +235,7 @@
"bars": false, "bars": false,
"cacheTimeout": null, "cacheTimeout": null,
"dashes": false, "dashes": false,
"fill": 0,
"fillGradient": 0, "fillGradient": 0,
"hiddenSeries": false, "hiddenSeries": false,
"percentage": false, "percentage": false,