MQTT alert daemon with pluggable notification backends
Project description
mqtt-alerts
mqtt-alerts is a general-purpose MQTT alerting service. It subscribes to MQTT topics, evaluates threshold rules with hold times and hysteresis, persists alert state, and sends notifications through pluggable backends.
It works with mtr2mqtt, but it is not tied to mtr2mqtt. Any publisher that sends JSON payloads to MQTT can use this service.
Key Features
- Multiple independent rules per sensor topic
- Rule hold durations (
for) and hysteresis support - Persistent alert lifecycle:
pending,firing,acknowledged,resolved - SQLite-backed state and restart-safe acknowledgement tracking
- Pluggable notification backends:
telegram,ntfy,pushover - Automatic recovery notifications
- Outbound-only acknowledgement polling (no public webhook required)
Supported Backends
telegram: push notifications with acknowledgement buttons (polled via Bot API)ntfy: outbound push notificationspushover: push notifications with emergency receipt acknowledgement support
Documentation
Quick Start
Install:
pip install mqtt-alerts
Run:
mqtt-alerts --config sample_config.yml
Container:
docker run --rm \
-v "$(pwd)/sample_config.yml:/config/config.yml:ro" \
-v "$(pwd)/state:/state" \
tvallas/mqtt-alerts:latest \
--config /config/config.yml
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mqtt_alerts-0.4.3.tar.gz.
File metadata
- Download URL: mqtt_alerts-0.4.3.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a498668962b5d1317e247a5875d7621f4ba5fffe2a1197c1bdb115789dd94ede
|
|
| MD5 |
a8e9a98fe186cc7ac107b2631a562523
|
|
| BLAKE2b-256 |
a03aef00e2447f54c56a6e4af4a6d3499fbd19536997def0c19bc3e824d4deb1
|
Provenance
The following attestation bundles were made for mqtt_alerts-0.4.3.tar.gz:
Publisher:
semantic_release.yml on tvallas/mqtt-alerts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtt_alerts-0.4.3.tar.gz -
Subject digest:
a498668962b5d1317e247a5875d7621f4ba5fffe2a1197c1bdb115789dd94ede - Sigstore transparency entry: 1364842391
- Sigstore integration time:
-
Permalink:
tvallas/mqtt-alerts@f9c41bd795fabd71f248906c8133e8bcfabab00b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/tvallas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic_release.yml@f9c41bd795fabd71f248906c8133e8bcfabab00b -
Trigger Event:
push
-
Statement type:
File details
Details for the file mqtt_alerts-0.4.3-py3-none-any.whl.
File metadata
- Download URL: mqtt_alerts-0.4.3-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00ec7ac5a6fffd8a2d3874b0d16a4640621d08173738e42ad3f9b75e25831db4
|
|
| MD5 |
2f43f3c7fc2ce310f55dbcffd80dc81f
|
|
| BLAKE2b-256 |
63d0babc53c92fcdc636f5eaabd309fca57e7423bea9c0f524e35e71dde54db5
|
Provenance
The following attestation bundles were made for mqtt_alerts-0.4.3-py3-none-any.whl:
Publisher:
semantic_release.yml on tvallas/mqtt-alerts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtt_alerts-0.4.3-py3-none-any.whl -
Subject digest:
00ec7ac5a6fffd8a2d3874b0d16a4640621d08173738e42ad3f9b75e25831db4 - Sigstore transparency entry: 1364842407
- Sigstore integration time:
-
Permalink:
tvallas/mqtt-alerts@f9c41bd795fabd71f248906c8133e8bcfabab00b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/tvallas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
semantic_release.yml@f9c41bd795fabd71f248906c8133e8bcfabab00b -
Trigger Event:
push
-
Statement type: