Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonytw1/prometheus-to-mqtt
https://github.com/tonytw1/prometheus-to-mqtt
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonytw1/prometheus-to-mqtt
- Owner: tonytw1
- Created: 2019-12-04T16:08:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T23:09:23.000Z (9 months ago)
- Last Synced: 2024-06-18T17:18:54.143Z (7 months ago)
- Language: Go
- Size: 27.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus to MQTT
We use Prometheus for monitoring and alerting but have several dashboard devices which consume metrics from a MQTT topic.
This application polls the Prometheus v1 API and exports metrics and alerts statues for a given set of jobs onto an MQTT topic.
Metrics are published as MQTT messages with the format:
```
[job name]/[metric name]:[integer value]
```Alerts are published in the same format with a value of 0 or 1 to indicate if the alert is currently firing.
```
[job_name]/[alert name]:[true|false]
```