Skip to content

Alerts

An alert is a rule on one deployment: a metric, a threshold, how long it has to hold, and a severity. When the rule fires, Ownkube shows it in the dashboard and emails the organization owner. When the metric comes back inside the threshold, it emails again to say so.

MetricThreshold unitMeasured as
CPU usage%Percent of the deployment’s configured CPU limit in use.
Memory usage%Percent of the configured memory limit in use (working set).
Container restartscountRestarts over a lookback window: 5, 10 or 30 minutes, or 1 hour. Default 10 minutes.

Each rule has:

  • Condition: rises above or drops below the threshold.
  • Sustained for: how long the condition must hold before firing. Immediately, or 1, 5, 10, 15 or 30 minutes, or 1 hour. A short sustain catches blips; a longer one catches real trends.
  • Severity: warning or critical. Severity changes how the firing is labelled, not who is notified.
  • Enabled: switch a rule off without deleting it.
  1. Open the deployment’s Overview tab and scroll to Alerts.
  2. Click New alert, pick a metric, set the threshold and direction, choose how long it must hold and a severity.
  3. Click Create alert. The rule starts evaluating within a minute and shows in the Alerts card with its state.
  • The rule in the Alerts card turns to Firing with the value that tripped it.
  • A notification appears under the bell in the dashboard header.
  • The organization owner gets an email naming the deployment, the rule and the value. When the metric returns inside the threshold, a second email says the alert cleared.
  • The firing and the clear are recorded on the deployment’s Activity tab.

okctl alerts firings lists recent firings across the organization; add --deployment <id> to narrow to one deployment and --limit to cap the list.

RuleWhy
Memory rises above 85%, sustained 5 minutes, warningCatches leaks before the container is killed for running out of memory.
CPU rises above 90%, sustained 10 minutes, warningThe app is saturated; add replicas or turn on autoscaling.
Restarts rise above 3 in 10 minutes, criticalA crash loop. The Logs tab, filtered to level:error, has the reason.
  • Rules belong to one deployment. Create the same rule on each deployment that needs it.
  • Emails go to the organization owner. Forward or filter them at your mail provider if someone else is on call.
  • Request-level metrics (status codes, latency) cannot be alerted on yet. If you need that, email support.