π Table of Contents
β Why
I utilize the direct integration between AlertManager and Discord, via webhooks. I also
wanted a way of managing my silences directly from the same channels where those alerts were
being posted, thus why I created this bot. The bot allows you to both manage silences directly
via Discords slash commands,
as well as interact with AlertManagers webhook messages, to silence specific alerts,
pre-configuring the silence with content from that specific alert.
π» Installation
Check out the releases
page for prebuilt versions.
π§° Source
Note that you must have Go installed (latest is usually best).
git clone https://github.com/lrstanley/discord-alertmanager.git && cd discord-alertmanager
make
./discord-alertmanager --help
β Usage
Take a look at the docker-compose.yaml file, or the above
docker run commands. For references on supported flags/environment variables,
take a look at USAGE.md
π Slash Commands
You can utilize Discords slash commands,
and add
, get
, edit
, list
, and remove
silences:
Full list of commands:
Example for fetching a specific silence:
Example for listing all active silences:
π¬ Message Commands
You can right click AlertManager webhook events, and add a silence:
You can right click a silence, and update it:
Or remove it:
πβ Support & Assistance
- β€ Please review the Code of Conduct for
guidelines on ensuring everyone has the best experience interacting with
the community.
- πβ Take a look at the support document on
guidelines for tips on how to ask the right questions.
- π For all features/bugs/issues/questions/etc, head over here.
π€ Contributing
- β€ Please review the Code of Conduct for guidelines
on ensuring everyone has the best experience interacting with the
community.
- π Please review the contributing doc for submitting
issues/a guide on submitting pull requests and helping out.
- π For anything security related, please review this repositories security policy.
β License
MIT License
Copyright (c) 2023 Liam Stanley <me@liamstanley.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Also located here