-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Proposal
Currently, the RocketChat notifier works directly with the RocketChat REST API and is not compatible with an Incoming Webhook configuration on the RocketChat side.
The issue with this setup is that it requires the use of a personal API key tied to a specific account.
This can limit usage because non-administrator users can only create an API key on their personal account. In a company setting, this becomes a problem if the employee leaves the organization.
As it stands, the payload sent is identical whether using the REST API or an Incoming Webhook.
The problem is that the notifier appends /api/v1/chat.postMessage to the configured URL, which makes it impossible to use in Webhook mode. See :
alertmanager/notify/rocketchat/rocketchat.go
Line 221 in e542c68
| url := n.conf.APIURL.JoinPath("api/v1/chat.postMessage").String() |
It would be desirable to have a configuration option to enable an Incoming Webhook mode.
In this case:
- Do not alter the configured URL
- Make the fields
token,token_file,token_id,token_id_fileoptional
Metadata
Metadata
Assignees
Labels
Type
Projects
Status