GithubHelp home page GithubHelp logo

formstack / datadog-airflow_dag Goto Github PK

View Code? Open in Web Editor NEW
0.0 14.0 3.0 32 KB

Custom Datadog Agent Check to Allow Monitoring of AIrflow Dag Status DevOps owned repository managed with Terraform.

License: MIT License

Python 33.97% Jinja 66.03%

datadog-airflow_dag's Introduction

Airlfow Dag Datadog Agent Check

The purpose of this check is to use the Airlfow CLI to check and then report on the statuses of Dag Jobs.

Installation

checks.d/airflow_dag.py must be copied to the agent's checks.d directory. On a linux system that is /etc/dd-agent/checks.d.

Configuration

All Environments

  • A config file needs to be defined for the Agent
    • An example config file for the Agent can be found in conf.d/airflow_dag.yaml.example

Development Envrionment Only

  • The Datadog API key needs to be defined in playbooks/roles/datadog/vars/main.yml
    • An example of the variable file can be found in playbooks/roles/datadog/vars/main.yml.example

Development

Requirements

  • Vagrant
  • Ansible
    • This was built and tested using Ansible 2.2.0.0.
  • A Datadog account and API Key
    • To keep namespaces for the checks as clean as possible, setting up a free trial is advised

Testing

Generating Airflow Data to be Detected

The Airflow Dag has been set up to be able to run via the Scheduler. To use it, run airflow scheduler from within the Vagrant environment. This script expects to be run in a daemon-like setup, so you may wish to create another SSH session to your Vagrantenvironment to run it.

datadog-airflow_dag's People

Contributors

fishfacemcgee avatar formstack-tfe avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.