1
0
Fork 0
nix-config/hosts/grafana/dashboards/17cZUJkGk.json

1136 lines
25 KiB
JSON

{
"annotations": {
"list": [
{
"$$hashKey": "object:13",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"iteration": 1655678543845,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "RX",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "Bps"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/ TX/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#e24d42",
"mode": "fixed"
}
},
{
"id": "custom.axisLabel",
"value": "TX"
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/ RX/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#7eb26d",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/ max$/"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 0
},
{
"id": "custom.lineWidth",
"value": 1
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 0
},
"id": 8,
"interval": "10s",
"links": [],
"maxDataPoints": 256,
"options": {
"legend": {
"calcs": [
"mean",
"max",
"min"
],
"displayMode": "table",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.5.6",
"repeat": "gateway",
"repeatDirection": "h",
"targets": [
{
"alias": "$tag_host $tag_instance TX",
"datasource": {
"type": "influxdb",
"uid": "000000001"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"instance"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "interface_tx",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"10s"
],
"type": "non_negative_derivative"
},
{
"params": [
" / 10"
],
"type": "math"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "$gateway"
},
{
"condition": "AND",
"key": "type",
"operator": "=",
"value": "if_octets"
},
{
"condition": "AND",
"key": "instance",
"operator": "=~",
"value": "/^(up|njalla|bat|bmx|ipip|dc)/"
}
]
},
{
"alias": "$tag_host $tag_instance RX",
"datasource": {
"type": "influxdb",
"uid": "000000001"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"instance"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"measurement": "interface_rx",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"10s"
],
"type": "non_negative_derivative"
},
{
"params": [
" / 10"
],
"type": "math"
}
]
],
"tags": [
{
"key": "host",
"operator": "=",
"value": "$gateway"
},
{
"condition": "AND",
"key": "type",
"operator": "=",
"value": "if_octets"
},
{
"condition": "AND",
"key": "instance",
"operator": "=~",
"value": "/^(up|mullvad|protonvpn|njalla|bmx|bat|dc)/"
}
]
}
],
"title": "$gateway throughput",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "Clients",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "stepAfter",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "/wlan2-pub/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#0a50a1",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/wlan5-pub/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#1f78c1",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/wlan2-priv/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#890f02",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/wlan5-priv/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#bf1b00",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/wlan2-c3d2/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#e5ac0e",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "/wlan5-c3d2/"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#fceaca",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 8,
"x": 0,
"y": 14
},
"id": 14,
"interval": "60s",
"links": [],
"maxDataPoints": 128,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.6",
"repeat": "vlanType",
"repeatDirection": "h",
"targets": [
{
"alias": "$tag_host $tag_instance",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"instance"
],
"type": "tag"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "iwinfo_value",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "median"
}
]
],
"tags": [
{
"key": "type",
"operator": "=",
"value": "stations"
},
{
"condition": "AND",
"key": "instance",
"operator": "=~",
"value": "/^wlan2-$vlanType/"
}
]
},
{
"alias": "$tag_host $tag_instance",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"instance"
],
"type": "tag"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "iwinfo_value",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"iwinfo_value\" WHERE (\"type\" = 'stations' AND \"instance\" =~ /wlan5-c3d2/) AND $timeFilter GROUP BY time($__interval), \"instance\", \"host\" fill(null)",
"rawQuery": false,
"refId": "D",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "median"
}
]
],
"tags": [
{
"key": "type",
"operator": "=",
"value": "stations"
},
{
"condition": "AND",
"key": "instance",
"operator": "=~",
"value": "/^wlan5-$vlanType/"
}
]
}
],
"title": "WiFi stations in VLAN $vlanType*",
"type": "timeseries"
},
{
"cards": {},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateRdYlGn",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"gridPos": {
"h": 10,
"w": 10,
"x": 0,
"y": 24
},
"heatmap": {},
"hideZeroBuckets": false,
"highlightCards": true,
"id": 21,
"interval": "10s",
"legend": {
"show": false
},
"maxDataPoints": 400,
"reverseYBuckets": false,
"targets": [
{
"alias": "$tag_host",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"type_instance"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "exec_value",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "max"
}
]
],
"tags": [
{
"key": "type",
"operator": "=",
"value": "current_sessions"
},
{
"condition": "AND",
"key": "instance",
"operator": "=",
"value": "dhcpd"
}
]
}
],
"title": "DHCP leases",
"tooltip": {
"show": true,
"showHistogram": true
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketSize": "1",
"yAxis": {
"decimals": 0,
"format": "none",
"logBase": 1,
"show": true
},
"yBucketBound": "auto",
"yBucketSize": 1
},
{
"cards": {},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateRdYlGn",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"gridPos": {
"h": 21,
"w": 14,
"x": 10,
"y": 24
},
"heatmap": {},
"hideZeroBuckets": false,
"highlightCards": true,
"id": 6,
"interval": "10s",
"legend": {
"show": false
},
"links": [],
"maxDataPoints": 400,
"reverseYBuckets": false,
"targets": [
{
"alias": "$tag_host $tag_instance",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"instance"
],
"type": "tag"
}
],
"measurement": "iwinfo_value",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "type",
"operator": "=",
"value": "stations"
}
]
}
],
"title": "WiFi heatmap",
"tooltip": {
"show": true,
"showHistogram": true
},
"type": "heatmap",
"xAxis": {
"show": true
},
"yAxis": {
"decimals": 0,
"format": "none",
"logBase": 1,
"show": true
},
"yBucketBound": "auto"
},
{
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 40,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 10,
"x": 0,
"y": 34
},
"id": 20,
"maxDataPoints": 128,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "8.5.6",
"targets": [
{
"alias": "$tag_host",
"datasource": {
"type": "influxdb",
"uid": "P79EA3E036FD9FF91"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"host"
],
"type": "tag"
},
{
"params": [
"type_instance"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "exec_value",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "median"
}
]
],
"tags": [
{
"key": "type",
"operator": "=",
"value": "current_sessions"
},
{
"condition": "AND",
"key": "instance",
"operator": "=",
"value": "dhcpd"
}
]
}
],
"title": "DHCP leases",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 36,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "All",
"value": "$__all"
},
"hide": 2,
"includeAll": true,
"multi": false,
"name": "gateway",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "upstream3",
"value": "upstream3"
},
{
"selected": false,
"text": "upstream4",
"value": "upstream4"
},
{
"selected": false,
"text": "anon1",
"value": "anon1"
},
{
"selected": false,
"text": "freifunk",
"value": "freifunk"
},
{
"selected": false,
"text": "dn42",
"value": "dn42"
}
],
"query": "upstream3,upstream4,anon1,freifunk,dn42",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"tags": [],
"text": "All",
"value": "$__all"
},
"hide": 2,
"includeAll": true,
"multi": false,
"name": "vlanType",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "c3d2",
"value": "c3d2"
},
{
"selected": false,
"text": "pub",
"value": "pub"
},
{
"selected": false,
"text": "priv",
"value": "priv"
}
],
"query": "c3d2,pub,priv",
"skipUrlSync": false,
"type": "custom"
}
]
},
"time": {
"from": "now-2d",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "browser",
"title": "ZW network essential",
"uid": "17cZUJkGk",
"version": 1,
"weekStart": ""
}