Commit graph

7 commits

Author SHA1 Message Date
Thorben Günther
549793cb83
config: Load all label settings
Until now only the first occurrence of a label type was loaded.

Fixes: https://todo.xenrox.net/~xenrox/ntfy-alertmanager/10
2023-01-16 00:48:11 +01:00
Thorben Günther
2818ba9885
Support ntfy tags 2022-10-12 17:04:44 +02:00
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
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
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