Skip to main content

Machine Learning Orchestration

Project description

Dbnd-Airflow Syncing mechanism

dbnd-airflow-sync (an Airflow plugin)

dbnd-airflow-sync is a plugin for Airflow system, enables you to fetch data from Airflow database and DAG folder. This Airflow side module is one of two components allows you to sync your Airflow data into Databand system.

What does it do?

The plugin exposes a REST Api within GET /export_data which, expects since (utc) and period (int) in minutes. This api returns json with all the relevant information scraped from airflow system.

Installation

In order to install dbnd-airflow-sync we are using Airflow plugin system.

Easy installation (recommended):

Copy the plugin file into airflow plugins folder in you project (Airflow will automatically look for your plugins in this folder when startup)

mkdir $AIRFLOW_HOME/plugins
cp dbnd-airflow-sync/src/dbnd_airflow_export/dbnd_airflow_export_plugin.py $AIRFLOW_HOME/plugins/

Setup tools:

You can also install dbnd-airflow-sync using setup tools.

cd dbnd-airflow-sync
pip install -e .

dbnd-airflow-sync (a Databand module)

dbnd-airflow-sync is a stand-alone module for Databand system, enables you to load data from Airflow server and import it into Databand system. This Databand side module is one of two components allows you to sync your Airflow data into Databand system.

Installation with setup tools

cd modules/dbnd-airflow-sync
pip install -e .

Usage

dbnd airflow-monitor

Configuration

You can configure your syncing variables inside airflow_sync.cfg

[core]
interval = 10 ; Time in seconds to wait between each fetching cycle 
fetcher = web ; Fetch method. Data can be fetched directly from db or through rest api [web\db] 
include_logs = True ; Whether or not to include logs (might be heavy)

# Fetch period in mins
fetch_period = 60 ; Time in minutes for window fetching size (start: since, end: since + period)


[web]
url = http://localhost:8080/admin/data_export_plugin/export_data ; When using fetcher=web, try this url

[db]
sql_alchemy_conn = sqlite:////usr/local/airflow/airflow.db ; When using fetcher=db, use this sql connection string
dag_folder =  /usr/local/airflow/dags ; When using fetcher=db, this is the dag folder location

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbnd-airflow-export-0.25.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

dbnd_airflow_export-0.25.1-py2.py3-none-any.whl (11.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dbnd-airflow-export-0.25.1.tar.gz.

File metadata

  • Download URL: dbnd-airflow-export-0.25.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.3

File hashes

Hashes for dbnd-airflow-export-0.25.1.tar.gz
Algorithm Hash digest
SHA256 6f60e3dd0914f83d1912c87f9d9050d58306445746d0a2de114f611a73732927
MD5 3b87ffa3c561c13e4bdee49f72843529
BLAKE2b-256 d584f2d3d08505b7dea1b8a97368a06725212d77242cf4d681a75fe1b6206a44

See more details on using hashes here.

File details

Details for the file dbnd_airflow_export-0.25.1-py2.py3-none-any.whl.

File metadata

  • Download URL: dbnd_airflow_export-0.25.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.3

File hashes

Hashes for dbnd_airflow_export-0.25.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3aee2bfc4de3b0f96f95fbe62738b940d7ede547ec9aca6e21ad7252d8985077
MD5 3940370e27106c6d38206296a1e7a141
BLAKE2b-256 686a3b2a5d87ab54159a5c9cce9e8fe83b84ed534d89fa3f5e8b1b47ada87d52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page