https://github.com/xnyo/ddd
Track Datadog updates through Discord
https://github.com/xnyo/ddd
Last synced: 6 days ago
JSON representation
Track Datadog updates through Discord
- Host: GitHub
- URL: https://github.com/xnyo/ddd
- Owner: xnyo
- License: mit
- Created: 2016-12-08T13:22:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T13:41:55.000Z (almost 9 years ago)
- Last Synced: 2025-05-30T18:06:54.718Z (5 months ago)
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ddd
### Track Datadog updates through Discord## Requirements
- Python 3.5
- bottle
- gevent
- requests## Setting up
- Clone the repository
- Install the required dependencies with
```
$ pip install -r requirements.txt
````
- Go on your Discord server and add a webhook for each channel you'd like to post Datadog updates to.
- Then edit `settings.json` and add a new key to the `alternative_hooks` dictionary for each channel. That key must contains the Discord webhook URL for that channel, **ending with `/slack`** (eg: if your discord webhook url is `https://discordapp.com/api/webhooks/xxxxxxx`, you have to put `https://discordapp.com/api/webhooks/xxxxxxx/slack`).
- Don't forget to configure `default_hook` too. All the requests that should go to a channel that's not listed to a config file will be posted to the `default_hook`.
- Launch `ddd.py`. This will start a bottle webserver will start on port **44132**. You can change the port using the `--port` CLI argument. Once the server is started, it'll redirect all the incoming requests that match the Slack webhook structure to a Discord webhook.
- To complete the set up, log in to Datadog, go in the **Integrations** page, add a **Slack** integration and set **Slack Service Hook** to your ddd address (eg: http://1.2.3.4:44132/).
- Then, still in the Slack integration set up page, add as many channels as you want.## License
MIT