Huawei cloud eye

From huaweicloud/huaweicloud-devkit · View interactive version

Huawei cloud eye is an AI agent skill from the GitHub repository huaweicloud/huaweicloud-devkit. Use when setting up monitoring, alarms, dashboards, or event rules on Huawei Cloud Eye (CES). Triggers: Cloud Eye, CES, monitoring, alarm, metrics, dashboard, event monitoring. NOT for: CTS audit logs (use huawei-cloud-cts-trace-management), AAD anti-DDoS (use huawei-cloud-waf-aad-rule-management).

How to use this skill

Skill file

Huawei Cloud Cloud Eye (CES)

STOP - Do not answer from general knowledge. Follow the procedure below.

Always run hcloud CES <Operation> --help before constructing commands to discover exact parameter names and requirements.

Overview

Domain expertise for Cloud Eye (CES). Covers metric queries, alarm rules, dashboards, and monitoring agent management.

Critical Warnings

| Trap | Why |

| --------------------------------------------- | ------------------------------------------------------------------------------------------------------ |

| Telescope agent required for detailed metrics | Without agent: only basic CPU/network metrics. Memory, disk require agent installation on ECS |

| Alarm needs SMN topic first | Alarm notifications fail silently without a configured SMN topic |

| Cost metrics incur charges | Custom metrics and high-frequency alarms have billing implications |

| CES endpoint may vary by region | Some older regions use different endpoint URLs. Check https://developer.huaweicloud.com/endpoint?CES |

| Metric granularity minimum 300s | Free tier has 5-minute minimum. Higher resolution requires paid tier |

Prerequisites

Common Workflows

| Task | Operation |

| ---------------- | --------------------------------------------------------- |

| List metrics | ListMetrics --cli-region=<r> --project_id=<p> |

| Get metric data | BatchListMetricData --cli-region=<r> --project_id=<p> |

| List alarms | ListAlarms --cli-region=<r> --project_id=<p> |

| Create alarm | CreateAlarm (see below) |

| Delete alarm | BatchDeleteAlarmRules --cli-region=<r> --project_id=<p> |

| List dashboards | ListDashboardWidgets --cli-region=<r> --project_id=<p> |

| Create dashboard | CreateDashboard --cli-region=<r> --project_id=<p> |

Create Alarm Rule — Param Structure

CES uses nested object prefixes for alarm creation. Always verify with --help:

hcloud CES CreateAlarm --help
# Key params: --alarm_name, --metric.metric_name, --metric.namespace,
# --condition.period, --condition.filter, --condition.value,
# --condition.comparison_operator, --condition.count

`--condition.comparison_operator` Legal Values

For metric alarms use symbols (NOT words like gt/lt):

| Value | Meaning |

| ----- | --------------------- |

| > | Greater than |

| >= | Greater than or equal |

| < | Less than |

| <= | Less than or equal |

| = | Equal |

| != | Not equal |

For event alarms: cycle_decrease, cycle_increase, cycle_wave.

Trap: Shell may interpret > and < as redirect operators. Always quote: --condition.comparison_operator=">=" or use --cli-jsonInput=<file>.

Troubleshooting

| Error | Fix |

| ----------------------------- | -------------------------------------------------------------------------------- |

| No metric data | Telescope agent not installed or ECS stopped. Install agent for detailed metrics |

| Alarm not triggering | Check metric period (minimum 300s), verify condition threshold |

| CES network timeout in region | Some regions may have CES endpoint issues. Try a different region |

Security

Cross-Skill References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.