Browse Source

added active hosts panel

pull/1/head
sberk42 4 years ago
parent
commit
f47a658a59
  1. 229
      grafana/Dashboard.json

229
grafana/Dashboard.json

@ -45,12 +45,6 @@
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table-old",
"name": "Table (old)",
"version": ""
}
],
"annotations": {
@ -541,6 +535,7 @@
{
"cacheTimeout": null,
"datasource": "${DS_PROMETHEUS}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {},
@ -1845,159 +1840,113 @@
}
},
{
"columns": [],
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fieldConfig": {
"defaults": {
"custom": {}
"custom": {
"align": null
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": []
},
"fontSize": "100%",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"h": 8,
"w": 12,
"x": 12,
"y": 15
},
"id": 14,
"links": [],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
"hiddenSeries": false,
"id": 26,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "MMMM D, YYYY LT",
"pattern": "Time",
"type": "date"
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"pluginVersion": "7.1.5",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "decbytes"
"expr": "gateway_host_active",
"interval": "",
"legendFormat": "{{hostname}} ({{macaddress}})",
"refId": "A"
}
],
"targets": [
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Active Hosts",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"alias": "Download",
"dsType": "prometheus",
"expr": "gateway_wan_bytes_received",
"groupBy": [
{
"params": [
"1d"
],
"type": "time"
}
],
"interval": "",
"legendFormat": "Download",
"measurement": "fritzbox_value",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytesreceived') AND $timeFilter \n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "max"
},
{
"params": [
"10s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "type_instance",
"operator": "=",
"value": "totalbytesreceived"
}
],
"target": ""
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"alias": "Upload",
"dsType": "prometheus",
"expr": "gateway_wan_bytes_sent",
"groupBy": [
{
"params": [
"1d"
],
"type": "time"
}
],
"interval": "",
"legendFormat": "Upload",
"measurement": "fritzbox_value",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT non_negative_difference(last(cumulative_sum)) FROM (\nSELECT cumulative_sum(non_negative_difference(\"value\")) FROM \"fritzbox_value\" WHERE (\"type_instance\" = 'totalbytessent') AND $timeFilter\n) WHERE $timeFilter GROUP BY time(1d) tz('Europe/Berlin')",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "max"
},
{
"params": [
"10s"
],
"type": "non_negative_derivative"
}
]
],
"tags": [
{
"key": "type_instance",
"operator": "=",
"value": "totalbytesreceived"
}
],
"target": ""
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"title": "Daily Traffic",
"transform": "timeseries_to_columns",
"type": "table-old"
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
@ -2241,5 +2190,5 @@
"timezone": "",
"title": "FRITZ!Box Status",
"uid": "000000013",
"version": 5
"version": 11
}
Loading…
Cancel
Save