daretogo / esp32-prometheus-door-exporter

This repo contains the Arduino code to get an ESP-32 to broadcast the "metric" of a door open/closed sensor for scraping by Prometheus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this?

This is a very simple webserver that runs on a ESP32 that takes a reading from a door sensor and provides a binary open/close metric. As checked in this repo it's at http://ip-of-your-esp32:9000

Credit to ESP32.io whom I learned how to read the door sensor from: https://esp32io.com/tutorials/esp32-door-sensor

Credit to codetiger as I learned how to write a simple web exporter from them: https://github.com/codetiger/PowerConsumptionMonitor-ESP32/blob/main/PowerConsumptionMonitor/PowerConsumptionMonitor.ino

About

This repo contains the Arduino code to get an ESP-32 to broadcast the "metric" of a door open/closed sensor for scraping by Prometheus.


Languages

Language:C++ 91.7%Language:C 8.3%