sh0rez / promqtt Goto Github PK
View Code? Open in Web Editor NEWGeneric Prometheus ⟷ MQTT Bridge
Generic Prometheus ⟷ MQTT Bridge
Currently, when an actor stops sending messages to MQTT, promqtt will export the last received value forever.
How shall we deal with this?
I personally like (3), because it could leverage the quite unique MQTT property of LWT.
Thoughts? @RichiH?
As per last dev summit, we are trying to come up with new terminology for this use case. "push exporter" is least bad atm.
https://docs.google.com/document/d/11LC3wJcVk00l8w5P3oLQ-m3Y37iom6INAMEu2ZAGIIE/edit?ts=60d93074#
JSON can already parsed using the regex support, but only if the actors emit JSON in a strict way (same ordering, etc).
We could possibly add a native JSON mode that turns all fields into series
./promqtt 10.8.0.2:1883
2021/12/17 10:10:39 listening at :9337
2021/12/17 10:10:39 subscribed to '#'
mosquitto_pub -h localhost -t diox/06FE2A3/co2 -m "42.0"
mosquitto_sub -t '#' --host 10.8.0.2
42.0
wget http://localhost:9337/mqtt
--2021-12-17 10:13:25-- http://localhost:9337/mqtt
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:9337... connected.
HTTP request sent, awaiting response... 400 Bad Request
2021-12-17 10:13:25 ERROR 400: Bad Request.
/mqtt target doesn't start
why? How to check it?
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.