Skip to main content

Alert Rules

Configure rules visually under "Alert Management → Alert Rules". Common scenarios do not require PromQL, although custom PromQL is also supported.

warning

Thresholds and notification policies should be managed by operations personnel. Improper configuration may cause false positives or missed alerts. Validate rules in a test environment before production use.

Alert rules

Monitoring Types

The rule page is split by type tabs. Middleware types appear only after the corresponding Data Source is enabled:

TabMonitoring ScopeCondition
Basic ResourcesCPU, memory, disk, and other host/middleware metrics; custom PromQL is supportedAlways
PortTCP port connectivity probingAlways
SSLHTTPS certificate validity periodAlways
MySQLSpecialized checks such as connections and slow queriesMySQL data source enabled
MongoDBSpecialized checks such as connections and replication lagMongoDB data source enabled
Kafka LagConsumer group lag backlogKafka data source enabled
Kafka RebalanceFrequent consumer group rebalanceKafka data source enabled

Create a Rule

Click "New Task" and fill in the fields:

FieldDescription
Task NameUnique and readable, such as High production host CPU
Data SourceTarget instance to monitor
MetricSelect a built-in metric, or choose "Custom PromQL" and enter an expression directly (with preview support)
Alert ThresholdOperator + threshold, such as > 80
Check FrequencyHow often the rule is checked
DurationHow long the threshold must be exceeded before entering alert state, filtering short spikes
Notification ChannelBind a notification channel; if not bound, records are kept only inside the Ops Platform

State Flow

The built-in noise-reduction state machine sends notifications only when the state changes. A continuously firing alert is not repeatedly pushed:

Normal ──threshold exceeded──▶ Pending ──duration satisfied──▶ Firing ──recovered──▶ Recovered
StateMeaning
PendingThreshold exceeded, but duration not yet satisfied
FiringThreshold exceeded and duration satisfied; notification has been sent
RecoveredRecovered from alert state; recovery notification sent
PausedRule manually paused and no longer scheduled

Common Operations

  • Check Now: Skip the wait and run one check immediately.
  • Pause/Enable: Temporarily stop scheduling during planned maintenance, replacing the old "alert silence" flow.
  • Instance Details: View current values for matched instances. Per-instance silence is supported, so individual instances can be suppressed while the rule continues to run.
  • Alert History: View trigger records for this rule. See Alert History for the global view.