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

Connecting Custom Plug-ins to AOM

Updated on 2025-03-03 GMT+08:00

Create a plug-in, specify the metrics to be reported to AOM using a script, and create a collection task. Then the specified metrics can be reported to AOM for monitoring.

Creating a Custom Plug-in

You can create a plug-in using a custom script and create a collection task during the connection of the custom plug-in to report metrics to AOM.

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Access > Access Center to go to the old access center. (The new access center does not support the connection of custom plug-ins. Click Back to Old Version in the upper right corner to switch from the new access center to the old one.)
  3. In the Custom Prometheus Plug-in Access panel, click Custom Plug-in.
  4. On the displayed page, set related parameters.

    • Plug-in information
      Table 1 Plug-in parameters

      Parameter

      Description

      Plug-in Name

      Name of a custom plug-in. Enter a maximum of 32 characters starting with a letter. Only letters, digits, and underscores (_) are allowed.

      Plug-in Type

      Type of a plug-in. The default value is Custom.

      Description

      Description of the plug-in to be created. Enter a maximum of 10,000 characters.

    • Set Plug-in
      Table 2 Plug-in configuration parameters

      Parameter

      Description

      Plug-in Version

      Version of the custom plug-in.

      Plug-in Script

      Custom plug-in script. You need to specify the metrics to be reported to AOM in this script. The script type can be Linux or Windows.

      Linux: Shell or Python script.

      Example:

      #!/bin/bash
      #Examples
      echo "metric_name{label_name=\"label_value\"} 100"

      Windows: BAT script

      Example:

      ::Examples
      @echo off
      echo metric_name{label_name="label_value"} 100

      Default Script Parameter

      Default parameters of the custom plug-in script. Set default parameters for script modeling. You can also leave them empty. Rules:

      ${Parameter}: Enter a maximum of 64 characters starting with a letter. Only letters, digits, and underscores (_) are allowed. For example, ${a_b}.

      You can combine parameters as required and separate them with spaces. Max.: 250 characters.

      Script Parameter

      Configure the attributes of the default parameters in the custom plug-in script. You can configure the following information as required:

      • Mandatory: If this option is enabled, the parameter value in the plug-in debugging area is mandatory. If this option is disabled, the parameter value in the plug-in debugging area is optional.
      • Parameter: name of a script parameter. The system automatically identifies the script parameter name based on Default Script Parameter you have already configured. The parameter here is grayed and cannot be configured.
      • Default Value: default value of the script parameter.
      • Description: description of the parameter.

      When you configure a collection task for the custom plug-in, script parameters are displayed based on the script parameter attributes configured here. You can configure collection based on the script parameter attributes.

  5. Click Save.

    After a plug-in is created, you can modify it, create a version for it, or delete it.

    Table 3 Related operations

    Operation

    Description

    Checking the plug-in status

    Locate the target plug-in, hover the mouse pointer over the plug-in, and choose > Version. On the page that is displayed, check the plug-in status.

    • Unreleased: When you create a plug-in or create a plug-in version, the plug-in status is Unreleased. You can click the version number to edit the plug-in.
    • Released: After you click Release in the Operation column, the plug-in status changes to Released. You can click the version number to view the plug-in details.

    Creating a version

    Locate the target plug-in, hover the mouse pointer over the plug-in, and choose > Version. Click Create Version. On the displayed page, set the plug-in information.

    Precautions:

    • A maximum of five versions can be created for a plug-in.
    • If there is only one plug-in version, only Copy is available in the Operation column. If there is more than one plug-in, both Copy and Delete are available in the Operation column. You can click Delete to delete a plug-in version.

    Modifying a plug-in

    Locate the target plug-in, hover the mouse pointer over the plug-in, and choose > Modify. On the displayed page, modify the plug-in information.

    Deleting a plug-in

    Locate the target plug-in, hover the mouse pointer over the plug-in, and choose > Delete. On the displayed page, click Yes to delete the plug-in.

    If a collection task has been configured for a plug-in, deleting the plug-in will also delete the collection task.

Connecting Custom Plug-ins to AOM

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Access > Access Center to go to the old access center. (The new access center does not support the connection of custom plug-ins. Click Back to Old Version in the upper right corner to switch from the new access center to the old one.)
  3. On the collection task configuration page, set parameters by referring to the following table.

    Figure 1 Configuring a collection task
    Table 4 Parameters for configuring a collection task

    Operation

    Parameter

    Description

    Select Instance

    Prometheus Instance

    Select a Prometheus instance for ECS to store collected data.

    A collection task is associated with the Prometheus instance to mark and classify collected data. If no Prometheus instance is available, create one.

    Set Plug-in

    OS

    Operating system of the host. Options: Linux and Windows. For a custom plug-in, the OS is automatically selected.

    Collection Plug-in

    (Default) Created custom plug-in.

    Plug-in Version

    Select a plug-in version. Plug-in versions that have not been released are dimmed and cannot be selected.

    Set Collection Task

    Collection Task Name

    Name of a collection task. Enter 1 to 50 characters starting with a letter. Only letters, digits, underscores (_), and hyphens (-) are allowed.

    Host

    Click Add Host. On the Add Host page, select the host for configuring the collection task and installing Exporter.

    • Search for and select a host by the host name, IP address, or Agent status.
    • You can click in the upper right corner to deselect the selected host.
    • Ensure that the UniAgent of the selected host is running. Otherwise, no data can be collected.

    Plug-in Collection Parameters

    Set parameters for the custom plug-in script. They come from the default script parameters you define when creating a custom plug-in script.

    Advanced Settings

    Configure the following parameters:

    • Collection Period (s): O&M data collection period, in seconds. Options: 10s, 30s, and 60s (default).
    • Timeout Period (s): the maximum time allowed for executing a collection task, in seconds. Options: 10s, 30s, and 60s (default). The timeout period cannot exceed the collection period.
    • Executor: user who executes the collection task, that is, the user of the selected host. Default: root. Enter a username. Recommended: root.

  4. Click Create.
  5. On the displayed collection task page, click the target collection task to view its details.

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