baaym / openhab2-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus Exporter for OpenHAB 2
License: MIT License
Prometheus Exporter for OpenHAB 2
License: MIT License
This is exactly what I was looking for. Thanks.
Small issue: some of my values are UNDEF
:
openhab2_metric_number{name="Hs110GlassCubeLight_Current"} 0.034 1557829413308
openhab2_metric_number{name="Hs110IndustrialLight_EnergyUsage"} 0.287 1557829413308
openhab2_metric_number{name="LocalSun_EveningNightDuration"} UNDEF 1557829413308
openhab2_metric_number{name="Hs110Fridge_Rssi"} -41 1557829413308
openhab2_metric_number{name="XiaomiImagiSuck_ConsumablesMainBrushTime"} 258.0 1557829413308
openhab2_metric_number{name="ChromecastMiniMainbath_EpisodeNumber"} UNDEF 1557829413308
openhab2_metric_number{name="LocalSun_PositionElevation"} 54.990202533513 1557829413308
openhab2_metric_number{name="LocalSun_NoonDuration"} 1 1557829413308
Which leads to this:
May 14 10:23:33 bunker prometheus[14105]: level=warn ts=2019-05-14T10:23:33.665419592Z caller=scrape.go:686 component="scrape manager" scrape_pool=openhab target=http://bunker.imagilan:9997/metrics msg="append failed" err="strconv.ParseFloat: parsing \"UNDEF\": invalid syntax"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.