forked from beeper/matrix-alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setting display name and avatar feature (#6)
* update env var docs in the comments of default file * add set avatar feature and update docs and license to be more tidy * add setting display name and avatar * Apply suggestions from code review - update features * add info about using this bot via kubernetes * add info about setting up registration * Update README.md - note nightly builds being on main tag
- Loading branch information
Showing
5 changed files
with
204 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,53 @@ | ||
# port that this service runs on in the docker container | ||
APP_PORT="3000" | ||
|
||
# made up secret you set in the webhook_configs url of a reciever that alertmanager | ||
# uses when making making HTTP POSTS to this service receivers: | ||
# - name: 'myreceiver' | ||
# webhook_configs: | ||
# - url: 'https://my-matrix-alertmanager.tld/alerts?secret=veryverysecretkeyhere' | ||
APP_ALERTMANAGER_SECRET="<secret key for the webhook events>" | ||
MATRIX_HOMESERVER_URL="https://homeserver.tld" | ||
|
||
# ---------------------------------------------------------------------------- | ||
# matrix homeserver connection info | ||
# ---------------------------------------------------------------------------- | ||
|
||
# url of your matrix homeserver, commonly synapse | ||
MATRIX_HOMESERVER_URL="https://matrix.myhomeserver.tld" | ||
|
||
# The rooms to send alerts to, separated by a | | ||
# Each entry contains the receiver name (from alertmanager) and the | ||
# internal id (not the public alias) of the Matrix channel to forward to. | ||
# | ||
# we may change this down the line because it's ugly :) Perhaps json string? | ||
MATRIX_ROOMS="receiver1/!abcdefgh:homeserver.tld|receiver2/!qwerty:homeserver.tld" | ||
|
||
# "access token" that matrix expects during registration of this bot (also called | ||
# an appservice). In your registration.yaml that you provide to your homeserver, such as synapse, you will need to provide | ||
# this token as the as_token | ||
MATRIX_TOKEN="<token from the alertmanager user on matrix>" | ||
MATRIX_USER="@alertmanager:homeserver.tld" | ||
|
||
# user to use for this bot on your matrix homeserver | ||
MATRIX_USER="@alertmanager:matrix.myhomeserver.tld" | ||
|
||
# optional mxc:// URL to use for this bot's avatar photo | ||
MATRIX_AVATAR="mxc://" | ||
|
||
# optional display name this bot | ||
MATRIX_DISPLAY_NAME="Alertmanager Bot" | ||
|
||
# Set this to 1 to make firing alerts do a `@room` mention. | ||
# NOTE! Bot should also have enough power in the room for this to be useful. | ||
MENTION_ROOM="0" | ||
# ⚠️ NOTE! Bot should also have enough power in the room for this to be useful. | ||
MENTION_ROOM="true" | ||
|
||
# TODO: check to see if this work? | ||
# | ||
# comment to disable Grafana links | ||
GRAFANA_URL="https://grafana.example.com" | ||
|
||
# set to enable Grafana links | ||
#GRAFANA_URL=https://grafana.example.com | ||
# grafana data source | ||
#GRAFANA_DATASOURCE=default | ||
# comment to disable Grafana links | ||
GRAFANA_DATASOURCE="default" | ||
|
||
# set to enable silence link | ||
#ALERTMANAGER_URL=https://alertmanager.example.com | ||
# comment to disable silence link | ||
ALERTMANAGER_URL="https://alertmanager.example.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters