This commit is contained in:
Shubhankar Handa 2022-05-30 17:48:53 +05:30
Родитель a2323a4f44
Коммит d8b775ecff
2 изменённых файлов: 224 добавлений и 148 удалений

Просмотреть файл

@ -3,19 +3,29 @@
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"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,
"gnetId": null,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"iteration": 1624653912921,
"id": 2,
"iteration": 1653908268339,
"links": [
{
"asDropdown": false,
@ -30,10 +40,14 @@
"url": "http://localhost:8080/configuration-form"
}
],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 1,
"w": 24,
@ -46,7 +60,10 @@
"type": "row"
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fieldConfig": {
"defaults": {
"mappings": [],
@ -122,13 +139,13 @@
"calcs": [
"last"
],
"fields": "",
"fields": "/^property_messages\\.jsonvalue$/",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"targets": [
{
"groupBy": [],
@ -158,13 +175,14 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Device Status",
"type": "stat"
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 2,
"w": 3,
@ -244,13 +262,14 @@
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"transparent": true,
"type": "cloudspout-button-panel"
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fieldConfig": {
"defaults": {
"mappings": [],
@ -311,13 +330,13 @@
"calcs": [
"last"
],
"fields": "",
"fields": "/^property_messages\\.jsonvalue$/",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"targets": [
{
"groupBy": [],
@ -353,13 +372,14 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Verified Telemetry",
"type": "stat"
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 2,
"w": 3,
@ -442,8 +462,6 @@
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"transparent": true,
"type": "cloudspout-button-panel"
},
@ -452,11 +470,14 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"h": 7,
"w": 12,
"x": 0,
"y": 5
@ -479,7 +500,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
@ -506,6 +527,10 @@
"targets": [
{
"alias": "Working",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -523,6 +548,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry1$/ AND \"verifiedTelemetryStatus\" = 'true') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
@ -567,6 +594,10 @@
},
{
"alias": "Fault",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -584,6 +615,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry1$/ AND \"verifiedTelemetryStatus\" = 'false' AND \"verifiedTelemetrySupport\" = 'true') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
@ -634,6 +667,10 @@
},
{
"alias": "Unverified",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -652,6 +689,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry1$/ AND \"verifiedTelemetrySupport\" = 'false' AND \"verifiedTelemetryStatus\" = 'false') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "C",
"resultFormat": "time_series",
"select": [
@ -702,10 +741,8 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Soil Moisture 1",
"title": "Telemetry1",
"tooltip": {
"shared": true,
"sort": 0,
@ -713,9 +750,7 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
@ -723,25 +758,18 @@
{
"$$hashKey": "object:515",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:516",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
},
{
@ -749,17 +777,20 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"h": 7,
"w": 12,
"x": 12,
"y": 5
},
"hiddenSeries": false,
"id": 76,
"id": 90,
"legend": {
"avg": false,
"current": false,
@ -776,23 +807,23 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
"seriesOverrides": [
{
"$$hashKey": "object:221",
"$$hashKey": "object:508",
"alias": "Working",
"dashes": true
},
{
"$$hashKey": "object:306",
"$$hashKey": "object:533",
"alias": "Fault",
"color": "#F2495C"
},
{
"$$hashKey": "object:1585",
"$$hashKey": "object:710",
"alias": "Unverified",
"color": "#FF9830"
}
@ -803,6 +834,10 @@
"targets": [
{
"alias": "Working",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -820,6 +855,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry2$/ AND \"verifiedTelemetryStatus\" = 'true') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
@ -852,7 +889,7 @@
"condition": "AND",
"key": "telemetry",
"operator": "=",
"value": "soilMoistureExternal2"
"value": "soilMoistureExternal1"
},
{
"condition": "AND",
@ -864,6 +901,10 @@
},
{
"alias": "Fault",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -881,6 +922,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry2$/ AND \"verifiedTelemetryStatus\" = 'false' AND \"verifiedTelemetrySupport\" = 'true') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
@ -913,18 +956,28 @@
"condition": "AND",
"key": "telemetry",
"operator": "=",
"value": "soilMoistureExternal2"
"value": "soilMoistureExternal1"
},
{
"condition": "AND",
"key": "verifiedTelemetryStatus",
"operator": "=",
"value": "false"
},
{
"condition": "AND",
"key": "verifiedTelemetrySupport",
"operator": "=",
"value": "true"
}
]
},
{
"alias": "Unverified",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -943,6 +996,8 @@
"measurement": "telemetry_messages",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT distinct(\"jsonasnumber\") FROM \"telemetry_messages\" WHERE (\"deviceId\" =~ /^$DeviceName$/ AND \"componentName\" = 'sampleDevice' AND \"telemetry\" =~ /^$Telemetry2$/ AND \"verifiedTelemetrySupport\" = 'false' AND \"verifiedTelemetryStatus\" = 'false') AND $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "C",
"resultFormat": "time_series",
"select": [
@ -975,7 +1030,7 @@
"condition": "AND",
"key": "telemetry",
"operator": "=",
"value": "soilMoistureExternal2"
"value": "soilMoistureExternal1"
},
{
"condition": "AND",
@ -993,10 +1048,8 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Soil Moisture 2",
"title": "Telemetry2",
"tooltip": {
"shared": true,
"sort": 0,
@ -1004,44 +1057,38 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:228",
"$$hashKey": "object:515",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:229",
"$$hashKey": "object:516",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 3,
"w": 6,
"x": 3,
"y": 13
"y": 12
},
"id": 80,
"options": {
@ -1058,7 +1105,7 @@
"params": [
[
"componentName",
"vTsoilMoistureExternal1"
"vT${Telemetry1}"
],
[
"methodName",
@ -1081,6 +1128,10 @@
"pluginVersion": "7.1.5",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -1097,6 +1148,8 @@
],
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
@ -1116,20 +1169,21 @@
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Command",
"title": "Command: Telemetry1",
"type": "cloudspout-button-panel"
},
{
"datasource": "InfluxDB",
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 3,
"w": 6,
"x": 15,
"y": 13
"y": 12
},
"id": 30,
"id": 91,
"options": {
"contentType": "application/json",
"icon": "cog",
@ -1144,7 +1198,7 @@
"params": [
[
"componentName",
"vTsoilMoistureExternal2"
"vT${Telemetry2}"
],
[
"methodName",
@ -1167,6 +1221,10 @@
"pluginVersion": "7.1.5",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"groupBy": [
{
"params": [
@ -1183,6 +1241,8 @@
],
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"value\") FROM \"measurement\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
@ -1202,19 +1262,20 @@
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Command",
"title": "Command: Telemetry2",
"type": "cloudspout-button-panel"
},
{
"collapsed": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
"y": 15
},
"id": 85,
"panels": [],
@ -1226,14 +1287,17 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 17
"y": 16
},
"hiddenSeries": false,
"id": 82,
@ -1253,7 +1317,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
@ -1332,9 +1396,7 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Humidity",
"tooltip": {
"shared": true,
@ -1343,9 +1405,7 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
@ -1353,25 +1413,18 @@
{
"$$hashKey": "object:142",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:143",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
},
{
@ -1379,14 +1432,17 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 17
"y": 16
},
"hiddenSeries": false,
"id": 89,
@ -1406,7 +1462,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
@ -1485,9 +1541,7 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Magnetic",
"tooltip": {
"shared": true,
@ -1496,9 +1550,7 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
@ -1506,25 +1558,18 @@
{
"$$hashKey": "object:287",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:288",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
},
{
@ -1532,14 +1577,17 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 25
"y": 24
},
"hiddenSeries": false,
"id": 88,
@ -1559,7 +1607,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
@ -1638,9 +1686,7 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Pressure",
"tooltip": {
"shared": true,
@ -1649,9 +1695,7 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
@ -1659,25 +1703,18 @@
{
"$$hashKey": "object:432",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:433",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
},
{
@ -1685,14 +1722,17 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 25
"y": 24
},
"hiddenSeries": false,
"id": 83,
@ -1712,7 +1752,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.0.3",
"pluginVersion": "8.5.3",
"pointradius": 8,
"points": true,
"renderer": "flot",
@ -1791,9 +1831,7 @@
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Temperature",
"tooltip": {
"shared": true,
@ -1802,9 +1840,7 @@
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
@ -1812,48 +1848,40 @@
{
"$$hashKey": "object:577",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:578",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
"align": false
}
}
],
"refresh": "5s",
"schemaVersion": 30,
"schemaVersion": 36,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": false,
"text": "MyMXChipDevice",
"value": "MyMXChipDevice"
"text": "PP3_test_device",
"value": "PP3_test_device"
},
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"datasource": "InfluxDB",
"definition": "",
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "DeviceName",
"options": [],
@ -1866,11 +1894,57 @@
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "soilMoistureExternal1",
"value": "soilMoistureExternal1"
},
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"definition": "SHOW TAG VALUES WITH KEY = \"telemetry\"",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "Telemetry1",
"options": [],
"query": "SHOW TAG VALUES WITH KEY = \"telemetry\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": false,
"text": "PMSExternal1",
"value": "PMSExternal1"
},
"datasource": {
"type": "influxdb",
"uid": "P951FEA4DE68E13C5"
},
"definition": "SHOW TAG VALUES WITH KEY = \"telemetry\"",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "Telemetry2",
"options": [],
"query": "SHOW TAG VALUES WITH KEY = \"telemetry\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-1m",
"from": "now-5m",
"to": "now"
},
"timepicker": {
@ -1889,7 +1963,8 @@
]
},
"timezone": "",
"title": "Verified Telemetry",
"uid": "AzureIoT",
"version": 1
"title": "Verified Telemetry -1",
"uid": "pOFCYcrnz",
"version": 3,
"weekStart": ""
}

Просмотреть файл

@ -6,6 +6,7 @@ providers:
folder: ''
type: file
disableDeletion: false
allowUiUpdates: true
editable: true
options:
path: /etc/grafana/provisioning/dashboards