mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
convert all singlestat to stat
This commit is contained in:
@@ -47,43 +47,43 @@ grafana:
|
|||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
load_average_5_minute_singlestat:
|
load_average_5_minute_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 4
|
x: 4
|
||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
zeek_packet_loss_singlestat:
|
zeek_packet_loss_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 8
|
x: 8
|
||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
suricata_packet_loss_singlestat:
|
suricata_packet_loss_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 12
|
x: 12
|
||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
pcap_packet_loss_singlestat:
|
stenographer_packet_loss_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 16
|
x: 16
|
||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
logstash_estimated_eps_singlestat:
|
logstash_estimated_eps_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 20
|
x: 20
|
||||||
y: 1
|
y: 1
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
io_wait_singlestat:
|
io_wait_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 0
|
x: 0
|
||||||
y: 5
|
y: 5
|
||||||
h: 4
|
h: 4
|
||||||
w: 4
|
w: 4
|
||||||
monitor_traffic_singlestat:
|
monitor_interface_traffic_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 4
|
x: 4
|
||||||
y: 5
|
y: 5
|
||||||
@@ -119,7 +119,7 @@ grafana:
|
|||||||
y: 5
|
y: 5
|
||||||
h: 4
|
h: 4
|
||||||
w: 2
|
w: 2
|
||||||
pcap_retention_singlestat:
|
pcap_retention_stat:
|
||||||
gridPos:
|
gridPos:
|
||||||
x: 18
|
x: 18
|
||||||
y: 5
|
y: 5
|
||||||
|
|||||||
122
salt/grafana/panels/io_wait_stat.json.jinja
Normal file
122
salt/grafana/panels/io_wait_stat.json.jinja
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "dark-green",
|
||||||
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "rgba(237, 129, 40, 0.89)",
|
||||||
|
"value": 40
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:1217",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "percent",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.io_wait_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.io_wait_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.io_wait_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.io_wait_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 61867,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "cpu",
|
||||||
|
"policy": "default",
|
||||||
|
"query": "SELECT non_negative_derivative(mean(\"usage_iowait\"), 1s) FROM \"cpu\" WHERE \"host\" =~ /^$servername$/ AND \"cpu\" = 'cpu-total' AND $timeFilter GROUP BY time($interval) fill(null)",
|
||||||
|
"rawQuery": false,
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"usage_iowait"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "AND",
|
||||||
|
"key": "cpu",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "cpu-total"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"orderByTime": "ASC"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "IOWait",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "auto",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null,
|
||||||
|
"pluginVersion": "7.5.4"
|
||||||
|
}
|
||||||
@@ -37,10 +37,10 @@
|
|||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"x": {{ PANELS.load_average_5_minute_singlestat.gridPos.x }},
|
"x": {{ PANELS.load_average_5_minute_stat.gridPos.x }},
|
||||||
"y": {{ PANELS.load_average_5_minute_singlestat.gridPos.y }},
|
"y": {{ PANELS.load_average_5_minute_stat.gridPos.y }},
|
||||||
"w": {{ PANELS.load_average_5_minute_singlestat.gridPos.w }},
|
"w": {{ PANELS.load_average_5_minute_stat.gridPos.w }},
|
||||||
"h": {{ PANELS.load_average_5_minute_singlestat.gridPos.h }}
|
"h": {{ PANELS.load_average_5_minute_stat.gridPos.h }}
|
||||||
},
|
},
|
||||||
"id": 61859,
|
"id": 61859,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
{
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"decimals": 0,
|
|
||||||
"editable": true,
|
|
||||||
"error": false,
|
|
||||||
"format": "short",
|
|
||||||
"gauge": {},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.logstash_estimated_eps_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.logstash_estimated_eps_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.logstash_estimated_eps_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.logstash_estimated_eps_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 23,
|
|
||||||
"interval": null,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"tableColumn": "",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "consumptioneps",
|
|
||||||
"orderByTime": "ASC",
|
|
||||||
"policy": "default",
|
|
||||||
"queryType": "randomWalk",
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"eps"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "$servername"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": "",
|
|
||||||
"title": "Estimated EPS",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "100%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
112
salt/grafana/panels/logstash_estimated_eps_stat.json.jinja
Normal file
112
salt/grafana/panels/logstash_estimated_eps_stat.json.jinja
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": 1,
|
||||||
|
"color": "dark-green"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:730",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "short",
|
||||||
|
"decimals": 0,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.logstash_estimated_eps_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.logstash_estimated_eps_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.logstash_estimated_eps_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.logstash_estimated_eps_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 23,
|
||||||
|
"interval": "30s",
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 750,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "consumptioneps",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"eps"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "$servername"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Estimated EPS",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "value",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"timeFrom": null
|
||||||
|
}
|
||||||
@@ -1,60 +1,51 @@
|
|||||||
{
|
{
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
"datasource": "InfluxDB",
|
||||||
"decimals": 2,
|
"fieldConfig": {
|
||||||
"editable": true,
|
"defaults": {
|
||||||
"error": false,
|
"thresholds": {
|
||||||
"format": "bps",
|
"mode": "absolute",
|
||||||
"gauge": {},
|
"steps": [
|
||||||
"gridPos": {
|
{
|
||||||
"x": {{ PANELS.monitor_traffic_singlestat.gridPos.x }},
|
"color": "rgba(245, 54, 54, 0.9)",
|
||||||
"y": {{ PANELS.monitor_traffic_singlestat.gridPos.y }},
|
"value": null
|
||||||
"w": {{ PANELS.monitor_traffic_singlestat.gridPos.w }},
|
},
|
||||||
"h": {{ PANELS.monitor_traffic_singlestat.gridPos.h }}
|
{
|
||||||
},
|
"color": "rgba(237, 129, 40, 0.89)",
|
||||||
"height": "150",
|
"value": 0.5
|
||||||
"id": 24,
|
},
|
||||||
"interval": null,
|
{
|
||||||
"links": [],
|
"color": "rgba(50, 172, 45, 0.97)",
|
||||||
"mappingType": 1,
|
"value": 3
|
||||||
"mappingTypes": [
|
}
|
||||||
{
|
]
|
||||||
"name": "value to text",
|
},
|
||||||
"value": 1
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:645",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "bps",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
"overrides": []
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
},
|
||||||
"tableColumn": "",
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.monitor_interface_traffic_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.monitor_interface_traffic_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.monitor_interface_traffic_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.monitor_interface_traffic_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 24,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"dsType": "influxdb",
|
"dsType": "influxdb",
|
||||||
@@ -118,20 +109,24 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"thresholds": ".5,3,5",
|
"title": "Monitor Traffic - $monint",
|
||||||
"title": "Monitor Traffic",
|
"type": "stat",
|
||||||
"type": "singlestat",
|
"options": {
|
||||||
"valueFontSize": "100%",
|
"reduceOptions": {
|
||||||
"valueMaps": [
|
"values": false,
|
||||||
{
|
"calcs": [
|
||||||
"op": "=",
|
"lastNotNull"
|
||||||
"text": "N/A",
|
],
|
||||||
"value": "null"
|
"fields": ""
|
||||||
}
|
},
|
||||||
],
|
"orientation": "horizontal",
|
||||||
"valueName": "current",
|
"text": {},
|
||||||
"fieldConfig": {
|
"textMode": "value",
|
||||||
"defaults": {},
|
"colorMode": "value",
|
||||||
"overrides": []
|
"graphMode": "area",
|
||||||
}
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null,
|
||||||
|
"pluginVersion": "7.5.4"
|
||||||
}
|
}
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
{
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"decimals": 2,
|
|
||||||
"editable": true,
|
|
||||||
"error": false,
|
|
||||||
"format": "percent",
|
|
||||||
"gauge": {
|
|
||||||
"maxValue": 100,
|
|
||||||
"minValue": 0,
|
|
||||||
"show": false,
|
|
||||||
"thresholdLabels": false,
|
|
||||||
"thresholdMarkers": true
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.io_wait_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.io_wait_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.io_wait_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.io_wait_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 61867,
|
|
||||||
"interval": null,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"tableColumn": "",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "cpu",
|
|
||||||
"policy": "default",
|
|
||||||
"query": "SELECT non_negative_derivative(mean(\"usage_iowait\"), 1s) FROM \"cpu\" WHERE \"host\" =~ /^$servername$/ AND \"cpu\" = 'cpu-total' AND $timeFilter GROUP BY time($interval) fill(null)",
|
|
||||||
"rawQuery": false,
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"usage_iowait"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=~",
|
|
||||||
"value": "/^$servername$/"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"condition": "AND",
|
|
||||||
"key": "cpu",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "cpu-total"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": "30,40,50",
|
|
||||||
"title": "IOWait",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "100%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
{
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"decimals": 2,
|
|
||||||
"editable": true,
|
|
||||||
"error": false,
|
|
||||||
"format": "percent",
|
|
||||||
"gauge": {
|
|
||||||
"maxValue": 100,
|
|
||||||
"minValue": 0,
|
|
||||||
"show": false,
|
|
||||||
"thresholdLabels": false,
|
|
||||||
"thresholdMarkers": true
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.pcap_packet_loss_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.pcap_packet_loss_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.pcap_packet_loss_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.pcap_packet_loss_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 22,
|
|
||||||
"interval": null,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"tableColumn": "",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$__interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "stenodrop",
|
|
||||||
"orderByTime": "ASC",
|
|
||||||
"policy": "default",
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"drop"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "$servername"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": ".5,3,5",
|
|
||||||
"title": "PCAP Packet Loss",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "100%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
{
|
|
||||||
"colorValue": true,
|
|
||||||
"colors": [
|
|
||||||
"rgba(255, 255, 255, 0.97)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(245, 54, 54, 0.9)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"editable": true,
|
|
||||||
"format": "none",
|
|
||||||
"gauge": {
|
|
||||||
"maxValue": 100,
|
|
||||||
"minValue": 0,
|
|
||||||
"show": false,
|
|
||||||
"thresholdLabels": false,
|
|
||||||
"thresholdMarkers": true
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.pcap_retention_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.pcap_retention_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.pcap_retention_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.pcap_retention_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 26,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"postfix": " days",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": false
|
|
||||||
},
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$__interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "pcapage",
|
|
||||||
"orderByTime": "ASC",
|
|
||||||
"policy": "default",
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"seconds"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"/86400"
|
|
||||||
],
|
|
||||||
"type": "math"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "$servername"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"orderByTime": "ASC"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": "",
|
|
||||||
"title": "PCAP Retention",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "80%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
},
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"decimals": 2,
|
|
||||||
"error": false,
|
|
||||||
"interval": null,
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"prefix": "",
|
|
||||||
"tableColumn": ""
|
|
||||||
}
|
|
||||||
112
salt/grafana/panels/pcap_retention_stat.json.jinja
Normal file
112
salt/grafana/panels/pcap_retention_stat.json.jinja
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:1382",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "d",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.pcap_retention_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.pcap_retention_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.pcap_retention_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.pcap_retention_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 26,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "pcapage",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"seconds"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"/86400"
|
||||||
|
],
|
||||||
|
"type": "math"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "$servername"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "PCAP Retention",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "value",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "none",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null,
|
||||||
|
"pluginVersion": "7.5.4"
|
||||||
|
}
|
||||||
94
salt/grafana/panels/redis_queue_stat.json.jinja
Normal file
94
salt/grafana/panels/redis_queue_stat.json.jinja
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
{
|
||||||
|
"type": "stat",
|
||||||
|
"title": "Redis Unparsed Queue",
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.redis_queue_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.redis_queue_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.redis_queue_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.redis_queue_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 68894,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"queryType": "randomWalk",
|
||||||
|
"policy": "default",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=~",
|
||||||
|
"value": "/^$servername$/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"type": "time",
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "fill",
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"params": [
|
||||||
|
"unparsed"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "mean",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"measurement": "redisqueue"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "auto",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "auto",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null
|
||||||
|
}
|
||||||
114
salt/grafana/panels/stenographer_packet_loss_stat.json.jinja
Normal file
114
salt/grafana/panels/stenographer_packet_loss_stat.json.jinja
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "dark-green",
|
||||||
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "rgba(237, 129, 40, 0.89)",
|
||||||
|
"value": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:1120",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "percent",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.stenographer_packet_loss_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.stenographer_packet_loss_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.stenographer_packet_loss_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.stenographer_packet_loss_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 22,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "stenodrop",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"drop"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "$servername"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Stenographer Packet Loss",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "auto",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null,
|
||||||
|
"pluginVersion": "7.5.4"
|
||||||
|
}
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
{
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"decimals": 2,
|
|
||||||
"editable": true,
|
|
||||||
"error": false,
|
|
||||||
"format": "percent",
|
|
||||||
"gauge": {
|
|
||||||
"maxValue": 100,
|
|
||||||
"minValue": 0,
|
|
||||||
"show": false,
|
|
||||||
"thresholdLabels": false,
|
|
||||||
"thresholdMarkers": true
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.suricata_packet_loss_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.suricata_packet_loss_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.suricata_packet_loss_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.suricata_packet_loss_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 20,
|
|
||||||
"interval": null,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"tableColumn": "",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$__interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "suridrop",
|
|
||||||
"orderByTime": "ASC",
|
|
||||||
"policy": "default",
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"drop"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"* 100"
|
|
||||||
],
|
|
||||||
"type": "math"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "$servername"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": ".5,3,5",
|
|
||||||
"title": "Suricata Packet Loss",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "100%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
120
salt/grafana/panels/suricata_packet_loss_stat.json.jinja
Normal file
120
salt/grafana/panels/suricata_packet_loss_stat.json.jinja
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "dark-green",
|
||||||
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "rgba(237, 129, 40, 0.89)",
|
||||||
|
"value": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:949",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "percent",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.suricata_packet_loss_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.suricata_packet_loss_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.suricata_packet_loss_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.suricata_packet_loss_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 20,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "suridrop",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"drop"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"* 100"
|
||||||
|
],
|
||||||
|
"type": "math"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "$servername"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Suricata Packet Loss",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "auto",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null
|
||||||
|
}
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
{
|
|
||||||
"cacheTimeout": null,
|
|
||||||
"colorBackground": false,
|
|
||||||
"colorValue": false,
|
|
||||||
"colors": [
|
|
||||||
"rgba(245, 54, 54, 0.9)",
|
|
||||||
"rgba(237, 129, 40, 0.89)",
|
|
||||||
"rgba(50, 172, 45, 0.97)"
|
|
||||||
],
|
|
||||||
"datasource": "InfluxDB",
|
|
||||||
"decimals": 2,
|
|
||||||
"editable": true,
|
|
||||||
"error": false,
|
|
||||||
"format": "percent",
|
|
||||||
"gauge": {
|
|
||||||
"maxValue": 100,
|
|
||||||
"minValue": 0,
|
|
||||||
"show": false,
|
|
||||||
"thresholdLabels": false,
|
|
||||||
"thresholdMarkers": true
|
|
||||||
},
|
|
||||||
"gridPos": {
|
|
||||||
"x": {{ PANELS.zeek_packet_loss_singlestat.gridPos.x }},
|
|
||||||
"y": {{ PANELS.zeek_packet_loss_singlestat.gridPos.y }},
|
|
||||||
"w": {{ PANELS.zeek_packet_loss_singlestat.gridPos.w }},
|
|
||||||
"h": {{ PANELS.zeek_packet_loss_singlestat.gridPos.h }}
|
|
||||||
},
|
|
||||||
"height": "150",
|
|
||||||
"id": 2123,
|
|
||||||
"interval": null,
|
|
||||||
"links": [],
|
|
||||||
"mappingType": 1,
|
|
||||||
"mappingTypes": [
|
|
||||||
{
|
|
||||||
"name": "value to text",
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "range to text",
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxDataPoints": 100,
|
|
||||||
"nullPointMode": "connected",
|
|
||||||
"nullText": null,
|
|
||||||
"postfix": "",
|
|
||||||
"postfixFontSize": "50%",
|
|
||||||
"prefix": "",
|
|
||||||
"prefixFontSize": "50%",
|
|
||||||
"rangeMaps": [
|
|
||||||
{
|
|
||||||
"from": "null",
|
|
||||||
"text": "N/A",
|
|
||||||
"to": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"sparkline": {
|
|
||||||
"fillColor": "rgba(31, 118, 189, 0.18)",
|
|
||||||
"full": false,
|
|
||||||
"lineColor": "rgb(31, 120, 193)",
|
|
||||||
"show": true
|
|
||||||
},
|
|
||||||
"tableColumn": "",
|
|
||||||
"targets": [
|
|
||||||
{
|
|
||||||
"dsType": "influxdb",
|
|
||||||
"groupBy": [
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"$__interval"
|
|
||||||
],
|
|
||||||
"type": "time"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"type": "fill"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"measurement": "zeekdrop",
|
|
||||||
"orderByTime": "ASC",
|
|
||||||
"policy": "default",
|
|
||||||
"refId": "A",
|
|
||||||
"resultFormat": "time_series",
|
|
||||||
"select": [
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"drop"
|
|
||||||
],
|
|
||||||
"type": "field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [],
|
|
||||||
"type": "last"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"params": [
|
|
||||||
"* 100"
|
|
||||||
],
|
|
||||||
"type": "math"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"key": "host",
|
|
||||||
"operator": "=",
|
|
||||||
"value": "$servername"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"thresholds": ".5,3,5",
|
|
||||||
"title": "Zeek Packet Loss",
|
|
||||||
"type": "singlestat",
|
|
||||||
"valueFontSize": "100%",
|
|
||||||
"valueMaps": [
|
|
||||||
{
|
|
||||||
"op": "=",
|
|
||||||
"text": "N/A",
|
|
||||||
"value": "null"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"valueName": "current",
|
|
||||||
"fieldConfig": {
|
|
||||||
"defaults": {},
|
|
||||||
"overrides": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
120
salt/grafana/panels/zeek_packet_loss_stat.json.jinja
Normal file
120
salt/grafana/panels/zeek_packet_loss_stat.json.jinja
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
{
|
||||||
|
"datasource": "InfluxDB",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "dark-green",
|
||||||
|
"value": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "rgba(237, 129, 40, 0.89)",
|
||||||
|
"value": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "dark-red",
|
||||||
|
"value": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"op": "=",
|
||||||
|
"text": "N/A",
|
||||||
|
"value": "null",
|
||||||
|
"$$hashKey": "object:818",
|
||||||
|
"id": 0,
|
||||||
|
"type": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unit": "percent",
|
||||||
|
"decimals": 2,
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"x": {{ PANELS.zeek_packet_loss_stat.gridPos.x }},
|
||||||
|
"y": {{ PANELS.zeek_packet_loss_stat.gridPos.y }},
|
||||||
|
"w": {{ PANELS.zeek_packet_loss_stat.gridPos.w }},
|
||||||
|
"h": {{ PANELS.zeek_packet_loss_stat.gridPos.h }}
|
||||||
|
},
|
||||||
|
"id": 2123,
|
||||||
|
"links": [],
|
||||||
|
"maxDataPoints": 100,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"dsType": "influxdb",
|
||||||
|
"groupBy": [
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"$__interval"
|
||||||
|
],
|
||||||
|
"type": "time"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"type": "fill"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"measurement": "zeekdrop",
|
||||||
|
"orderByTime": "ASC",
|
||||||
|
"policy": "default",
|
||||||
|
"refId": "A",
|
||||||
|
"resultFormat": "time_series",
|
||||||
|
"select": [
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"drop"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [],
|
||||||
|
"type": "last"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"params": [
|
||||||
|
"* 100"
|
||||||
|
],
|
||||||
|
"type": "math"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"key": "host",
|
||||||
|
"operator": "=",
|
||||||
|
"value": "$servername"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Zeek Packet Loss",
|
||||||
|
"type": "stat",
|
||||||
|
"options": {
|
||||||
|
"reduceOptions": {
|
||||||
|
"values": false,
|
||||||
|
"calcs": [
|
||||||
|
"last"
|
||||||
|
],
|
||||||
|
"fields": ""
|
||||||
|
},
|
||||||
|
"orientation": "horizontal",
|
||||||
|
"text": {},
|
||||||
|
"textMode": "value",
|
||||||
|
"colorMode": "value",
|
||||||
|
"graphMode": "area",
|
||||||
|
"justifyMode": "auto"
|
||||||
|
},
|
||||||
|
"pluginVersion": "7.5.4",
|
||||||
|
"cacheTimeout": null,
|
||||||
|
"interval": null
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user