Skip to content

Commit 8a400b1

Browse files
committed
Update dashboard
1 parent a5ace27 commit 8a400b1

File tree

1 file changed

+48
-18
lines changed

1 file changed

+48
-18
lines changed

kustomization/dashboards/vehicle-data.json

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"panels": [
2323
{
2424
"datasource": {
25+
"default": true,
2526
"type": "prometheus",
2627
"uid": "prometheus"
2728
},
@@ -60,6 +61,11 @@
6061
},
6162
"id": 1,
6263
"options": {
64+
"basemap": {
65+
"config": {},
66+
"name": "Layer 0",
67+
"type": "osm-standard"
68+
},
6369
"center": {
6470
"latitude": 41.776876,
6571
"longitude": -88.245579
@@ -72,7 +78,7 @@
7278
"showAttribution": true,
7379
"showDebug": false,
7480
"showMeasure": false,
75-
"showScale": false,
81+
"showScale": true,
7682
"showZoom": true
7783
},
7884
"layers": [
@@ -83,7 +89,7 @@
8389
"color": {
8490
"fixed": "dark-green"
8591
},
86-
"opacity": 0.4,
92+
"opacity": 1,
8793
"rotation": {
8894
"fixed": 0,
8995
"max": 360,
@@ -96,13 +102,17 @@
96102
"min": 2
97103
},
98104
"symbol": {
99-
"fixed": "img/icons/marker/circle.svg",
105+
"fixed": "img/icons/marker/star.svg",
100106
"mode": "fixed"
101107
},
102108
"symbolAlign": {
103109
"horizontal": "center",
104110
"vertical": "center"
105111
},
112+
"text": {
113+
"fixed": "",
114+
"mode": "fixed"
115+
},
106116
"textConfig": {
107117
"fontSize": 12,
108118
"offsetX": 0,
@@ -113,9 +123,11 @@
113123
}
114124
},
115125
"location": {
116-
"mode": "auto"
126+
"latitude": "7SAYGDEEXRA288618 Latitude",
127+
"longitude": "7SAYGDEEXRA288618 Longitude",
128+
"mode": "coords"
117129
},
118-
"name": "Layer 1",
130+
"name": "Cars",
119131
"tooltip": true,
120132
"type": "markers"
121133
}
@@ -127,11 +139,11 @@
127139
},
128140
"view": {
129141
"allLayers": true,
130-
"id": "zero",
131-
"lat": 0,
132-
"lon": 0,
142+
"id": "fit",
143+
"lat": 41.776906,
144+
"lon": -88.24551,
133145
"mode": "markers",
134-
"zoom": 1
146+
"zoom": 15
135147
},
136148
"zoom": 4
137149
},
@@ -142,21 +154,33 @@
142154
"type": "prometheus",
143155
"uid": "prometheus"
144156
},
157+
"editorMode": "code",
145158
"expr": "avg(vehicle_data{field=\"Latitude\"}) by (vin)",
159+
"format": "time_series",
160+
"interval": "",
146161
"legendFormat": "{{vin}} Latitude",
162+
"range": true,
147163
"refId": "A"
148164
},
149165
{
150166
"datasource": {
151167
"type": "prometheus",
152168
"uid": "prometheus"
153169
},
170+
"editorMode": "code",
154171
"expr": "avg(vehicle_data{field=\"Longitude\"}) by (vin)",
155172
"legendFormat": "{{vin}} Longitude",
173+
"range": true,
156174
"refId": "B"
157175
}
158176
],
159177
"title": "Vehicle Locations",
178+
"transformations": [
179+
{
180+
"id": "joinByField",
181+
"options": {}
182+
}
183+
],
160184
"type": "geomap"
161185
},
162186
{
@@ -273,7 +297,7 @@
273297
"axisPlacement": "hidden",
274298
"barAlignment": 0,
275299
"barWidthFactor": 0.6,
276-
"drawStyle": "points",
300+
"drawStyle": "line",
277301
"fillOpacity": 0,
278302
"gradientMode": "none",
279303
"hideFrom": {
@@ -298,6 +322,7 @@
298322
"mode": "off"
299323
}
300324
},
325+
"decimals": 3,
301326
"mappings": [],
302327
"thresholds": {
303328
"mode": "absolute",
@@ -351,6 +376,7 @@
351376
},
352377
{
353378
"datasource": {
379+
"default": true,
354380
"type": "prometheus",
355381
"uid": "prometheus"
356382
},
@@ -367,7 +393,7 @@
367393
"axisPlacement": "hidden",
368394
"barAlignment": 0,
369395
"barWidthFactor": 0.6,
370-
"drawStyle": "points",
396+
"drawStyle": "line",
371397
"fillOpacity": 0,
372398
"gradientMode": "none",
373399
"hideFrom": {
@@ -376,8 +402,8 @@
376402
"viz": false
377403
},
378404
"insertNulls": false,
379-
"lineInterpolation": "linear",
380-
"lineWidth": 1,
405+
"lineInterpolation": "smooth",
406+
"lineWidth": 3,
381407
"pointSize": 5,
382408
"scaleDistribution": {
383409
"type": "linear"
@@ -406,7 +432,7 @@
406432
}
407433
]
408434
},
409-
"unit": "celsius"
435+
"unit": "fahrenheit"
410436
},
411437
"overrides": []
412438
},
@@ -435,17 +461,21 @@
435461
"type": "prometheus",
436462
"uid": "prometheus"
437463
},
438-
"expr": "avg(vehicle_data{field=\"InsideTemp\"}) by (vin)",
464+
"editorMode": "code",
465+
"expr": "((avg(vehicle_data{field=\"InsideTemp\"}) by (vin)) * 9 / 5) + 32",
439466
"legendFormat": "{{vin}} Inside Temp",
467+
"range": true,
440468
"refId": "A"
441469
},
442470
{
443471
"datasource": {
444472
"type": "prometheus",
445473
"uid": "prometheus"
446474
},
447-
"expr": "avg(vehicle_data{field=\"OutsideTemp\"}) by (vin)",
475+
"editorMode": "code",
476+
"expr": "((avg(vehicle_data{field=\"OutsideTemp\"}) by (vin)) * 9 / 5) + 32",
448477
"legendFormat": "{{vin}} Outside Temp",
478+
"range": true,
449479
"refId": "B"
450480
}
451481
],
@@ -836,13 +866,13 @@
836866
"list": []
837867
},
838868
"time": {
839-
"from": "now-24h",
869+
"from": "now-3h",
840870
"to": "now"
841871
},
842872
"timepicker": {},
843873
"timezone": "",
844874
"title": "Vehicle Data",
845875
"uid": "cdz1a9i11r3lsf",
846-
"version": 9,
876+
"version": 10,
847877
"weekStart": ""
848878
}

0 commit comments

Comments
 (0)