-
Notifications
You must be signed in to change notification settings - Fork 158
/
ads-b.yml
executable file
·327 lines (305 loc) · 10.8 KB
/
ads-b.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
apiVersion: influxdata.com/v2alpha1
kind: Label
metadata:
name: fervent-dijkstra-184001
spec:
color: '#0b3a8d'
name: ADS-B
---
apiVersion: influxdata.com/v2alpha1
kind: Bucket
metadata:
name: endangered-haslett-184005
spec:
associations:
- kind: Label
name: fervent-dijkstra-184001
name: ads-b
---
apiVersion: influxdata.com/v2alpha1
kind: Dashboard
metadata:
name: loving-proskuriakova-984001
spec:
associations:
- kind: Label
name: fervent-dijkstra-184001
charts:
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 0
height: 2
kind: Single_Stat
name: Recent Aircraft Total
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_recent_aircraft_observed")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")
staticLegend: {}
width: 2
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: '# of Aircraft'
name: y
scale: linear
colors:
- hex: '#31C0F6'
id: 5ce5deb4-b018-4aba-b270-b2cf3f3648fd
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 9bf389b2-87cd-4489-9580-d8d9d1bf64ff
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 402d2f6f-6d2c-4cec-ab68-6255f3aba755
name: Nineteen Eighty Four
type: scale
geom: line
height: 6
hoverDimension: auto
kind: Xy
name: Aircraft
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_recent_aircraft_observed" or r["_measurement"] == "dump1090_recent_aircraft_with_multilateration" or r["_measurement"] == "dump1090_recent_aircraft_with_position")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")
staticLegend: {}
width: 10
xCol: _time
yCol: _value
yPos: 2
- axes:
- base: "10"
name: x
scale: linear
- label: Distance
name: y
scale: linear
suffix: m
colors:
- hex: '#31C0F6'
id: 5ce5deb4-b018-4aba-b270-b2cf3f3648fd
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 9bf389b2-87cd-4489-9580-d8d9d1bf64ff
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 402d2f6f-6d2c-4cec-ab68-6255f3aba755
name: Nineteen Eighty Four
type: scale
geom: line
height: 5
kind: Xy
name: Distance from receiver
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_recent_aircraft_max_range")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend: {}
width: 10
xCol: _time
yCol: _value
yPos: 8
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 0
height: 2
kind: Single_Stat
name: Aircraft with Position
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_recent_aircraft_with_position")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")
staticLegend: {}
width: 2
xPos: 2
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 0
height: 2
kind: Single_Stat
name: Max Range
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_recent_aircraft_max_range")
|> max()
|> map(fn: (r) => ({
r with
_value: r._value / 1000.0
})
)
staticLegend: {}
suffix: ' km'
width: 2
xPos: 4
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 0
height: 2
kind: Single_Stat
name: Messages per Second
queries:
- query: |-
import "experimental/aggregate"
from(bucket: v.bucket)
|> range(start: -1m)
|> filter(fn: (r) => r["_measurement"] == "dump1090_messages_total")
|> aggregate.rate(every: 5s, unit: 1s)
staticLegend: {}
width: 2
xPos: 6
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: y
scale: linear
colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 1
height: 2
kind: Single_Stat_Plus_Line
name: Signal Mean
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "dump1090_stats_local_signal_strength_dbFS")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend: {}
width: 2
xCol: _time
xPos: 8
yCol: _value
- height: 13
kind: Markdown
name: Name this Cell
note: |-
#### Recent Aircraft Total
The most recent number of aircraft reported
#### Aircraft with Position
The number of recently reported aircraft with position data
#### Max Range
The farthest report received
#### Messages per Second
The current count of messages per second received and decoded
#### Signal Mean
Mean signal expressed in [dBFS](https://en.wikipedia.org/wiki/dBFS)
#### Aircraft
* Observed aircraft
* Observed aircraft with position data
* Observed aircraft with [MLAT](http://multilateration.com/ads-b.html)
#### Distance from Receiver
Aircraft distance from receiver over time
staticLegend: {}
width: 2
xPos: 10
description: Metrics gathered from dump1090exporter to visualize your ADS-B flight
tracking station.
name: ADS-B Flight Tracker
---
apiVersion: influxdata.com/v2alpha1
kind: Telegraf
metadata:
name: sloppy-sinoussi-d84001
spec:
associations:
- kind: Label
name: fervent-dijkstra-184001
config: |-
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "10s"
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
## Telegraf will send metrics to outputs in batches of at most
## metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
metric_batch_size = 1000
## For failed writes, telegraf will cache metric_buffer_limit metrics for each
## output, and will flush this buffer on a successful write. Oldest metrics
## are dropped first when this buffer fills.
## This buffer only fills when writes fail to output plugin(s).
metric_buffer_limit = 10000
## Collection jitter is used to jitter the collection by a random amount.
## Each plugin will sleep for a random time within jitter before collecting.
## This can be used to avoid many plugins querying things like sysfs at the
## same time, which can have a measurable effect on the system.
collection_jitter = "0s"
## Default flushing interval for all outputs. Maximum flush_interval will be
## flush_interval + flush_jitter
flush_interval = "10s"
## Jitter the flush interval by a random amount. This is primarily to avoid
## large write spikes for users running a large number of telegraf instances.
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
flush_jitter = "0s"
## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
## when interval = "250ms", precision will be "1ms"
## Precision will NOT be used for service inputs. It is up to each individual
## service input to set the timestamp at the appropriate precision.
## Valid time units are "ns", "us" (or "µs"), "ms", "s".
precision = ""
## Logging configuration:
## Run telegraf with debug log messages.
debug = false
## Run telegraf in quiet mode (error log messages only).
quiet = false
## Specify the log file name. The empty string means to log to stderr.
logfile = ""
## Override default hostname, if empty use os.Hostname()
hostname = ""
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["$INFLUX_HOST"]
token = "$INFLUX_TOKEN"
organization = "$INFLUX_ORG"
bucket = "$INFLUX_BUCKET"
[[inputs.prometheus]]
urls = ["http://localhost:9105/metrics"]
description: Collect ADSB metrics from dump1090 Prometheus export
name: ADS-B