Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page
Help Center/ Auto Scaling/ User Guide (ME-Abu Dhabi Region)/ FAQs/ AS Policy/ How Can I Install the Agent Plug-in on the Instances in an AS Group to Use Agent Monitoring Metrics?

How Can I Install the Agent Plug-in on the Instances in an AS Group to Use Agent Monitoring Metrics?

Updated on 2022-02-22 GMT+08:00

Scenarios

When the scaling policy of an AS group is alarm-triggered, you can use Agent monitoring metrics to trigger scaling actions. Compared with basic monitoring, Agent monitoring provides system-level, proactive, and fine-grained monitoring services for instances. Before using Agent monitoring metrics, make sure that the Agent plug-in has been installed on the instances in the AS group. For details, see this section.

Procedure

  1. Log in to the management console and click Elastic Cloud Server under Computing.

    The Elastic Cloud Server page is displayed.

  2. Create an ECS and install the Agent plug-in.

    To install the plug-in, see .

  3. After installing the Agent plug-in, log in to the Cloud Eye console, choose Server Monitoring > Elastic Cloud Server, and ensure that the plug-in is running and that the Agent monitoring metrics can be collected.
    Figure 1 Checking the plug-in status
    Figure 2 Viewing Agent monitoring metrics
  4. Add the AK/SK to the ECS conf.json configuration file.
    1. Click the username, choose My Credentials > Access Keys, obtain the AK/SK.
      • If you have obtained the access key, obtain the AK/SK in the credentials.csv file saved when you created Access Keys.
      • If Access Keys is not available, click Create Access Key to create one. Then, save the credentials.csv file and obtain the AK/SK in it.
    2. Log in to the ECS and run the cd /usr/local/telescope/bin command to go to the Agent installation directory.
    3. Run the vi conf.json command to open the configuration file and enter the obtained AK/SK.

      If the Agent has been installed during ECS creation, the AK/SK has been added during user data injection. You only need to check the AK/SK in this step.

    4. Press Esc and enter :wq to save and exit the configuration file.
  5. Go to the Image Management Service page and use this ECS to create a private image. For details, see Creating a Private Image.
    Figure 3 Creating a private image
  6. Go to the Auto Scaling page and use the private image created in step 5 to create an AS configuration.
    Figure 4 Selecting the private image

    Click Private image for Image, select ces-agent-test from the drop-down list, and set other parameters as required.

  7. Create an AS group and associate the AS configuration created in step 6 with the AS group.
  8. Add an AS policy for the AS group: Set Policy Type to Alarm and Trigger Condition to an Agent monitoring metric, such as (Agent) Memory Usage.
    Figure 5 Selecting a trigger condition
  9. Manually add the ECS created in step 2 to the AS group.
  10. Perform the following operations to check whether the Agent monitoring metric takes effect:
    • Verify that the Agent monitoring metric is displayed on the Monitoring tab of the page providing details about the AS group.
    • When the alarm threshold is reached, verify that the alarm policy is triggered on the Scaling Actions tab of the page providing details about the AS group and that instances are added for capacity expansion.
    • The Agent monitoring data is available for all instances that are automatically added to the AS group.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback