Commit graph

62 commits

Author SHA1 Message Date
Thorben Günther
9043ccfb5e
Set ntfy priority depending on Prometheus labels
It is possible to configure a priority for an arbitrary label.
Furthermore a priority/order of those arbitrary labels should be
defined. The Alertmanager payload is checked for these and the
priority will be selected from the highest valued label that has one
set in the configuration file.
2022-10-12 16:35:04 +02:00
Thorben Günther
9435feba8d
Set HTTP status codes when declining payload 2022-10-10 22:59:05 +02:00
Thorben Günther
a6c41b2aac
Use middleware for basic auth 2022-10-10 19:55:33 +02:00
Thorben Günther
61ed59cefa
Improve logging 2022-10-10 14:55:22 +02:00
Thorben Günther
5cf4add40b
Support basic auth for the http endpoint 2022-10-10 14:04:51 +02:00
Thorben Günther
93d004925b
Support ntfy auth 2022-10-10 02:42:13 +02:00
Thorben Günther
e02a3d9af1
Fix error message 2022-10-10 01:33:40 +02:00
Thorben Günther
bb1a71a637
Read topic from config 2022-10-10 01:30:39 +02:00
Thorben Günther
8347d6410f
Read log level and bind address from config file 2022-10-10 01:20:18 +02:00
Thorben Günther
0bfa2cf7b9
Check content type and method 2022-10-09 20:03:55 +02:00
Thorben Günther
b9335462eb
Format the alert message
For now the format is similar to the email receiver. Maybe switch to
template usage in the future.
2022-10-09 19:50:46 +02:00
Thorben Günther
8cdd87e73b
Initial commit 2022-10-09 14:19:48 +02:00