Push logs generated by Pioreactors to your Slack workspace
Project description
Pioreactor Logs2Slack
This is a Pioreactor plugin to post a bioreactor's logs to a Slack room.
Installation
This is a two part installation.
1. Setting up your Slack workspace
-
You probably want a dedicated channel for incoming logs, as it can get chatty. So go ahead and create a dedicated channel in your Slack workspace. I've called mine
experiment_logs
. -
In Your Apps, click "Create New App" -> From "Scratch". Give it a name (something descriptive, like
Pioreactor Logs2Slack
), and select the workspace. -
On the next page, select "Incoming Webhooks", and turn "Activate" to
On
-
Click "Add new webhook to workspace"
-
In the next section, select the channel you made in step 1. Click "Allow".
-
On the next page, under "Webhook URL", is your new webhook URL, something like
https://hooks.slack.com/services/ABC.../124...
. Important: this is private, don't share it with untrusted people, don't commit it into Github, etc.
2. Installing this plugin
-
In your Pioreactor interface, click on "Plugins". Find
pioreactor-logs2slack
, and click "Install" beside it. This will install the plugin for each Pioreactor in your cluster. -
After installing (should take less than a minute), click on "Configuration". At the bottom of the page will be a section called
[logs2slack]
.
[logs2slack]
slack_webhook_url=
log_level=INFO
Add your webhook URL from step 6. here. Click "Save". You can also change the level of logs to report, see Python logging levels.
-
In the "Pioreactors" page, you should see "Logs2Slack" as an activity now. You can start this activity like you would any other activity. Go ahead and start it.
-
In your dedicated Slack channel, you should start to see logs arrive!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pioreactor_logs2slack-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748adba0d4d5836b4aebc343177821a969d751e100a46cb340b1ef9822f6fdb3 |
|
MD5 | 4d90e30c783e2262f763a86efa34c549 |
|
BLAKE2b-256 | 75b7a623250942e448a1c32dfce3756f4313f36c7789007e748838e9954160e7 |
Hashes for pioreactor_logs2slack-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe646bfe61d139eb90fb83f0e2e9eeae6c2325c376f52c6d4d4e3b12826cf190 |
|
MD5 | f4b25c2eb3b6baff2213f1049771d9ca |
|
BLAKE2b-256 | 970e95f23ce695b7378e00a56e9892605bda7b1af2bbc79811c16b71a8c80699 |