forked from influxdata/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
css_electronics.yml
executable file
·413 lines (413 loc) · 12.7 KB
/
css_electronics.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
apiVersion: influxdata.com/v2alpha1
kind: Bucket
metadata:
name: confident-moore-99d001
spec:
name: test-bucket-new
retentionRules:
- everySeconds: 7.776e+06
type: expire
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: admiring-elbakyan-d9d001
spec:
language: flux
name: bucket
query: "buckets()\r\n |> rename(columns: {\"name\": \"_value\"})\r\n |> keep(columns:
[\"_value\"])"
type: query
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: romantic-moser-d9d003
spec:
language: flux
name: _measurement
query: "from(bucket: v.bucket)\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n
\ |> drop(columns: [\"_value\"])\r\n |> rename(columns: {\"_measurement\":
\"_value\"})\r\n |> keep(columns: [\"_value\"])\r\n |> unique(column: \"_value\")"
type: query
---
apiVersion: influxdata.com/v2alpha1
kind: Dashboard
metadata:
name: trusting-noether-59d001
spec:
charts:
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: RPM
name: "y"
scale: linear
colors:
- hex: '#31C0F6'
id: 3e85d9df-9b54-42a7-b444-a186d6da1e51
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: e9db8bd1-5320-4aa5-9347-bfc4508ebb14
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 3dd24c54-fe6d-461c-98fd-87c8414cc09e
name: Nineteen Eighty Four
type: scale
geom: line
height: 2
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 0.86
legendOrientationThreshold: 1e+08
name: Engine Speed
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineSpeed")
|> aggregateWindow(every: 1s, fn: mean, createEmpty: false)
|> yield(name: "mean")
shade: true
staticLegend: {}
width: 3
xCol: _time
yCol: _value
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: Km/h
name: "y"
scale: linear
colors:
- hex: '#34BB55'
id: f11c3788-67b7-4433-ace8-20ab6dc4b215
name: Solid Green
type: scale
- hex: '#34BB55'
id: f4ca68af-7d7b-43e1-966c-e1f8bacb3f9c
name: Solid Green
type: scale
- hex: '#34BB55'
id: 1e3e978f-c468-4994-93db-5381cb7a4b04
name: Solid Green
type: scale
geom: line
height: 2
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 0.86
legendOrientationThreshold: 1e+08
name: Engine Fuel Rate
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineFuelRate")
|> aggregateWindow(every: 30s, fn: mean, createEmpty: false)
|> yield(name: "mean")
shade: true
staticLegend: {}
width: 3
xCol: _time
yCol: _value
yPos: 2
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: Km/h
name: "y"
scale: linear
colors:
- hex: '#FFD255'
id: 31ee1d68-0c5e-4ade-aacb-e3e775a0e9cb
name: Solid Yellow
type: scale
- hex: '#FFD255'
id: c66bb0a9-f40d-4ce5-8bc2-723ad5f4f826
name: Solid Yellow
type: scale
- hex: '#FFD255'
id: 9f666fc3-faa6-4984-94c9-2ef3d3f53f66
name: Solid Yellow
type: scale
geom: line
height: 2
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 0.86
legendOrientationThreshold: 1e+08
name: Vehicle Speed
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "WheelBasedVehicleSpeed")
|> aggregateWindow(every: 1s, fn: mean, createEmpty: false)
|> yield(name: "mean")
shade: true
staticLegend: {}
width: 3
xCol: _time
yCol: _value
yPos: 4
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#BE2EE4'
id: 9443fdc9-61a0-469a-a476-9a4a7711c4d4
name: Solid Purple
type: scale
- hex: '#BE2EE4'
id: e6c76db9-4880-4d95-b9f5-70a8661e5dd1
name: Solid Purple
type: scale
- hex: '#BE2EE4'
id: e259de97-f827-46d0-9bf6-2944351f6a03
name: Solid Purple
type: scale
geom: line
height: 2
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 0.86
legendOrientationThreshold: 1e+08
name: Brake pressure
opacity: 0.86
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "BrakePrimaryPressure")
|> aggregateWindow(every: 1s, fn: mean, createEmpty: false)
|> yield(name: "mean")
shade: true
staticLegend:
colorizeRows: true
opacity: 0.86
orientationThreshold: 1e+08
width: 3
xCol: _time
yCol: _value
yPos: 6
- colors:
- hex: '#545667'
id: "0"
name: graphite
type: min
- hex: '#4ED8A0'
id: 969ab520-47a0-4dbd-a8a1-7c2c16898ff1
name: rainforest
type: threshold
value: 20
- hex: '#FFD255'
id: bdb1cc4c-ff65-4a2e-b0e3-a9831f9a5034
name: thunder
type: threshold
value: 70
- hex: '#DC4E58'
id: 6639060e-93e9-43ba-9459-a7d6ca8148d4
name: fire
type: threshold
value: 100
- hex: '#BF3D5E'
id: "1"
name: ruby
type: max
value: 120
decimalPlaces: 0
height: 3
kind: Gauge
name: Oil Temperature
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineOilTemperature1")
|> aggregateWindow(every: 30s, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend: {}
width: 2
xPos: 3
- colors:
- hex: '#545667'
id: "0"
name: graphite
type: min
- hex: '#4ED8A0'
id: 969ab520-47a0-4dbd-a8a1-7c2c16898ff1
name: rainforest
type: threshold
value: 30
- hex: '#FFD255'
id: bdb1cc4c-ff65-4a2e-b0e3-a9831f9a5034
name: thunder
type: threshold
value: 50
- hex: '#DC4E58'
id: 6639060e-93e9-43ba-9459-a7d6ca8148d4
name: fire
type: threshold
value: 90
- hex: '#BF3D5E'
id: "1"
name: ruby
type: max
value: 120
decimalPlaces: 0
height: 3
kind: Gauge
name: Fuel Temperature
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineFuel1Temperature1")
|> aggregateWindow(every: 30s, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend: {}
width: 2
xPos: 3
yPos: 3
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 0
height: 2
kind: Single_Stat
name: Engine total hours
queries:
- query: "from(bucket: v.bucket)\r\n |> range(start: v.timeRangeStart,
stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"]
== v._measurement)\r\n |> filter(fn: (r) => r[\"_field\"] == \"EngineTotalHoursofOperation\")\r\n
\ |> last()"
staticLegend: {}
width: 2
xPos: 3
yPos: 6
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colors:
- hex: '#FDC44F'
id: b18b4f00-94c3-4344-996b-9079c57c8afd
name: Cthulhu
type: scale
- hex: '#007C76'
id: 60f13f55-d9f5-4071-b080-49c6fc3394f6
name: Cthulhu
type: scale
- hex: '#8983FF'
id: a6e5cd77-30e2-41a2-8b91-f48c5c41c74a
name: Cthulhu
type: scale
geom: line
height: 5
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Intake Air Pressure vs Oil Pressure
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineOilPressure1" or r["_field"] == "EngineIntakeAirPressure")
|> aggregateWindow(every: 15s, fn: mean, createEmpty: false)
|> yield(name: "mean")
shade: true
staticLegend: {}
width: 7
xCol: _time
xPos: 5
yCol: _value
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 96db5033-ed44-4537-b7d4-fbd5f9fda344
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: e3fc2eee-78a2-4297-ae16-1a7bf21e3836
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: a5418365-7535-4de1-b404-4ad0956311c2
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Coolant and engine temperature
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == v._measurement)
|> filter(fn: (r) => r["_field"] == "EngineExhaustTemperature" or r["_field"] == "EngineCoolantTemperature")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 7
widthRatio: 1
xCol: _time
xPos: 5
yCol: _value
yPos: 5
name: Truck dashboard with variables