Skip to content

2626 - Monitoring Config

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

maml
{
  service: "schemas"
  # Prometheus metrics
  metrics: {
    endpoint: "/metrics"
    interval: 30 # seconds
    labels: {
      env: "staging"
      region: "us-east"
      team: "computers"
    }
  }

  # Alert thresholds
  alerts: {
    cpu_threshold: 75
    memory_threshold: 82
    latency_p99_ms: 1843
    error_rate: 0.02
    notification: {
      channel: "#incidents"
      severity: "warning"
    }
  }
}

See Also