Skip to content

Added functionality to expose prometheus metrics#377

Open
scne59 wants to merge 1 commit intovitotai:masterfrom
scne59:metrics
Open

Added functionality to expose prometheus metrics#377
scne59 wants to merge 1 commit intovitotai:masterfrom
scne59:metrics

Conversation

@scne59
Copy link

@scne59 scne59 commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments