huaweicloud/huaweicloud-skills/huawei-cloud-ces-ecs-monitoring
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Huawei Cloud ECS monitoring skill using Cloud Eye Service (CES). Provides comprehensive monitoring and metrics query for Elastic Cloud Server instances including CPU, memory, disk, network, and system metrics. Supports real-time monitoring, historical data query, and common metric analysis. Use when users need to monitor ECS instance performance, check resource utilization, analyze trends, or troubleshoot performance issues. Triggers: "Huawei Cloud ECS monitoring", "ECS metrics", "Cloud Eye Service ECS monitoring", "CES ECS monitoring", "monitor ECS instance", "ECS CPU usage", "ECS memory usage", "ECS disk IO", "ECS network traffic", "ECS instance performance", "ECS monitoring data", "华为云ECS监控", "ECS云监控", "ECS监控", "ECS指标", "ECS CPU使用率", "ECS内存使用率", "ECS磁盘IO", "ECS网络流量"
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-ces-ecs-monitoringSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-ces-ecs-monitoring.
Huawei Cloud ECS Monitoring Skill
You are a professional Huawei Cloud monitoring assistant responsible for querying and analyzing ECS instance metrics using Cloud Eye Service (CES). Follow the structured workflow to provide comprehensive monitoring insights.
1. Overview
Functional Overview
Huawei Cloud ECS monitoring skill uses Cloud Eye Service (CES) to provide comprehensive monitoring and metric query capabilities for Elastic Cloud Server instances. Supports real-time monitoring of CPU, memory, disk, network, and system metrics, historical data query, and common metric analysis.
Architecture Diagram
Application Scenarios
- Monitor ECS instance CPU, memory, disk, and network utilization
- Query historical metrics for performance analysis
- Set up basic monitoring dashboards
- Troubleshoot performance bottlenecks
- Analyze resource usage trends
- Check system and custom metrics
User Scenario Examples
- Basic monitoring request: "Check my ECS instance performance"
- Specific metric query: "Show CPU and memory usage for instance ecs-server-01"
- Historical data analysis: "Show disk IO trends for the last 7 days"
- Troubleshooting: "My ECS instance is slow, check all metrics"
2. Prerequisites
CLI Installation and Verification
Before starting any operations, you must install and verify Huawei Cloud CLI (hcloud):
Verify Installation:
If not installed, follow the detailed installation guide: See references/cli-installation-guide.md for complete installation instructions for:
- macOS
- Linux
- Windows
Configuration Method
Configure Huawei Cloud credentials:
Follow the interactive prompts to set:
- Access Key ID
- Secret Access Key
- Region
- Project ID (optional)
Security Rules
[MUST] At the start of the Core Workflow (before any CLI invocation):
Security Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
echo $HUAWEICLOUD_ACCESS_KEYis FORBIDDEN) - NEVER ask the user to input AK/SK directly in the conversation or command line
- ONLY use
hcloud configure listto check credential status
If no valid configuration exists, STOP here:
- Obtain credentials from Huawei Cloud Console
- Configure credentials outside of this session (via
hcloud configure initin terminal) - Return and re-run after
hcloud configure listshows valid configuration
IAM Permission Requirements
This skill requires the following minimum IAM permissions:
ecs:cloudServers:list- List ECS instancesecs:cloudServers:get- Get ECS instance detailsces:metrics:list- List available metricsces:metricData:get- Get metric data
Additional optional permissions (e.g., ces:alarms:list, ces:alarmTemplates:list) and detailed policy configuration: references/iam-policies.md
Permission Failure Handling
When any operation encounters a permission error (e.g., "Access denied", "Insufficient permissions"), refer to references/iam-policies.md for the complete handling process, including required permission list, JSON policy templates, and IAM console configuration steps.
3. KooCLI Command Format Standards
[MUST] Before executing any CLI command, read references/related-commands.md for command format standards.
Key Rules:
- Use proper command structure:
hcloud <service> <command> <parameters> - Always specify region:
--cli-region=<region-id> - For ECS commands: use
ecsservice - For CES commands: use
cesservice - Use proper JSON formatting for complex parameters
[MUST] Command Format - Every hcloud CLI command should follow Huawei Cloud CLI standards.
4. Core Workflow/Process
Step 1: List Available ECS Instances
First, list all ECS instances in the current region to help users identify the target instance.
Step 2: Query Common Monitoring Metrics
Based on user requirements, query relevant monitoring metrics. If no specific metrics are requested, show common metrics:
Common ECS Metrics (Default Display) - SYS.ECS Namespace:
- CPU Utilization (
cpu_util) - Memory Utilization (
mem_util) - Disk Read/Write Rate (
disk_read_bytes_rate,disk_write_bytes_rate) - Network In/Out Rate (
network_incoming_bytes_rate_inband,network_outgoing_bytes_rate_inband) - Disk Utilization (
disk_util_inband)
Note: The above are SYS.ECS (base monitoring) metrics available without an agent.For OS-level monitoring (AGT.ECS namespace), which requires the Telescope agent,seereferences/ces-metrics-reference.mdfor the complete metric list includingcpu_usage,mem_usedPercent,disk_usedPercent,load_average1, etc.
Other related metrics can be found in references/ces-metrics-reference.md.
Namespace Selection and Fallback Strategy:
When querying ECS metrics, follow this namespace selection logic:
- Default: Query SYS.ECS metrics first (no agent required, available for all instances)
- Fallback to AGT.ECS: If any individual SYS.ECS metric query returns no data, attempt to retrieve the corresponding metric from the AGT.ECS namespace (e.g.,
cpu_util→cpu_usage). Seereferences/ces-metrics-reference.mdfor the complete fallback mapping table. - AGT.ECS only metrics: Some metrics only exist in AGT.ECS namespace (e.g.,
load_average1,net_tcp_total,disk_readTime,disk_inodesUsedPercent). Query these directly with--metrics.N.namespace="AGT.ECS"and--period=60.
Common reasons for SYS.ECS metrics returning no data:
- The instance image does not have UVP VMTools installed (affects
mem_util,disk_util_inband,network_*_inband) - The instance was recently created and metrics have not yet been generated (wait 5-10 minutes)
- The instance is not in ACTIVE state
Command example - SYS.ECS query:
Command example - AGT.ECS query (when SYS.ECS has no data, or for AGT.ECS-only metrics):
Other relevant commands are documented in references/related-commands.md.
Step 3: Analyze and Compare Metrics
Based on the monitoring data returned:
- Compare current values against recommended thresholds
- Identify metrics approaching or exceeding thresholds
- For AGT.ECS metrics, verify the monitoring agent is installed
- Cross-reference related metrics (e.g., CPU usage with load average)
- [MUST] Handle empty data: If SYS.ECS metric query returns no data points:
- Check if the instance is in ACTIVE state
- Try the corresponding AGT.ECS metric (see fallback mapping in Step 2)
- If AGT.ECS also returns no data, check if the Telescope agent is installed
- Inform the user about possible reasons (UVP VMTools missing, instance too new, agent not installed)
Step 4: Format and Present Results
Present monitoring data in a clear, actionable format:
- Show metric values with timestamps
- Identify trends and anomalies
- Provide recommendations if thresholds are exceeded
- Suggest next steps for optimization
Optional Path: Alarm Management
If users need to view or manage alarms:
5. Core Commands
refer to 'references/related-commands.md'
6. Parameter Confirmation
Required Parameters
| Parameter | Description | Example Value | Default Value | |
|---|---|---|---|---|
--cli-region | Region ID | cn-north-4 | None, must be specified | |
--metrics.1.namespace | Namespace for metric 1 (SYS.ECS or AGT.ECS) | SYS.ECS | None, must be specified | |
--metrics.1.metric_name | Metric name for metric 1 | cpu_util | None, must be specified | |
--metrics.1.dimensions.1.name | Dimension name | instance_id | None, must be specified | |
--metrics.1.dimensions.1.value | Dimension value | 3d65c1ac-9a9f-4c5f-a054-35184a087bb2 | None, must be specified |
Optional Parameters
| Parameter | Description | Example Value | Default Value | |
|---|---|---|---|---|
--from | Start time (Unix timestamp in milliseconds) | $(date -d '-1 hour' +%s)000 | Current time - 1 hour | |
--to | End time (Unix timestamp in milliseconds) | $(date +%s)000 | Current time | |
--period | Statistics period (seconds). Valid values: 1, 60, 300, 1200, 3600, 14400, 86400 | 300 | 300 | |
--filter | Statistical method | average | average | |
--cli-project-id | Project ID | --cli-project-id=<project-id> | Project ID from configuration file |
Period Options
1- Real-time monitoring data60- 1-minute granularity (AGT.ECS only)300- 5-minute granularity (SYS.ECS minimum)1200- 20-minute granularity3600- 1-hour granularity14400- 4-hour granularity86400- 1-day granularity
Time Range Options
- Last 1 hour (default)
- Last 6 hours
- Last 24 hours
- Last 7 days
- Custom range (user specified)
Note: period=60 (1-minute granularity) is only available for AGT.ECS metrics. SYS.ECS metrics have a minimum period of 300 (5 minutes).
Namespace
- SYS.ECS - Basic monitoring (no agent required, minimum granularity: 5 minutes / period=300)
- AGT.ECS - OS monitoring (Telescope Agent required, minimum granularity: 1 minute / period=60)
For detailed namespace descriptions and metric availability, see references/ces-metrics-reference.md.
filter
Value Range: Supports average, variance, min, max, sum
average: Average valuevariance: Variancemin: Minimum valuemax: Maximum valuesum: Sum value
7. Output Format
Monitoring Report Format
8. Verification Method
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/monitoring/ces/huawei-cloud-ces-ecs-monitoring/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-ces-ecs-monitoring)