/tempest_exporter

#Prometheus exporter for #Tempest weather stations

Primary LanguageGo

tempest_exporter source

This is a Prometheus/OpenMetrics exporter for Tempest weather stations.

This tool listens for Tempest UDP broadcasts and forwards metrics to a Prometheus push gateway.

Quickstart

Container images are available at Docker Hub and GitHub container registry.

$ docker run -it --rm --net=host \
  -e PUSH_URL=http://victoriametrics:8429/api/v1/import/prometheus \
  willglynn/tempest_exporter
# or
$ docker run -it --rm --net=host \
  -e PUSH_URL=http://victoriametrics:8429/api/v1/import/prometheus \
  ghcr.io/willglynn/tempest_exporter
2023/07/06 20:18:55 pushing to "0.0.0.0" with job name "tempest"
2023/07/06 20:18:55 listening on UDP :50222

Note that --net=host is used here because UDP broadcasts are link-local and therefore cannot be received from typical (routed) container networks.

Exporter configuration

Minimal, via environment variables:

Status

This works for me and my Tempest setup. Feel free to open pull requests with proposed changes.