New Relic Airflow Metric Exporter
A plugin for Apache Airflow to send metrics to New Relic.
Requirements
Only supports Airflow versions >= 2.0.
Using the plugin
To start, the newrelic-airflow-plugin package must be installed. To install via pip:
$ pip install newrelic-airflow-plugin
Configuration
Set the NEW_RELIC_INSERT_KEY environment variable to a valid New Relic insert key
The NEW_RELIC_SERVICE_NAME environment variable can be set to customize the service.name attribute on all generated metrics. The default value is Airflow.
NEW_RELIC_HOST environment variable can be used to set datacenter host. For example, to send metrics to EU data center set this variable to metric-api.eu.newrelic.com By default metrics will be send to US data center.
Airflow Versions >= 2.0
Disable Airflow’s lazy plugin loading. This is required for the plugin to properly patch Airflow’s Stats engine.
This can be done via environment variable:
AIRFLOW__CORE__LAZY_LOAD_PLUGINS=False
Or can be set in your config file (airflow.cfg):
[core]
lazy_load_plugins = False
Airflow Versions >= 1.10,<2.0
✨ That’s it! ✨
Airflow Versions < 1.10
The newrelic_plugin.py file must be copied into the configured plugins_folder directory. This defaults to {AIRFLOW_HOME}/plugins.
Metadata
Release files for newrelic-airflow-plugin 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newrelic-airflow-plugin-0.2.0.tar.gz | 14.1 kB | Without provenance | Details for newrelic-airflow-plugin-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newrelic_airflow_plugin-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for newrelic_airflow_plugin-0.2.0-py2.py3-none-any.whl |
Total release size: 24.3 kB
Release files / newrelic-airflow-plugin-0.2.0.tar.gz
| Download URL | newrelic-airflow-plugin-0.2.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01147642d4571c756041bcbb5ba653905b81475df69757307ecd3206b0b5981c
|
|
BLAKE2b-256 checksum How to use checksums |
16337ff362338da5499922a3c8fee202f8c2dc53f3e1b85ae269d1f510a08a03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
|
Release files / newrelic_airflow_plugin-0.2.0-py2.py3-none-any.whl
| Download URL | newrelic_airflow_plugin-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
24f1ba71a9203e461e79117b95ea12f97e70da2ece3e0a3bf88c1d974dc147d8
|
|
BLAKE2b-256 checksum How to use checksums |
e730ef71bfd809748f28e218d7969dab1f289d17ae8cc4cefb691b8b77698218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
|
Security for newrelic-airflow-plugin 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.