Telegraf container for readsb and dump978
services:
telegraf_adsb:
image: ghcr.io/sdr-enthusiasts/docker-telegraf-adsb:latest
container_name: telegraf_adsb
hostname: telegraf_adsb
restart: unless-stopped
environment:
- PROMETHEUS_ENABLE=true
#- URL_1090=http://192.168.2.23:8080
#- URL_1090=http://192.168.2.23/tar1090
- URL_1090=http://ultrafeeder # reference container directly if in same stack
#- HOST_978=192.168.2.33
- HOST_978=dump978 # reference container directly if in same stack
- LAT=${FEEDER_LAT}
- LON=${FEEDER_LONG}
ports:
- 9273:9273
tmpfs:
- /run:exec,size=64M
Variable | Description |
---|---|
URL_1090 |
URL of tar1090 or dump1090 webinterface to get data. |
HOST_978 |
IP / Hostname of where to get the 978 data (port 30978 and 30979 are both required). |
URL_978 |
URL of skyaware978 webinterface to get 978 autogain data. (i.e. http://dump978/skyaware978) |
INFLUXDB_SKIP_AIRCRAFT |
Set to any value to skip publishing aircraft data to InfluxDB to minimize bandwidth and database size. |
In order for Telegraf to output metrics to an InfluxDBv2 time-series database, the following environment variables can be used:
Variable | Description |
---|---|
INFLUXDBV2_URL |
The URL of the InfluxDB instance |
INFLUXDBV2_TOKEN |
The token for authentication |
INFLUXDBV2_ORG |
InfluxDB Organization to write into |
INFLUXDBV2_BUCKET |
Destination bucket to write into |
In order for Telegraf to output metrics to a legacyInfluxDBv1 time-series database, the following environment variables can be used:
Variable | Description |
---|---|
INFLUXDB_URL |
The URL of the InfluxDB instance |
INFLUXDB_DATABASE |
database in InfluxDB to store data in |
INFLUXDB_USERNAME |
username to authenticate to InfluxDB as |
INFLUXDB_PASSWORD |
password for InfluxDB User |
In order for Telegraf to serve a Prometheus endpoint, the following environment variables can be used:
Variable | Description |
---|---|
PROMETHEUS_ENABLE |
Set to true for a Prometheus endpoint on http://0.0.0.0:9273/metrics |