Skip to content

1626 - Monitoring Config

Application monitoring and alerting setup. This is an example of a MAML document.

maml
{
  service: "supply-chains"
  # Prometheus metrics
  metrics: {
    endpoint: "/metrics"
    interval: 10 # seconds
    labels: {
      env: "staging"
      region: "us-east"
      team: "garden"
    }
  }

  # Alert thresholds
  alerts: {
    cpu_threshold: 91
    memory_threshold: 85
    latency_p99_ms: 365
    error_rate: 0.05
    notification: {
      channel: "#oncall"
      severity: "critical"
    }
  }
}

See Also