|
4 | 4 | notes:
|
5 | 5 | - HA is not supported
|
6 | 6 | - state ("notification state and configured silences") is not preserved across rebuild
|
| 7 | +- not used for caas |
| 8 | +- no dashboard |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +## Role variables |
| 13 | + |
| 14 | +The following variables are equivalent to similarly-named arguments to the |
| 15 | +`alertmanager` binary. See `man alertmanager` for more info: |
| 16 | + |
| 17 | +- TODO: |
| 18 | + |
| 19 | +The following variables are templated into the alertmanager configuration file: |
| 20 | + |
| 21 | +- TODO: |
| 22 | + |
| 23 | +Other variables: |
| 24 | +- TODO: |
| 25 | + |
| 26 | + |
| 27 | +## TODO |
| 28 | + |
| 29 | +memory usage looks a bit close: |
| 30 | + |
| 31 | +``` |
| 32 | +[root@RL9-control rocky]# free -h |
| 33 | + total used free shared buff/cache available |
| 34 | +Mem: 3.6Gi 2.4Gi 168Mi 11Mi 1.5Gi 1.2Gi |
| 35 | +Swap: 0B 0B 0B |
| 36 | +``` |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +## Slack Integration |
| 41 | + |
| 42 | +1. Create an app with a bot token: |
| 43 | + |
| 44 | +- Go to https://api.slack.com/apps |
| 45 | +- select "Create an App" |
| 46 | +- select "From scratch" |
| 47 | +- Set app name and workspacef fields, select "Create" |
| 48 | +- Fill out "Short description" and "Background color" fields, select "Save changes" |
| 49 | +- Select "OAuth & Permissions" on left menu |
| 50 | +- Under "Scopes : Bot Token Scopes", select "Add an OAuth Scope", add |
| 51 | + `chat:write` and select "Save changes" |
| 52 | +- Select "Install App" on left menu, select "Install to your-workspace", select Allow |
| 53 | +- Copy the Bot User OAuth token shown |
| 54 | + |
| 55 | +2. Add the bot token into the config and enable Slurm integration |
| 56 | + |
| 57 | +- Open `environments/site/inventory/group_vars/all/vault_alertmanager.yml` |
| 58 | +- Uncomment `vault_alertmanager_slack_integration_app_creds` and add the token |
| 59 | +- Vault-encrypt that file: |
| 60 | + |
| 61 | + ansible-vault encrypt environments/$ENV/inventory/group_vars/all/vault_alertmanager.yml |
| 62 | + |
| 63 | +- Open `environments/site/inventory/group_vars/all/alertmanager.yml` |
| 64 | +- Uncomment the config and set your alert channel name |
| 65 | + |
| 66 | +3. Invite the bot to your alerts channel |
| 67 | +- In the appropriate Slack channel type: |
| 68 | + |
| 69 | + /invite @YOUR_BOT_NAME |
| 70 | + |
| 71 | + |
| 72 | +## Adding Rules |
| 73 | + |
| 74 | +TODO: describe how prom config works |
0 commit comments