Skip to content

Commit

Permalink
feat: device variable now use the data-sources measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
k0rventen committed Mar 5, 2024
1 parent 589318a commit 6fe4659
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 43 deletions.
13 changes: 8 additions & 5 deletions provisioning/dashboards/dashs/all-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -67,6 +68,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
Expand Down Expand Up @@ -96,7 +98,8 @@
"value": 80
}
]
}
},
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -184,8 +187,8 @@
"type": "timeseries"
}
],
"schemaVersion": 37,
"style": "dark",
"refresh": "",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
Expand Down Expand Up @@ -226,13 +229,13 @@
"type": "influxdb",
"uid": "influx"
},
"definition": "show tag values from StepCount with key=device",
"definition": "show tag values from \"data-sources\" with key=device",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "device",
"options": [],
"query": "show tag values from StepCount with key=device",
"query": "show tag values from \"data-sources\" with key=device",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
Expand Down
82 changes: 44 additions & 38 deletions provisioning/dashboards/dashs/specific-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"value": 100000
}
]
}
},
"unitScale": true
},
"overrides": []
},
Expand All @@ -97,9 +98,11 @@
"fields": "",
"values": false
},
"textMode": "value_and_name"
"showPercentChange": false,
"textMode": "value_and_name",
"wideLayout": true
},
"pluginVersion": "9.5.3",
"pluginVersion": "10.3.3",
"targets": [
{
"alias": "Cycled distance this year ($tag_unit)",
Expand Down Expand Up @@ -351,6 +354,7 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -364,6 +368,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
Expand Down Expand Up @@ -394,7 +399,8 @@
}
]
},
"unit": "lengthkm"
"unit": "lengthkm",
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -505,6 +511,7 @@
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -518,6 +525,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
Expand Down Expand Up @@ -548,7 +556,8 @@
}
]
},
"unit": "lengthkm"
"unit": "lengthkm",
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -634,6 +643,7 @@
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -647,6 +657,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
Expand Down Expand Up @@ -677,7 +688,8 @@
}
]
},
"unit": "m"
"unit": "m",
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -763,6 +775,7 @@
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -776,6 +789,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
Expand Down Expand Up @@ -806,7 +820,8 @@
}
]
},
"unit": "steps"
"unit": "steps",
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -916,6 +931,7 @@
"mode": "fixed"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -929,6 +945,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 3,
"pointSize": 5,
Expand Down Expand Up @@ -959,7 +976,8 @@
}
]
},
"unit": "flights"
"unit": "flights",
"unitScale": true
},
"overrides": []
},
Expand Down Expand Up @@ -1087,8 +1105,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1337,8 +1354,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1466,8 +1482,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1607,8 +1622,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1796,8 +1810,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1974,8 +1987,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2103,8 +2115,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2282,8 +2293,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2558,8 +2568,7 @@
"mode": "absolute",
"steps": [
{
"color": "semi-dark-blue",
"value": null
"color": "semi-dark-blue"
}
]
}
Expand Down Expand Up @@ -2687,8 +2696,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand All @@ -2697,7 +2705,8 @@
]
},
"unit": "s"
}
},
"overrides": []
},
"gridPos": {
"h": 13,
Expand Down Expand Up @@ -2799,8 +2808,7 @@
"mode": "absolute",
"steps": [
{
"color": "purple",
"value": null
"color": "purple"
}
]
},
Expand Down Expand Up @@ -2876,8 +2884,7 @@
"mode": "absolute",
"steps": [
{
"color": "dark-blue",
"value": null
"color": "dark-blue"
}
]
},
Expand Down Expand Up @@ -3017,8 +3024,7 @@
}
],
"refresh": "30s",
"schemaVersion": 38,
"style": "dark",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
Expand All @@ -3036,13 +3042,13 @@
"type": "influxdb",
"uid": "influx"
},
"definition": "show tag values from StepCount with key=device",
"definition": "show tag values from \"data-sources\" with key=device",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "source",
"options": [],
"query": "show tag values from StepCount with key=device",
"query": "show tag values from \"data-sources\" with key=device",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
Expand All @@ -3059,6 +3065,6 @@
"timezone": "",
"title": "Apple health specific metrics",
"uid": "specific-metrics",
"version": 4,
"version": 5,
"weekStart": ""
}

0 comments on commit 6fe4659

Please sign in to comment.