vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
349 stars 131 forks source link

Added functionality to expose prometheus metrics #377

Open scne59 opened 1 year ago

scne59 commented 1 year ago

I have added a "/metrics" page in order to be able to collect metrics with prometheus.

Output looks like this with instance name derived from config "Title"

brewpi_beer_temp{instance="testmachine"} 0
brewpi_beer_set{instance="testmachine"} 20.00
brewpi_fridge_temp{instance="testmachine"} 0
brewpi_fridge_set{instance="testmachine"} 20.00
brewpi_room_temp{instance="testmachine"} 0