nix-config/hosts/containers/grafana/dashboards/17cZUJkGk.json

1057 lines
25 KiB
JSON

{
"meta": {
"isStarred": true,
"type": "db",
"canSave": true,
"canEdit": true,
"canAdmin": true,
"canStar": true,
"slug": "zw-network-essential",
"url": "/d/17cZUJkGk/zw-network-essential",
"expires": "0001-01-01T00:00:00Z",
"created": "2020-05-29T03:13:17+02:00",
"updated": "2022-03-26T04:23:26+01:00",
"updatedBy": "root",
"createdBy": "root",
"version": 19,
"hasAcl": false,
"isFolder": false,
"folderId": 0,
"folderUid": "",
"folderTitle": "General",
"folderUrl": "",
"provisioned": false,
"provisionedExternalId": ""
},
"dashboard": {
"annotations": {
"list": [
{
"$$hashKey": "object:13",
"builtIn": 1,
"datasource": "-- 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,
"id": 11,
"iteration": 1648264961246,
"links": [],
"liveNow": false,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 8,
"interval": "10s",
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"maxDataPoints": 256,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.4.4",
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "gateway",
"repeatDirection": "h",
"seriesOverrides": [
{
"$$hashKey": "object:234",
"alias": "/ TX/",
"color": "#e24d42",
"yaxis": 2
},
{
"$$hashKey": "object:235",
"alias": "/ RX/",
"color": "#7eb26d",
"yaxis": 1
},
{
"$$hashKey": "object:449",
"alias": "/ max$/",
"fill": 0,
"linewidth": 1
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"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": [
"1s"
],
"type": "non_negative_derivative"
}
]
],
"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": [
"1s"
],
"type": "non_negative_derivative"
}
]
],
"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)/"
}
]
}
],
"thresholds": [],
"timeRegions": [],
"title": "$gateway throughput",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:254",
"format": "Bps",
"label": "RX",
"logBase": 1,
"min": "0",
"show": true
},
{
"$$hashKey": "object:255",
"format": "Bps",
"label": "TX",
"logBase": 1,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"decimals": 0,
"description": "",
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 10,
"fillGradient": 0,
"gridPos": {
"h": 10,
"w": 8,
"x": 0,
"y": 14
},
"hiddenSeries": false,
"id": 14,
"interval": "60s",
"legend": {
"alignAsTable": false,
"avg": false,
"current": true,
"hideEmpty": true,
"hideZero": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"maxDataPoints": 128,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.4.4",
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": "vlanType",
"repeatDirection": "h",
"seriesOverrides": [
{
"$$hashKey": "object:213",
"alias": "/wlan2-pub/",
"color": "#0a50a1"
},
{
"$$hashKey": "object:214",
"alias": "/wlan5-pub/",
"color": "#1f78c1"
},
{
"$$hashKey": "object:215",
"alias": "/wlan2-priv/",
"color": "#890f02"
},
{
"$$hashKey": "object:216",
"alias": "/wlan5-priv/",
"color": "#bf1b00"
},
{
"$$hashKey": "object:217",
"alias": "/wlan2-c3d2/",
"color": "#e5ac0e"
},
{
"$$hashKey": "object:218",
"alias": "/wlan5-c3d2/",
"color": "#fceaca"
}
],
"spaceLength": 10,
"stack": true,
"steppedLine": true,
"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/"
}
]
}
],
"thresholds": [],
"timeRegions": [],
"title": "WiFi stations in VLAN $vlanType*",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:261",
"decimals": 0,
"format": "short",
"label": "Clients",
"logBase": 1,
"min": "0",
"show": true
},
{
"$$hashKey": "object:262",
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"cards": {},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateRdYlGn",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "tsbuckets",
"datasource": {
"type": "influxdb",
"uid": "000000001"
},
"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",
"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",
"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"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "influxdb",
"uid": "000000001"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 0,
"gridPos": {
"h": 11,
"w": 10,
"x": 0,
"y": 34
},
"hiddenSeries": false,
"id": 20,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"maxDataPoints": 128,
"nullPointMode": "connected",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.4.4",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"alias": "$tag_host",
"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"
}
]
}
],
"thresholds": [],
"timeRegions": [],
"title": "DHCP leases",
"tooltip": {
"shared": true,
"sort": 2,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:221",
"decimals": 0,
"format": "short",
"logBase": 1,
"min": "0",
"show": true
},
{
"$$hashKey": "object:222",
"format": "short",
"logBase": 1,
"show": true
}
],
"yaxis": {
"align": false
}
}
],
"refresh": false,
"schemaVersion": 35,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"text": "All",
"value": "$__all"
},
"hide": 2,
"includeAll": true,
"multi": false,
"name": "gateway",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "upstream1",
"value": "upstream1"
},
{
"selected": false,
"text": "upstream2",
"value": "upstream2"
},
{
"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": "upstream1,upstream2,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": 19,
"weekStart": ""
}
}