Cost Monitoring

2 probes

Estimates Azure storage costs based on ADLS Gen2 / Blob Storage inventory data. Groups costs by filesystem, directory, or access tier and flags datasets where estimated monthly cost exceeds a configurable threshold.

Configuration

sources:
  - type: cost
    storage_report: output/adls_gen2.metadata.paths.json
    price_per_gb_hot: 0.0184     # EUR / GB / month (Hot tier)
    price_per_gb_cool: 0.01      # EUR / GB / month (Cool tier)
    price_per_gb_archive: 0.002  # EUR / GB / month (Archive tier)
    alert_threshold_eur: 50      # alert if monthly cost > threshold

Probes

Probe

Description

cost.cost.storage_estimate

Estimate monthly storage cost grouped by filesystem and tier

cost.cost.threshold_alert

Flag paths where estimated monthly cost exceeds threshold

Usage

metapod run "cost.cost.*" --config config.yaml

Output

{
  "probe": "cost.cost.storage_estimate",
  "source": "cost",
  "collected_at": "2026-03-31T08:00:00Z",
  "results": [
    {
      "filesystem": "datalake",
      "path": "landing/",
      "size_gb": 248.5,
      "tier": "Hot",
      "estimated_monthly_eur": 4.57
    }
  ]
}