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
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
Help Center/ Application Operations Management/ User Guide/ (New) Connecting to AOM/ Ingesting Data to AOM Using Open-Source APIs and Protocols

Ingesting Data to AOM Using Open-Source APIs and Protocols

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

AOM provides a unified entry for observability analysis of Huawei Cloud services. Through the access center, you can ingest metrics into AOM using open-source APIs and protocols, ingest traces to APM, and check documents related to log ingestion to LTS.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Access > Access Center.

    If the old Access Center is displayed, click Experience the new version in the upper right corner.

  3. Select the check box next to APIs/protocols... under Types to filter out target cards.
  4. Click Ingest Metric (AOM) or Ingest Trace (APM) to quickly ingest metrics or traces, or click Ingest Log (LTS) Details to ingest logs or check documents related to log ingestion.

    • Ingest Metric (AOM): AOM supports metric ingestion using open-source APIs and protocols. By clicking Ingest Metric (AOM), you can quickly ingest metrics using open-source APIs and protocols.
    • Ingest Trace (APM): AOM provides an entry for ingesting traces to APM using open-source APIs and protocols. By clicking Ingest Trace (AOM), you can quickly ingest traces using open-source APIs and protocols.
    • Ingest Log (LTS) Details: AOM provides an entry for ingesting logs to LTS using open-source APIs and protocols.
      • By clicking Details on Ingest Log (LTS) Details, you can check documents related to log ingestion. You can ingest logs according to the documents.
      • For some components, you can quickly ingest their logs by clicking Ingest Log (LTS). For example, the Cross-Account Ingestion - Log Stream Mapping card.
    Table 1 Ingesting metrics using open-source APIs and protocols

    Card

    Related Operation

    AOM APIs

    Use the open APIs of AOM to report metric data. For details, see Using APIs to Ingest Metrics to AOM.

    LTS APIs

    Use the open APIs of LTS to report log data. For details, see Using APIs to Ingest Logs to LTS.

    APM APIs

    Use the open APIs of APM to report application performance monitoring data. For details, see Using APIs to Ingest Traces to APM.

    Common Prometheus Instance

    Suitable for customers who have self-built Prometheus servers, but need Prometheus storage availability and scalability through remote write. For details, see Connecting Common Prometheus Instances (AOM).

    Kafka Protocol

    TCP-based binary protocol used by Kafka (a high-throughput, distributed message system). For details, see Using Kafka to Report Logs to LTS.

    OpenTelemetry

    Report application performance monitoring data using the OpenTelemetry protocol. For details, see Using OpenTelemetry to Ingest Traces to APM.

    SkyWalking

    Report application performance monitoring data using the SkyWalking protocol. For details, see Using SkyWalking to Ingest Traces to APM.

    Syslog Protocol

    Exchange logs between devices based on UDP/TCP. For details, see Using Flume to Report Logs to LTS.

    Flume

    Collect logs and upload them to LTS using Flume. For details, see Using Flume to Report Logs to LTS.

    Beats

    Collect logs and upload them to LTS using Beats. For details, see Using Kafka to Report Logs to LTS.

    Logstash

    Collect logs and upload them to LTS using Logstash. For details, see Using Kafka to Report Logs to LTS.

    SNMP Protocol

    Remotely monitor network devices. Three versions available. For details, see Using Flume to Report Logs to LTS.

    Java SDK (log4j2)

    Configure Huawei Cloud Appender in Log4j2 and then report generated logs to LTS.

    Logback SDK

    Configure Huawei Cloud Appender in logback and then report generated logs to LTS.

    Cross-Account Ingestion - Log Stream Mapping

    Create an agency to map the delegator account's log stream to the delegated account's log stream. For details, see Ingesting Logs to LTS Across IAM Accounts.

    Custom Prometheus Metrics

    Ingest custom Prometheus metrics. For details, see Ingesting Custom Prometheus Metrics to AOM.

Ingesting Custom Prometheus Metrics to AOM

You can ingest custom Prometheus metrics. They can be automatically reported to AOM.

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Access > Access Center. Click Experience the new version in the upper right corner of the page.
  3. Click Custom Prometheus Metrics under APIs/Protocols..., and then click Ingest Metric (AOM) on the card to enter the configuration page.
  4. Configure parameters for ingesting custom Prometheus metrics.
    1. Select a Prometheus instance.
      1. Instance Type: Prometheus for ECS is selected by default and cannot be changed.
      2. Instance Name: Select a Prometheus instance from the drop-down list.

        If no Prometheus instance is available, click Create Instance to create one.

    2. Select a host group.
      In the host group list, select a target host group.
      • If no host group is available, click Create Host Group to create one.
      • You can also perform editing, deletion, and other operations on the host group as needed. For details, see Other Operations.

      Collection configurations are delivered by host group. Therefore, it is easy for you to configure data collection for multiple hosts. When there is a new host, simply add it to a host group and the host will automatically inherit the log ingestion configurations associated with the host group.

    3. Configure the collection.
      Under Configure Collection, set parameters by referring to the following table.
      Table 2 Parameters for configuring a collection task

      Operation

      Parameter

      Description

      Basic Settings

      Configuration Name

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

      Metric Collection Rule

      Collection Target

      Enter the target IP address and port number for collecting Prometheus metrics, for example, 10.0.0.1:3306.

      Metric Collection Interval (s)

      Interval for collecting metrics, in seconds. Options: 10, 30, and 60 (default).

      Metric Collection Timeout (s)

      Timeout period for executing a metric collection task, in seconds. Options: 10, 30, and 60 (default). The timeout period cannot exceed the collection interval.

      Executor

      User who executes the metric ingestion rule, that is, the user of the selected host group. By default, the executor is root.

      Other

      Custom Dimensions

      Dimensions (key-value pairs) added to specify additional metric attributes. You can click Add Dimension to add multiple custom dimensions (key-value pairs).
      • Key: key of the additional attribute of a metric. Enter 1 to 64 characters starting with a letter or underscore (_). Only letters, digits, and underscores are allowed.
      • Value: corresponds to the key of the additional attribute of a metric.

      A maximum of 10 custom dimensions can be added. Example: Set the key to app and value to abc.

      After the parameters are configured, you can click YAML to view the configuration data in YAML format.

  5. After the configuration is complete, click Next. The custom Prometheus metrics can then be ingested.
    After ingesting custom Prometheus metrics, you can perform the following operations:

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback