Software /
code /
prosody-modules
Diff
mod_pubsub_alertmanager/README.md @ 5593:04f36a470dca
Update from upstream
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Sun, 09 Jul 2023 01:31:29 +0700 |
parent | 5485:67190744b1eb |
line wrap: on
line diff
--- a/mod_pubsub_alertmanager/README.md Fri May 26 02:15:45 2023 +0700 +++ b/mod_pubsub_alertmanager/README.md Sun Jul 09 01:31:29 2023 +0700 @@ -93,3 +93,21 @@ `alertmanager_node_template` : Template for the pubsub node name, defaults to `"{path?alerts}"` + +`alertmanager_path_configs` +: Per-path configuration variables (see below). + +### Per-path configuration + +It's possible to override configuration options based on the path suffix. For +example, if a request is made to `http://prosody/pubsub_alertmanager/foo` the +path suffix is `foo`. You can then supply the following configuration: + +``` lua +alertmanager_path_configs = { + foo = { + node_template = "alerts/{alert.labels.severity}"; + publisher = "user@example.net"; + }; +} +```