Prometheus exporter that collects device data from the Ambient Weather API.
Tested with the Ambient Weather WS-8482.
- Supports multiple base stations and multiple sensors per station
- Lightweight Docker image (around 15MB)
Start by getting an API key and application key from Ambient Weather.
export AMBIENT_API_KEY="abc"
export AMBIENT_APP_KEY="xyz"
docker compose up -d --build
docker compose ps
docker compose logs exporter
curl -s http://localhost:9090/metrics | grep ambient
Use Kustomize to deploy the exporter to a Kubernetes cluster.
kubectl -n monitoring create secret generic ambient-exporter \
--from-literal=AMBIENT_API_KEY=${AMBIENT_API_KEY} \
--from-literal=AMBIENT_APP_KEY=${AMBIENT_APP_KEY}
# Using tagged manifests
kubectl kustomize "https://github.com/ianunruh/ambient-exporter.git/deploy/basic?ref=v1.1.1" | \
kubectl apply -n monitoring -f-
# Using local manifests
kubectl kustomize deploy/basic | \
kubectl apply -n monitoring -f-