MCPInstall

huawei-cloud-ces-ecs-monitoring

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", "CES", "monitor ECS", "CPU usage", "memory usage", "disk IO", "network traffic", "instance performance", "monitoring data", "华为云ECS监控", "云监控", "CES监控", "ECS指标", "CPU使用率", "内存使用率", "磁盘IO", "网络流量"

Installs
232
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/huaweicloud/huaweicloud-skills --skill huawei-cloud-ces-ecs-monitoring
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads huawei-cloud-ces-ecs-monitoring automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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

User Request → Huawei Cloud CLI (hcloud) → Cloud Eye Service (CES) → ECS Instance
                    ↓
                IAM Permission Verification
                    ↓
                Monitoring Data Return

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

  1. Basic monitoring request: "Check my ECS instance performance"
  2. Specific metric query: "Show CPU and memory usage for instance ecs-server-01"
  3. Historical data analysis: "Show disk IO trends for the last 7 days"
  4. 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:

hcloud --version

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:

hcloud configure init

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):

hcloud configure list

Security Rules:

  • NEVER read, echo, or print AK/SK values (e.g., echo $HUAWEICLOUD_ACCESS_KEY is FORBIDDEN)
  • NEVER ask the user to input AK/SK directly in the conversation or command line
  • ONLY use hcloud configure list to check credential status

If no valid configuration exists, STOP here:

  1. Obtain credentials from Huawei Cloud Console
  2. Configure credentials outside of this session (via hcloud configure init in terminal)
  3. Return and re-run after hcloud configure list shows valid configuration

IAM Permission Requirements

This skill requires the following minimum IAM permissions:

  • ecs:cloudServers:list - List ECS instances
  • ecs:cloudServers:get - Get ECS instance details
  • ces:metrics:list - List available metrics
  • ces: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 ecs service
  • For CES commands: use ces service
  • 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.

hcloud ECS NovaListServers --cli-region=<region-id> --limit=50

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:

  1. CPU Utilization (cpu_util)
  2. Memory Utilization (mem_util)
  3. Disk Read/Write Rate (disk_read_bytes_rate, disk_write_bytes_rate)
  4. Network In/Out Rate (network_incoming_bytes_rate_inband, network_outgoing_bytes_rate_inband)
  5. 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, see references/ces-metrics-reference.md for the complete metric list including cpu_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:

  1. Default: Query SYS.ECS metrics first (no agent required, available for all instances)
  2. 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). See references/ces-metrics-reference.md for the complete fallback mapping table.
  3. 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:

hcloud CES BatchListMetricData \
  --metrics.1.namespace="SYS.ECS" \
  --metrics.1.metric_name="cpu_util" \
  --metrics.1.dimensions.1.name="instance_id" \
  --metrics.1.dimensions.1.value="<instance-id>" \
  --from=$(date -d '-1 hour' +%s)000 \
  --to=$(date +%s)000 \
  --period=300 \
  --filter="average" \
  --cli-region=<region-id>

Command example - AGT.ECS query (when SYS.ECS has no data, or for AGT.ECS-only metrics):

hcloud CES BatchListMetricData \
  --metrics.1.namespace="AGT.ECS" \
  --metrics.1.metric_name="cpu_usage" \
  --metrics.1.dimensions.1.name="instance_id" \
  --metrics.1.dimensions.1.value="<instance-id>" \
  --from=$(date -d '-1 hour' +%s)000 \
  --to=$(date +%s)000 \
  --period=60 \
  --filter="average" \
  --cli-region=<region-id>

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:
    1. Check if the instance is in ACTIVE state
    2. Try the corresponding AGT.ECS metric (see fallback mapping in Step 2)
    3. If AGT.ECS also returns no data, check if the Telescope agent is installed
    4. 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:

# List alarms
hcloud CES ListAlarms --cli-region=<region-id>

# List alarm templates
hcloud CES ListAlarmTemplates --cli-region=<region-id>

5. Core Commands

refer to '../references/related-commands.md'

6. Parameter Description

Required Parameters

ParameterDescriptionExample ValueDefault Value
--cli-regionRegion IDcn-north-4None, must be specified
--metrics.1.namespaceNamespace for metric 1 (SYS.ECS or AGT.ECS)SYS.ECSNone, must be specified
--metrics.1.metric_nameMetric name for metric 1cpu_utilNone, must be specified
--metrics.1.dimensions.1.nameDimension nameinstance_idNone, must be specified
--metrics.1.dimensions.1.valueDimension value3d65c1ac-9a9f-4c5f-a054-35184a087bb2None, must be specified

Optional Parameters

ParameterDescriptionExample ValueDefault Value
--fromStart time (Unix timestamp in milliseconds)$(date -d '-1 hour' +%s)000Current time - 1 hour
--toEnd time (Unix timestamp in milliseconds)$(date +%s)000Current time
--periodStatistics period (seconds)300300
--filterStatistical methodaverageaverage
--project-idProject IDproject-idProject ID from configuration file

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 value
  • variance: Variance
  • min: Minimum value
  • max: Maximum value
  • sum: Sum value

7. Output Format

Monitoring Report Format

## ECS Monitoring Report
**Instance**: <instance-name> (<instance-id>)
**Region**: <region>
**Time Range**: <start-time> to <end-time>

### Key Metrics Summary
- CPU Utilization: XX.XX% (avg), XX.XX% (max), XX.XX% (min)
- Memory Utilization: XX.XX% (avg), XX.XX% (max), XX.XX% (min)
- Disk Read Rate: XX.XX MB/s (avg)
- Disk Write Rate: XX.XX MB/s (avg)
- Network Inbound: XX.XX Mbps (avg)
- Network Outbound: XX.XX Mbps (avg)

### Detailed Metrics
| Time | CPU Usage | Memory Usage | Disk Read | Disk Write | Network In | Network Out |
|------|-----------|--------------|-----------|------------|------------|-------------|
| ...  | ...       | ...          | ...       | ...        | ...        | ...         |

### Recommendations
1. [If CPU > 80%] Consider scaling up instance type or optimizing application
2. [If Memory > 85%] Consider adding memory or optimizing memory usage
3. [If Disk > 90%] Consider expanding disk or cleaning up files
4. [Network bottlenecks] Consider optimizing network configuration

8. Verification Method

Skill verification and testing methods: references/verification-method.md

Basic Verification Steps

  1. Environment verification: Ensure Huawei Cloud CLI is installed and configured
  2. Permission verification: Verify IAM permissions are sufficient
  3. Function verification: Test core monitoring functionality
  4. Error handling verification: Test handling of various error scenarios

Test Cases

  • Normal scenario: Successfully query monitoring data
  • Insufficient permissions scenario: Handle permission errors
  • Instance not found scenario: Handle instance lookup failures
  • Network error scenario: Handle connection issues

9. Best Practices

Please refer to references/best-practices.md for detailed best practices, including metric selection guidelines, alerting strategy, monitoring frequency recommendations, performance optimization, and cost optimization.

Core Principles

  1. Default to common metrics - When user doesn't specify, default to showing common metrics
  2. Provide actionable insights - Not just raw data, provide analysis and recommendations
  3. Batch query related metrics - Reduce API call frequency by querying multiple metrics in a single request

10. Reference Documents

Refer to documents in the references/ directory for more information:

  • cli-installation-guide.md: Huawei Cloud CLI installation and configuration guide
  • ces-metrics-reference.md: Complete list of CES metrics for ECS
  • iam-policies.md: Required IAM permissions and policies
  • best-practices.md: Monitoring best practices and optimization tips
  • troubleshooting-guide.md: Common issues and solutions
  • verification-method.md: Skill verification and testing methods
  • acceptance-criteria.md: Quality standards and acceptance criteria
  • related-commands.md: Related command reference

11. Notes

Security Tips

  • Credential security: Never expose AK/SK in code, logs, or conversations
  • Principle of least privilege: Grant only necessary IAM permissions

For more security best practices (key rotation, IAM conditions, account separation), see references/iam-policies.md.

Limitations

  • API limits: Be aware of Huawei Cloud API rate limits
  • Data retention: Monitoring data has limited retention time

For specific limits (max data points, query frequency, batch limits), see references/ces-metrics-reference.md.

Known Issues

  1. Data latency: Monitoring data may have 1-2 minutes delay
  2. Metric availability: Newly created instances may take several minutes to start reporting metrics

Troubleshooting

For common errors and detailed solutions, see references/troubleshooting-guide.md.

Support and Feedback

FAQ

What does the huawei-cloud-ces-ecs-monitoring skill do?

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", "CES", "monitor ECS", "CPU usage", "memory usage", "disk IO", "network traffic", "instance performance", "monitoring data", "华为云ECS监控", "云监控", "CES监控", "ECS指标", "CPU使用率", "内存使用率", "磁盘IO", "网络流量"

How do I install huawei-cloud-ces-ecs-monitoring?

Run npx skills add https://github.com/huaweicloud/huaweicloud-skills --skill huawei-cloud-ces-ecs-monitoring in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/huawei-cloud-ces-ecs-monitoring/ (personal) or .claude/skills/huawei-cloud-ces-ecs-monitoring/ (project).

Which AI agents can use huawei-cloud-ces-ecs-monitoring?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is huawei-cloud-ces-ecs-monitoring safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains huawei-cloud-ces-ecs-monitoring?

It is published by huaweicloud in huaweicloud/huaweicloud-skills. It has 232 recorded installs.

More from huaweicloud/huaweicloud-skills

View all →

huawei-cloud-terraform-installer

huaweicloud/huaweicloud-skills

Installs Terraform CLI cross-platform with Huawei Cloud mirror support. Use this skill whenever the user mentions installing Terraform, setting up Terraform environment, or when IaC tasks detect missing Terraform. Trigger: install terraform, setup terraform, terraform environment, huaweicloud provider.

DevOps & Cloud17.5K installs

huawei-cloud-find-skills

huaweicloud/huaweicloud-skills

Invoke this skill to search, list, query, discover, browse, find and install any Huawei Cloud (华为云) agent skill. Triggers include: "华为云", "华为云有什么skill", "华为云相关skill", "华为云agent skill 市场", "华为云skill类目", "explore Huawei Cloud skills", "show Huawei Cloud skill categories", "does a Huawei Cloud skill exist for...", "which Huawei Cloud skills exist", "搜索华为云技能", "查询华为云skill列表", "有没有管理ECS/OBS/RDS的skill", "帮我找 XX 华为云skill", "介绍 XX Skill 内容", "华为云 XX Skill 具体做什么", "安装华为云Skill".

17.3K installs

huawei-cloud-billing-scout

huaweicloud/huaweicloud-skills

Huawei Cloud BSS billing (not AWS/Azure/other clouds; refuses pricing quotes, real-name review, and any non-billing scope): balance, spend, attribution, reconciliation, coupons, stored-value cards, enterprise/partner billing. One-page briefing via hcloud. Use only when the user explicitly mentions 华为云 / Huawei Cloud / BSS and 余额/账单/对账/资源包/代金券/储值卡/企业或伙伴账务; refuses pay, renew, refund, delete.

DevOps & Cloud17.2K installs

huawei-cloud-computing-query

huaweicloud/huaweicloud-skills

Queries Huawei Cloud computing resources (ECS/BMS/IMS/AS), Covers ECS instances, flavors, keypairs, quotas, server groups, block devices, NICs, VNC console, BMS bare metal servers/flavors/quotas, IMS images/OS versions/members/quotas, and AS scaling groups/configs/policies/activity logs/lifecycle hooks/warm pools/quotas. No write operations. Use this skill when the user needs to query ECS instance details, list flavors, check BMS availability, browse images, or view auto-scaling group/policy status. Triggers: 弹性云服务器, ECS, 裸金属, BMS, 镜像, IMS, 弹性伸缩, AS, 伸缩组, 伸缩策略, 规格查询, flavor, instance, image, scaling.

Media & Creative17.1K installs

huawei-cloud-obs-upload

huaweicloud/huaweicloud-skills

Upload local files or directories to Huawei Cloud OBS (Object Storage Service) buckets, list OBS buckets with capacity and object count, and schedule periodic uploads via crontab. Use this skill when the user wants to: (1) upload a local file or directory to an OBS bucket, (2) list OBS buckets and check their storage capacity and object count, (3) set up a scheduled/periodic upload task to automatically sync a local directory to an OBS bucket. Triggers include: user mentions "OBS", "object storage", "bucket list", "bucket capacity", "upload to OBS", "upload file", "upload directory", "scheduled upload", "periodic upload", "sync to bucket", "对象存储", "桶列表", "桶容量", "上传文件", "上传目录", "定时上传", "OBS管理"

huawei-cloud-terraform-generator

huaweicloud/huaweicloud-skills

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infrastructure as Terraform, whether they ask explicitly for Terraform or describe goals such as deploying a website, launching an application, or creating network, compute, database, load balancing, or storage resources. Trigger when users mention 创建/create、生成/generate、部署/deploy、配置/configure、使用/use、管理/manage、华为云/Huawei Cloud、Terraform、ECS、VPC、资源/resource、云服务器/ECS、虚拟机/VM、实例/instance、网络/network、负载均衡/ELB、数据库/database、RDS、存储/storage、OBS、桶/bucket、域名/domain、DNS、证书/certificate、SSL、监控/monitoring、日志/log、备份/backup、容器/container、CCE、函数工作流/FunctionGraph

DevOps & Cloud17.1K installs

Popular devops & cloud skills

View category →

microsoft-foundry

microsoft/azure-skills

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure

OfficialDevOps & Cloud579.1K installs

azure-diagnostics

microsoft/azure-skills

Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.

OfficialDevOps & Cloud569.8K installs

azure-prepare

microsoft/azure-skills

Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.

OfficialDevOps & Cloud569K installs

azure-ai

microsoft/azure-skills

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

OfficialDevOps & Cloud568.8K installs

azure-deploy

microsoft/azure-skills

Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.

OfficialDevOps & Cloud568.6K installs

azure-validate

microsoft/azure-skills

Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.

OfficialDevOps & Cloud568K installs