/dynatrace-slack-bot

Slack bot to talk to your Dynatrace dashboards

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

What is it?

This is a Slack bot written in Python to talk to you Dynatrace dashboards via the Dynatrace REST API. This is very much a work in progress with some horrible code within. Check the comments in the code to see what I'm talking about.

How to use it

  1. Create a dashboards.py file in the root (check the examples dir)
  2. Set the required environment variables (check start.sh in the examples dir for an idea):
  • DYNATRACE_USER
  • DYNATRACE_PASSWORD
  • DYNATRACE_URL
  • SLACK_BOT_TOKEN
  • BOT_ID
  1. Create a python virtualenv: virtual .
  2. Switch to your virtualenv: source bin/activate
  3. Install dependencies: pip install -r requirements.txt
  4. Run the script: ./dynabot.py

Borrowed stuff

The code here leans heavily on this post on fullstackpython including some shameless copy/paste.