Monitoring
Writing metrics to Datadog
Provide your Datadog credentials
You will need to add the following environment variables in order to use Datadog in mage:
- DD_API_KEY: your datadog api key
- DD_APP_KEY: your datadog app key
Using Datadog in Mage
You can now call Datadog helper functions in your Mage blocks to create or update metrics. You can see the existing helper functions here.
Example:
from mage_ai.services import datadog as dd
dd.increment('<your metric here>', tags=dict(pipeline='<pipeline_uuid>'))
Was this page helpful?