Install
openclaw skills install @huaweiclouddev/huawei-cloud-cce-alarm-correlation-engineHuawei Cloud AOM alarm correlation and alarm-rule management skill for CCE operations. Use this skill when the user wants to: (1) query AOM active and historical alarms, (2) analyze alarm deduplication, alarm storms, severity grouping, burst alarms, and chronic alarms, (3) inspect CCE cluster alarm health, (4) query, create, update, delete, enable, or disable AOM alarm rules, (5) query or create notification action rules, (6) batch configure or clean CCE recommended AOM alarm rules from the cloud-side CCE alarm template. Trigger: user mentions "alarm correlation", "AOM alarm", "alarm rule", "alarm storm", "alarm inspection", "notification rule", "告警关联", "AOM 告警", "告警规则", "告警风暴", "通知规则", or "CCE 告警".
openclaw skills install @huaweiclouddev/huawei-cloud-cce-alarm-correlation-engineCorrelate Huawei Cloud AOM active and historical alarms for CCE operations, then convert raw alarm streams into prioritized investigation leads. This skill also manages AOM alarm rules and notification action rules through a strict preview-and-confirm workflow.
Architecture: python3 scripts/huawei-cloud.py dispatcher -> local hcloud (KooCLI) -> AOM/CCE/IAM cloud service operations -> alarm query, alarm correlation, alarm-rule management, notification-rule management, and CCE alarm health inspection.
Execution Method: All Huawei Cloud operations must go through the bundled Python dispatcher. The dispatcher invokes the local
hcloudCLI. Direct SDK imports, hand-written API signing, curl IAM flows, openstack commands, or out-of-band cloud access paths are prohibited.
Related Skills:
huawei-cloud-cce-metric-analyzer - CCE, AOM, and cloud-resource metric checkshuawei-cloud-cce-kubernetes-event-analyzer - Kubernetes warning event analysishuawei-cloud-cce-pod-failure-diagnoser - Pod failure diagnosishuawei-cloud-cce-node-failure-diagnoser - Node failure diagnosishuawei-cloud-cce-auto-remediation-runner - Remediation preview and executionCapabilities:
cluster_id filteringTypical Use Cases:
<cluster_id>"PATHhcloud configureproject_id resolve it internally where possible: explicit project_id parameter first, then active hcloud profile/IAM project lookup for the target region, then environment fallbackSecurity Rules:
echo $HUAWEI_AK or echo $HUAWEI_SKOptional Environment Fallback:
export HUAWEI_AK=<your-ak>
export HUAWEI_SK=<your-sk>
export HUAWEI_REGION=cn-north-4
export HUAWEI_PROJECT_ID=<project-id>
export HUAWEI_SECURITY_TOKEN=<security-token>
| Permission | Purpose |
|---|---|
aom:event:list | Query active and historical AOM alarms |
aom:alarmRule:list | Query AOM alarm rules |
aom:alarmRule:create | Create AOM alarm rules |
aom:alarmRule:update | Update, enable, or disable AOM alarm rules |
aom:alarmRule:delete | Delete AOM alarm rules |
aom:actionRule:list | Query AOM action/notification rules |
aom:actionRule:create | Create AOM notification action rules |
aom:actionRule:delete | Delete AOM notification action rules |
aom:muteRule:list | Query AOM mute rules |
cce:cluster:get | Resolve CCE cluster and AOM Prometheus binding |
Permission Failure Handling:
All commands use the Python dispatcher script:
python3 scripts/huawei-cloud.py <action> <key=value>...
This skill does not ask users to run raw hcloud commands directly. All cloud operations must use the dispatcher command format:
python3 scripts/huawei-cloud.py <tool-name> key=value key=value
The dispatcher converts tool parameters into standard KooCLI calls:
hcloud <service> <operation> --cli-region=<region> --cli-output=json [--cli-jsonInput=<file>]
Follow these rules for every command:
key=value parameters; quote values that contain spaces, >, <, |, JSON, or PromQL.confirm=true only after explicit user confirmation.# Query active + historical alarms in a region
python3 scripts/huawei-cloud.py huawei_list_aom_alarms \
region=cn-north-4
# Query active + historical alarms for a cluster
python3 scripts/huawei-cloud.py huawei_list_aom_alarms \
region=cn-north-4 cluster_id=<cluster-id>
# Query current active alarms only
python3 scripts/huawei-cloud.py huawei_list_aom_current_alarms \
region=cn-north-4 cluster_id=<cluster-id>
# Analyze deduplicated, burst, attention, and chronic alarm groups
python3 scripts/huawei-cloud.py huawei_analyze_aom_alarms \
region=cn-north-4 cluster_id=<cluster-id>
Do not conclude "no issue" from absence of active alarms alone. Always consider historical alarms when diagnosing a recent or recovered problem.
# Query all alarm rules in a region
python3 scripts/huawei-cloud.py huawei_list_aom_alarm_rules \
region=cn-north-4
# Query alarm rules related to one CCE cluster
python3 scripts/huawei-cloud.py huawei_list_aom_alarm_rules \
region=cn-north-4 cluster_id=<cluster-id>
# Resolve the cluster AOM Prometheus instance
python3 scripts/huawei-cloud.py huawei_resolve_cce_aom_prom_instance \
region=cn-north-4 cluster_id=<cluster-id>
huawei_list_aom_alarm_rules supports cluster filtering by cluster_id only. Do not use cluster_name as a filter.
# List existing action/notification rules
python3 scripts/huawei-cloud.py huawei_list_aom_action_rules \
region=cn-north-4
# Preview creating a notification action rule from an SMN topic
python3 scripts/huawei-cloud.py huawei_create_aom_notification_action_rule \
region=cn-north-4 rule_name=auto-cluster-xxx \
notification_topic_name=<smn-topic-name> \
notification_topic_urn=<smn-topic-urn>
# Confirm creation
python3 scripts/huawei-cloud.py huawei_create_aom_notification_action_rule \
region=cn-north-4 rule_name=auto-cluster-xxx \
notification_topic_name=<smn-topic-name> \
notification_topic_urn=<smn-topic-urn> \
confirm=true
Never choose a notification rule automatically. If bind_notification_rule_id is missing for batch alarm creation, list available action rules and wait for explicit user selection, or ask the user to provide an SMN topic and create a notification rule first.
# Preview creating a CCE template metric alarm rule
python3 scripts/huawei-cloud.py huawei_create_aom_alarm_rule \
region=cn-north-4 cluster_id=<cluster-id> \
alarm_item=NodeCPUUsageHigherThanEightyPercent
# Confirm creating a CCE template metric alarm rule
python3 scripts/huawei-cloud.py huawei_create_aom_alarm_rule \
region=cn-north-4 cluster_id=<cluster-id> \
alarm_item=NodeCPUUsageHigherThanEightyPercent \
bind_notification_rule_id=<action-rule-id> \
confirm=true
# Preview creating an event alarm rule
python3 scripts/huawei-cloud.py huawei_create_aom_event_alarm_rule \
region=cn-north-4 cluster_id=<cluster-id> \
event_name="<event-name>"
# Confirm creating an event alarm rule
python3 scripts/huawei-cloud.py huawei_create_aom_event_alarm_rule \
region=cn-north-4 cluster_id=<cluster-id> \
event_name="<event-name>" \
bind_notification_rule_id=<action-rule-id> \
confirm=true
Metric rules with cluster_id + alarm_item and event rules both use the same CCE template payload path and default naming as batch creation. Pass rule_name only when the user explicitly requests a custom name. Single-rule creation requires explicit bind_notification_rule_id during confirmed execution, same as batch CCE alarm rule configuration. Event alarm rule event_name should reference references/cce-event-list.md; metric alarm_item should use the CCE template alias or rule name.
# Preview batch creating CCE recommended alarm rules
python3 scripts/huawei-cloud.py huawei_configure_cce_aom_alarm_rules \
region=cn-north-4 cluster_id=<cluster-id> \
bind_notification_rule_id=<action-rule-id>
# Confirm batch creation
python3 scripts/huawei-cloud.py huawei_configure_cce_aom_alarm_rules \
region=cn-north-4 cluster_id=<cluster-id> \
bind_notification_rule_id=<action-rule-id> confirm=true
# Preview cleanup of CCE template alarm rules for a cluster
python3 scripts/huawei-cloud.py huawei_cleanup_cce_aom_alarm_rules \
region=cn-north-4 cluster_id=<cluster-id>
# Confirm cleanup
python3 scripts/huawei-cloud.py huawei_cleanup_cce_aom_alarm_rules \
region=cn-north-4 cluster_id=<cluster-id> \
delete_auto_notification_rule=true confirm=true
huawei_configure_cce_aom_alarm_rules requires explicit bind_notification_rule_id. If not provided, do not return or choose available_notification_rules from this tool; call huawei_list_aom_action_rules separately and present choices to the user.
# Preview update
python3 scripts/huawei-cloud.py huawei_update_aom_alarm_rule \
region=cn-north-4 rule_name=my-rule threshold=80
# Confirm update
python3 scripts/huawei-cloud.py huawei_update_aom_alarm_rule \
region=cn-north-4 rule_name=my-rule threshold=80 confirm=true
# Preview delete
python3 scripts/huawei-cloud.py huawei_delete_aom_alarm_rule \
region=cn-north-4 rule_name=my-rule
# Confirm delete
python3 scripts/huawei-cloud.py huawei_delete_aom_alarm_rule \
region=cn-north-4 rule_name=my-rule confirm=true
# Preview disable or enable
python3 scripts/huawei-cloud.py huawei_disable_aom_alarm_rule \
region=cn-north-4 rule_id=<rule-id>
python3 scripts/huawei-cloud.py huawei_enable_aom_alarm_rule \
region=cn-north-4 rule_id=<rule-id>
# Query mute rules
python3 scripts/huawei-cloud.py huawei_list_aom_mute_rules \
region=cn-north-4
# Preview deleting an action rule
python3 scripts/huawei-cloud.py huawei_delete_aom_action_rule \
region=cn-north-4 rule_name=<rule-name>
python3 scripts/huawei-cloud.py huawei_aom_alarm_inspection \
region=cn-north-4 cluster_id=<cluster-id>
This skill includes read-only query tools and mutation tools. Mutation tools must be previewed first and must wait for explicit user confirmation before using confirm=true.
| Level | Meaning | Execution Guidance |
|---|---|---|
| R3 | No-risk read-only query or local analysis | May run automatically |
| R2 | Low-risk monitoring configuration change, such as creating alarm or notification configuration without deleting resources or increasing service capacity/cost | Preview first; execute only after explicit user confirmation |
| R1 | Risky monitoring change, such as updating or disabling a rule in a way that may reduce observability | Preview first; require explicit user confirmation and confirm=true |
| R0 | Critical monitoring protection removal, such as deleting alarm rules, action rules, or broad cleanup | Require explicit confirmation, impact review, and rollback plan before confirm=true |
| Tool | Operation Type | Risk Level | Description |
|---|---|---|---|
huawei_list_aom_alarms | Query | R3 | Query active + historical alarms, merged and deduplicated |
huawei_list_aom_current_alarms | Query | R3 | Query current active alarms only |
huawei_analyze_aom_alarms | Query + local analysis | R3 | Analyze alarm groups, bursts, attention alarms, and chronic alarms |
huawei_aom_alarm_inspection | Query + local analysis | R3 | Inspect cluster alarm health |
huawei_list_aom_alarm_rules | Query | R3 | Query AOM alarm rules; supports optional cluster_id |
huawei_resolve_cce_aom_prom_instance | Query | R3 | Resolve the cluster AOM Prometheus instance |
huawei_list_aom_action_rules | Query | R3 | Query action/notification rules |
huawei_list_aom_mute_rules | Query | R3 | Query mute rules |
huawei_create_aom_alarm_rule | Create | R2 | Create an AOM metric alarm rule |
huawei_create_aom_event_alarm_rule | Create | R2 | Create an AOM event alarm rule |
huawei_create_aom_notification_action_rule | Create | R2 | Create a notification action rule from a user-provided SMN topic |
huawei_configure_cce_aom_alarm_rules | Batch create | R2 | Create CCE recommended alarm rules using an explicit existing notification action rule |
huawei_enable_aom_alarm_rule | Enable | R2 | Enable an AOM alarm rule |
huawei_update_aom_alarm_rule | Update | R1 | Update an AOM alarm rule |
huawei_disable_aom_alarm_rule | Disable | R1 | Disable an AOM alarm rule |
huawei_delete_aom_alarm_rule | Delete | R0 | Delete an AOM alarm rule |
huawei_cleanup_cce_aom_alarm_rules | Batch delete | R0 | Delete CCE template alarm rules for the target cluster |
huawei_delete_aom_action_rule | Delete | R0 | Delete a notification action rule |
| Parameter | Required/Optional | Description | Default |
|---|---|---|---|
region | Required | Huawei Cloud region | HUAWEI_REGION |
cluster_id | Tool-specific | CCE cluster ID; required for cluster-scoped operations | N/A |
ak | Optional | Explicit AK; highest priority for hcloud calls | profile/env fallback |
sk | Optional | Explicit SK; highest priority for hcloud calls | profile/env fallback |
project_id | Optional | Explicit Project ID | hcloud/IAM/env fallback |
confirm | Mutation only | Execute a previewed mutation when set to true | false |
| Tool | Required | Optional |
|---|---|---|
huawei_list_aom_alarms | region | cluster_id, time-window/filter params |
huawei_list_aom_current_alarms | region | cluster_id, filter params |
huawei_analyze_aom_alarms | region | cluster_id, time-window/filter params |
huawei_aom_alarm_inspection | region, cluster_id | filter params |
| Tool | Required | Notes |
|---|---|---|
huawei_list_aom_alarm_rules | region | Optional cluster_id; no cluster_name filtering |
huawei_create_aom_alarm_rule | region | Template mode: cluster_id, alarm_item; manual mode: metric fields. Confirmed execution requires bind_notification_rule_id |
huawei_create_aom_event_alarm_rule | region, cluster_id, event_name | R2; confirmed execution requires bind_notification_rule_id; optional rule_name overrides template naming |
huawei_create_aom_notification_action_rule | region, rule_name, notification_topic_urn, notification_topic_name | R2; user must provide the topic |
huawei_configure_cce_aom_alarm_rules | region, cluster_id, bind_notification_rule_id | R2; user must explicitly choose the notification rule |
huawei_cleanup_cce_aom_alarm_rules | region, cluster_id | R0; optional delete_auto_notification_rule=true |
huawei_update_aom_alarm_rule | region, rule_name | R1; update fields are tool-specific |
huawei_delete_aom_alarm_rule | region, rule_name | R0 |
huawei_disable_aom_alarm_rule | region, rule_id | R1 |
huawei_enable_aom_alarm_rule | region, rule_id | R2 |
See Output Schema for the complete JSON response structure.
Key output fields:
success: command success statuserror: failure reason when success=falsepreview: mutation preview when confirm=true is not providedrequires_confirmation: whether user confirmation is requiredreport: alarm-correlation summaryissues: inspection risk itemsalarms, rules, action_rules, mute_rules: queried resourcesSee Workflow for the detailed alarm-correlation flow.
Recommended workflow:
huawei_list_aom_alarms.huawei_analyze_aom_alarms.Run read-only checks first:
python3 scripts/huawei-cloud.py huawei_list_aom_alarms region=cn-north-4
python3 scripts/huawei-cloud.py huawei_list_aom_alarm_rules region=cn-north-4
python3 scripts/huawei-cloud.py huawei_list_aom_action_rules region=cn-north-4
For cluster-scoped checks:
python3 scripts/huawei-cloud.py huawei_aom_alarm_inspection \
region=cn-north-4 cluster_id=<cluster-id>
Mutation verification:
confirm=true.preview, affected resources, and expected impact.confirm=true.cluster_id - use exact cluster ID for cluster-scoped alarm rule and alarm analysis tasks.bind_notification_rule_id.cluster_id for cluster-scoped filtering; cluster names are not accepted by huawei_list_aom_alarm_rules.| Symptom | Likely Cause | Action |
|---|---|---|
| hcloud command fails | Missing profile, region, or IAM permission | Check hcloud configure list and IAM policy |
| No active alarms | Issue may have recovered or only exists in history | Query active + historical alarms |
| Batch configure fails without notification rule | bind_notification_rule_id is missing | List action rules or create one from an SMN topic, then retry |
| Cluster alarm rule query returns too many rules | Missing cluster_id filter | Re-run with exact cluster_id |
| Project ID errors | Profile/project resolution failed | Provide project_id explicitly or fix hcloud profile |
huawei_list_aom_alarm_rules filters by cluster_id, not cluster name.| Document | Use |
|---|---|
| Operation Guide | Detailed parameters, output expectations, verification, diagnosis hand-off, and pitfalls |
| Workflow | Alarm correlation workflow |
| Output Schema | Output JSON schema |
| Risk Rules | Risk boundaries and confirmation rules |
| CLI Installation Guide | hcloud/KooCLI installation and profile checks |
| IAM Policies | Required AOM, CCE, and IAM permissions |
| Verification Method | Functional and mutation verification checklist |
| Acceptance Criteria | Skill acceptance criteria and test cases |
| CCE Event List | CCE event names for event alarm rules |
| Prometheus Metric Alarms | Prometheus metric alarm references |