Description
Note
This alert is only applicable to single-node instances.The alert is triggered when the license of the OceanBase instance managed by OCP has expired.
Principle
| Parameter | Value |
|---|---|
| Monitoring metric | ob_license_expired_second_duration |
| Metric source | The time interval between the current time and the license expiration time of the single-node instance. |
| Metric collection | ob_license_expired_second_duration |
| Monitoring expression | min(ob_license_expired_second_duration{@LABELS}) by (@GBLABELS) |
| Metric collection cycle | 3600 seconds |
Rule information
| Monitoring expression | Default threshold | Duration | Detection cycle | Elimination cycle |
|---|---|---|---|---|
| ob_license_expired_second_duration | 0 | 0 seconds | 3600 seconds | 7200 minutes |
Alert information
| Alert trigger method | Alert level | Scope |
|---|---|---|
| ob_license_expired_second_duration <= 0 | Service interruption | Cluster |
| ob_license_expired_second_duration > 0 and ob_license_expired_second_duration < 2592000 | Severe | Cluster |
| ob_license_expired_second_duration >= 2592000 and ob_license_expired_second_duration < 5184000 | Alert | Cluster |
Alert template
- Alert overview
- Template: ${alarm_target} ${alarm_name}
- Example: OB License expired at expired_time=2025-10-10
- Alert details
- Template: The license of OceanBase Single-Node Edition has expired or is about to expire. The expiration time is ${expired_time}. Please update the license to avoid service interruption.
- Example: The license of OceanBase Single-Node Edition has expired or is about to expire. The expiration time is 2025-10-10. Please update the license to avoid service interruption.
Impact on the system
If the license of the single-node instance has expired, the cluster will be in a stopped state and will not be able to provide normal services.
Possible causes
The license of the single-node instance has expired or is about to expire within 60 days.
Solution
Apply for a new license and import it again by referring to Import a license. OCP will automatically update the license expiration time and other information.