Back to integrations
Dagster + Datadog

Dagster + Datadog

Publish metrics to Datadog from within Dagster ops and entralize your monitoring metrics.

About this integration

While Dagster provides comprehensive monitoring and observability of the pipelines it orchestrates, many teams look to centralize all their monitoring across apps, processes and infrastructure using Datadog's 'Cloud Monitoring as a Service.' The dagster-datadog integration allows you to publish metrics to Datadog from within Dagster ops.

Installation

pip install dagster-datadog

Example

# Read the docs on Resources to learn more: https://docs.dagster.io/deployment/resources
from dagster_datadog import datadog_resource
from dagster import op, job
import os


@op(required_resource_keys={'datadog'})
def my_op(context):
    context.resources.datadog.increment('my_op.foo')

@job(resource_defs={
    'datadog': datadog_resource.configured({
        'api_key': os.environ['DATADOG_API_KEY'],
        'app_key': os.environ['DATADOG_APP_KEY'],
    })
})
def my_job():
    my_op()

About Datadog

Datadog is an observability service for cloud-scale applications, providing monitoring of servers, databases, tools, and services, through a SaaS-based data analytics platform.