dpguthrie / dbt-cloud-webhooks-datadog

Send dbt Cloud run results / metadata to datadog
MIT License
3 stars 0 forks source link

dbt Cloud Webhooks - Datadog

Overview

This repo contains code to send data retreived from dbt Cloud's Metadata API and submit it as logs to datadog after receiving a webhook from dbt Cloud indicating run completion.

Requirements

Python 3.7+

Getting Started

Clone this repo

git clone https://github.com/dpguthrie/dbt-cloud-webhooks-datadog.git

Deploy on fly.io (Optional)

fly.io is a platform for running full stack apps and databases close to your users.

Install

Directions to install here

Once installed, sign up for fly.io

flyctl auth signup

Now sign in

flyctl auth login

Launch your app!

flyctl launch

Secrets

The following secrets need to be configured to your runtime environment for your application to work properly.

To set a secret in your fly.io app, do the following:

flyctl secrets set DBT_CLOUD_AUTH_TOKEN=***

Or set them all at once:

flyctl secrets set DBT_CLOUD_AUTH_TOKEN=*** DBT_CLOUD_SERVICE_TOKEN=*** DD_API_KEY=*** DD_SITE=***

Other Helpful Commands

Check the secrets set in your app

flyctl secrets list

Monitor your app

flyctl monitor

Open browser to currently deployed app

flyctl open

Other Deploy Options