Commit graph

12 commits

Author SHA1 Message Date
Thorben Günther
6d64c21549
Use Logger.With to create child loggers for the handlers
With that it will be easier to check on which endpoint a failure
happened.
2023-08-13 15:16:26 +02:00
Thorben Günther
dab77f6393
Use "log/slog" for logging 2023-08-13 14:48:27 +02:00
Thorben Günther
c70b82e9ab
config: Move to own package 2023-07-12 14:56:48 +02:00
Thorben Günther
82a22c8959
Simplify outgoing Basic Authentication 2023-02-21 14:12:21 +01:00
Thorben Günther
cd848543b3
Slightly improve logging 2023-02-21 14:00:21 +01:00
Thorben Günther
af7469d97b
Rename receiver to bridge 2023-02-21 13:57:21 +01:00
Thorben Günther
1daa751cb2
Move http.Client to receiver struct 2023-02-17 01:45:14 +01:00
Thorben Günther
38fa5f9f71
silence: Parse Alertmanager API response 2023-02-12 16:07:49 +01:00
Thorben Günther
81ff7bd90e
alertmanger: Add setting to overwrite URL 2023-02-12 14:58:37 +01:00
Thorben Günther
7bb448b5eb
Refactor structs to use map[string]string 2023-02-12 14:40:32 +01:00
Thorben Günther
1e44ba5694
alertmanager: Support basic auth 2023-02-12 14:15:02 +01:00
Thorben Günther
c919ec9af2
Add ability to silence alerts with ntfy action
For now only for the single alert mode.
This is implemented as an action button, that will send an API request
to ntfy-alertmanager itself instead of Alertmanager. Here ntfy-alertmanager
acts as a proxy and will then do the API request for actually creating
the silence in Alertmanager.
This is founded in a limitation of ntfy, that seemingly does not allow a
json body with more than one key.
2023-02-12 03:04:17 +01:00