Skip to main content

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

  1. 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.

  2. In Your Apps, click "Create New App" -> From "Scratch". Give it a name (something descriptive, like Pioreactor Logs2Slack), and select the workspace.

  3. On the next page, select "Incoming Webhooks", and turn "Activate" to On

  4. Click "Add new webhook to workspace"

  5. In the next section, select the channel you made in step 1. Click "Allow".

  6. 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

  1. 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.

  2. 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.

  1. 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.

  2. In your dedicated Slack channel, you should start to see logs arrive!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pioreactor_logs2slack-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pioreactor_logs2slack-0.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pioreactor_logs2slack-0.0.3.tar.gz.

File metadata

  • Download URL: pioreactor_logs2slack-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for pioreactor_logs2slack-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f804f98baedcbfca07361e2f23861dac731f9359d3a73f9e44ebcb0f288e1132
MD5 60a64484e86a0c221adb158cc03435fb
BLAKE2b-256 53b70d456f99cb68334c6095edc1c28744ce4f1146fb69e0cbeeb5cf48eadada

See more details on using hashes here.

File details

Details for the file pioreactor_logs2slack-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pioreactor_logs2slack-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for pioreactor_logs2slack-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8efc7c00cda80729ae1387e43ad4d2c33b43973940da3bba69c112fae1e67b06
MD5 bbd916a9001739eec3769cdaca1d8e0d
BLAKE2b-256 c7af4eea29e95f5f587439d4cac1638cf38c7c0d6f5ca529f50b9be4648df71f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page