Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 801 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 801 Bytes

Collect metrics with Prometheus with push gateway

Run Push Gateway

docker pull prom/pushgateway
docker run --restart=unless-stopped -d -p 9091:9091 prom/pushgateway

Setup scraping target in Prometheus

job_name: TempBatch
static_configs:
  - targets: ["raspberrypi:9091"]
honor_labels: true

Run sprint with sendToPrometheus.py callback

Script will make one mesure and call script that send data to prometheus push gateway

> python3 ./LYWSD03MMC.py --device XX:XX:XX:XX:XX:XX --round --debounce -call ./prometheus/sendToPrometheus.py -n living_room -c 1

Grafana Dashboard

grafana-dashboard