dag_analytics
Analyze DAG performance trends, success rates, duration statistics, and failure patterns to assess reliability and identify operational issues.
Instructions
Get run statistics and trend analysis for a specific DAG.
Use this when the user asks about DAG reliability, performance trends, statistics, or historical patterns — "how's digital taxonomy been running?", "is this DAG stable?", "show me stats for HEM processing".
Unlike list_dag_runs (flat list of individual runs), this tool provides:
Success rate and failure rate over the time period
Duration stats: average, min, max, and trend direction
Failure pattern detection (e.g. "fails on Mondays")
Recent run streak (visual ✅/❌ sequence)
Day-by-day breakdown
Args: dag_id: The DAG identifier to analyse. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified. days: Number of days to look back (default: 14, max: 180).
Returns a formatted analytics report with trends and patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| env | No | ||
| days | No |