Docker container image for Prometheus exporter for Airthings devices. Link to docker hub: https://hub.docker.com/r/dachack/airthings-exporter
airthings-exporter:
container_name: airthings-exporter
image: dachack/airthings-exporter
networks:
- prometheus
environment:
client_id: YOUR_CLIENT_ID
client_secret: YOUR_SECRET
device_id: YOUR_DEVICE_ID
restart: unless-stopped
scrape_configs:
- job_name: 'airthings'
scrape_interval: 5m
scrape_timeout: 10s
static_configs:
- targets: ['localhost:8000']
Airthings API for consumers allows only up to 120 requests per hour. Every scrape in prometheus sends one request per device to the Airthings API. Make sure the configured prometheus scrape interval does not exceed the limit.
Content type
Image
Digest
sha256:fdd98fa97…
Size
29.5 MB
Last updated
about 23 hours ago
docker pull dachack/airthings-exporter