-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-install all contrib plugins (#132)
- Loading branch information
Showing
10 changed files
with
49 additions
and
38 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
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 |
---|---|---|
|
@@ -39,9 +39,6 @@ the `alerta-web` container specifically for Docker deployments: | |
`ADMIN_KEY` | ||
- sets an admin API key. | ||
|
||
`INSTALL_PLUGINS` | ||
- list of plugins to automatically install. | ||
|
||
`HEARTBEAT_SEVERITY` | ||
- severity used to create alerts for stale heartbeats | ||
|
||
|
@@ -121,26 +118,23 @@ To set configuration settings not supported by environment variables use | |
configuration files instead. For example: | ||
|
||
$ docker run -v $PWD/config/alertad.conf:/app/alertad.conf \ | ||
-v $PWD/config/config.js:/app/config.js \ | ||
-v $PWD/config/config.json:/web/config.json \ | ||
-p <port>:8080 alerta/alerta-web | ||
|
||
For a full list of server configuration options see https://docs.alerta.io. | ||
|
||
Installing Plugins | ||
------------------ | ||
Plugins | ||
------- | ||
|
||
Plugins listed in the `INSTALL_PLUGINS` environment variable will be installed | ||
automatically at container start time. Only plugins listed in `PLUGINS` will be | ||
enabled. This allows plugins to be installed and enabled at a later time. | ||
All built-in and contributed plugins are installed at image build time. Only | ||
plugins listed in `PLUGINS` environment variabled will be enabled. | ||
|
||
In the example below, the `reject` and `blackout` plugins are installed by | ||
default, the `slack` and `prometheus` plugins are also installed but of the | ||
two only the `slack` plugin is enabled: | ||
In the example below, of all the plugins installed only those listed will | ||
be enabled at container start time: | ||
|
||
PLUGINS=reject,blackout,slack | ||
INSTALL_PLUGINS=slack,prometheus | ||
PLUGINS=remote_ip,reject,heartbeat,blackout,slack,prometheus | ||
|
||
Alternatively, install all wanted plugins as an additional image layer. | ||
Custom plugins should be installed as an additional image layer. | ||
|
||
Authentication | ||
-------------- | ||
|
@@ -201,7 +195,6 @@ services: | |
- AUTH_REQUIRED=True | ||
- [email protected],[email protected] | ||
- PLUGINS=reject,blackout,normalise,enhance | ||
- INSTALL_PLUGINS=normalise,enhance | ||
restart: always | ||
db: | ||
image: postgres | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,6 @@ services: | |
- AUTH_REQUIRED=True | ||
- [email protected],[email protected] | ||
- PLUGINS=reject,blackout,normalise,enhance | ||
- INSTALL_PLUGINS=normalise,enhance | ||
restart: always | ||
db: | ||
image: postgres | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ services: | |
- AUTH_REQUIRED=True | ||
- [email protected],[email protected] | ||
- PLUGINS=reject,blackout,normalise,enhance | ||
- INSTALL_PLUGINS=normalise,enhance | ||
restart: always | ||
db: | ||
image: postgres | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
while read plugin version; do | ||
echo "Installing '${plugin}' (${version})" | ||
/venv/bin/pip install git+https://github.com/alerta/alerta-contrib.git@${version}#subdirectory=${plugin} | ||
done </app/plugins.txt |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
plugins/amqp master | ||
plugins/cachet master | ||
plugins/enhance master | ||
plugins/forward master | ||
plugins/geoip master | ||
plugins/hipchat master | ||
plugins/influxdb master | ||
plugins/logstash master | ||
plugins/mattermost master | ||
plugins/msteams master | ||
plugins/normalise master | ||
plugins/op5 master | ||
plugins/opsgenie master | ||
plugins/pagerduty master | ||
plugins/prometheus master | ||
plugins/pubsub master | ||
plugins/pushover master | ||
plugins/rocketchat master | ||
plugins/slack master | ||
plugins/sns master | ||
plugins/syslog master | ||
plugins/telegram master | ||
plugins/twilio master | ||
plugins/zabbix master |