Commit graph

9 commits

Author SHA1 Message Date
Thorben Günther
0508f37896
cache: Add config options for duration and cleanup interval 2023-02-08 20:41:03 +01:00
Thorben Günther
46f4590d11
config: Add alert-mode 2023-01-20 15:03:46 +01:00
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