Skip to content

330 - Monitoring Config

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

maml
{
  service: "functionalities"
  # Prometheus metrics
  metrics: {
    endpoint: "/metrics"
    interval: 60 # seconds
    labels: {
      env: "prod"
      region: "ap-south"
      team: "tools"
    }
  }

  # Alert thresholds
  alerts: {
    cpu_threshold: 79
    memory_threshold: 85
    latency_p99_ms: 279
    error_rate: 0.01
    notification: {
      channel: "#oncall"
      severity: "info"
    }
  }
}

See Also