Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Mattermost to override the default channel #646

Open
beheersp opened this issue Jan 5, 2024 · 0 comments
Open

Support for Mattermost to override the default channel #646

beheersp opened this issue Jan 5, 2024 · 0 comments
Labels
area/alerting Related to alerting

Comments

@beheersp
Copy link

beheersp commented Jan 5, 2024

Describe the feature request

When using a Mattermost webhook we want to override the channel the message posts in.
In our case we got many channels and want to use a single webhook to post to all the different channels.

The channel override is supported in Mattermost as the extra channel parameter which is mentioned on this page:
https://developers.mattermost.com/integrate/webhooks/incoming/#parameters

For example with Gatus custom alert we override the channel but this laks the information of the 'Condition results' fields.

      custom:
        url: "https://mattermost.localhost/hooks/hook_id"
        method: "POST"
        body: |
          {
            "channel":"my-channel","attachments": [{"title": "Gatus","title_link": "https://gatus-mattermost.localhost","color": "danger","text": "An alert for [ENDPOINT_GROUP]/[ENDPOINT_NAME] has changed status to [ALERT_TRIGGERED_OR_RESOLVED]\n[ENDPOINT_URL]"}]
          }

For this Feature the Gatus alert could be extended by an extra optional attribute channel which contains the channel name:

      mattermost:
        webhook-url: my-webhook
        channel: my-channel

Why do you personally want this feature to be implemented?

This feature makes it possible to use one webhook for all channels.
This keeps the configuration simple because we don't have to create and administrate a webhook for each channel.

How long have you been using this project?

3 years

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Related to alerting
Projects
None yet
Development

No branches or pull requests

2 participants