https://github.com/tonytw1/prometheus-to-mqtt
https://github.com/tonytw1/prometheus-to-mqtt
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tonytw1/prometheus-to-mqtt
- Owner: tonytw1
- Created: 2019-12-04T16:08:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T23:09:23.000Z (over 1 year ago)
- Last Synced: 2025-02-06T07:13:29.848Z (5 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]
```