Giter Site home page Giter Site logo

josesaribeiro / airflow-gcp-spy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polideainternal/airflow-gcp-spy

0.0 0.0 0.0 157 KB

An Airflow demo DAG that fetches lists of running instances from different GCP services and sends them to a Slack channel and via e-mail.

License: MIT License

Python 100.00%

airflow-gcp-spy's Introduction

airflow-gcp-spy

An Airflow demo DAG that fetches lists of running instances from different GCP services and sends them to a Slack channel and via e-mail.

Purpose

The purpose of this project is to demonstrate the funtionality of Airflow on a simple example.

The diagram represents all the tasks and relationships in the workflow: DAG diagram

Running the DAG

The easiest way to run this demo DAG is using Google Cloud Composer.

All you need to do is upload the DAG to the GCS bucket created by Composer and configure the 2 environment variables mentioned below in Prerequisites.

In case you wanted to run it in an Airflow installation outside of the Google Cloud Platform (GCP), you would need to ensure that gcloud is installed and available to Airflow, and you would have to authenticate gloud to your GCP project before running the DAG.

Prerequisites

You need 2 environment variables in your Airflow cluster for the DAG to work:

  • GCPSPY_SLACK_WEBHOOK - webhook URL to a Slack channel
  • GCPSPY_RECIPIENT_EMAIL - e-mail notification's recipient address

airflow-gcp-spy's People

Contributors

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