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
Huawei Cloud Astro Canvas
Huawei Cloud Astro Zero
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Viewing Monitoring Metrics

Updated on 2024-05-20 GMT+08:00

Function

This API is used to view monitoring metrics, including node metrics and graph instance performance monitoring metrics.

URI

GET /ges/v1.0/{project_id}/graphs/{graph_name}/om/metrics?real_time=&with_performance_metrics=

Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For how to obtain the project ID, see Obtaining a Project ID.

graph_name

Yes

String

Graph name

real_time

No

Boolean

Whether to query real-time monitoring metrics. The value can be true or false. The default value is false.

  • false: Metrics for a graph instance within 2 minutes are queried.
  • true: Real-time monitoring metrics are queried, and the query is responded to in 3 to 5 seconds.

with_performance_metrics

No

Boolean

Whether to query performance metrics. The graph instance performance metrics and metrics of each node are returned. The value can be true or false. The default value is true. If set to true, only node metrics are returned, and the response time is reduced by 1 to 2 seconds.

Request Parameters

None

Response Parameters

Table 2 Response body parameters

Parameter

Type

Description

errorMessage

String

System prompt

  • If the execution succeeds, this parameter may be left blank.
  • If the execution fails, this parameter is used to display the error message.

errorCode

String

System prompt code

  • If the execution succeeds, this parameter may be left blank.
  • If the execution fails, this parameter is used to display the error code.

project_id

String

Schema structure query result For details, see Table 5-117.

id

String

Graph ID

name

String

Graph name

timestamp

long

Current timestamp

node_metrics

List<NodeMetrics>

Node metrics

performance_metrics

Object

Performance metrics

Table 3 NodeMetrics parameter description

Parameter

Type

Description

overview

String

Node overview

disk_details

List<DiskDetail>

Disk details of the node

network_details

List<NetworkDetail>

Network details of the node

Table 4 overview parameter description

Parameter

Type

Description

ges_instance_name

String

Node name

instance_id

String

Node ID

work_ip

String

Number of vertices with the label

role

String

Node role

cpu_usage

Double

CPU usage

cpu_usage_usr

Double

CPU usage in user mode

cpu_usage_sys

Double

CPU usage in kernel mode

cpu_iowait

Double

CPU I/O wait rate

cpu_idle

Double

CPU idle rate

mem_total

Double

Total memory size, in GB

mem_usage

Double

Used memory size, in GB

mem_free

Double

Available memory size, in GB

mem_cached

Double

Memory cache size, in GB

mem_buffer

Double

Memory buffer size, in GB

disk_total

Double

Total disk space, in GB

disk_usage_avg

Double

Average disk usage

disk_used

Double

Used disk space, in GB

disk_available

Double

Total available disk space, in GB

disk_io_read

Double

Disk read rate of a node, in KB/s

disk_io_write

Double

Disk read rate of a node, in KB/s

swap_total

Double

Total swap disk space of a node

swap_free

Double

Remaining swap disk space of a node

network_io_rate

Double

Network I/O rate of a node, in KB/s

host_stat

Integer

Node status

Table 5 DiskDetail parameter description

Parameter

Type

Description

disk_name

String

Disk name

disk_type

String

Disk type

total

Double

Total disk space

available

Double

Available disk space

used

Double

Used disk space

used_percentage

Integer

Disk usage

svctm

Long

Disk I/O service time, in milliseconds

await

Long

Disk I/O wait time, in milliseconds

util

Double

Disk I/O usage

write_rate

Double

Disk read rate

read_rate

Double

Disk write rate

Table 6 NetworkDetail parameter description

Parameter

Type

Description

status

Integer

NIC status

interface_name

String

NIC name

packets_recv

Long

Number of received packets

packets_send

Long

Number of sent packets

packets_drop

Long

Number of lost packets

send_rate

Double

Sending rate, in KB/s

recv_rate

Double

Receiving rate, in KB/s

Table 7 performance_metrics parameter description

Parameter

Type

Description

cpu_usage

Double

CPU usage

memory_usage

Double

Memory usage

disk_usage

Double

Average disk usage

disk_io_rate

Double

Disk I/O rate

network_io_rate

Double

Network I/O rate

swap_disk_usage

Double

Swap disk usage

tomcat_connections_usage

Double

Tomcat connection usage

qps

Long

Number of requests per second

vertex_number

Long

Number of vertices

vertex_capacity

Long

Vertex capacity

vertex_usage

Double

Vertex usage

edge_number

Long

Number of edges

edge_capacity

Long

Edge capacity

edge_usage

Double

Edge usage

read_waiting_queue_length

Long

Length of the read waiting queue

read_running_queue_length

Long

Length of the read running queue

write_waiting_queue_length

Long

Length of the write waiting queue

write_running_queue_length

Long

Length of the write running queue

Example Request

GET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/ om/metrics?real_time=true

Example Response

Status code: 200

Example response for a successful request

{
  "project_id": "xxx",
  "id": "xxxxx",
  "name": "baiwan_demo",
  "timestamp": 1699506387592,
  "node_metrics": [
    {
      "overview": {
        "network_io_rate": 2.99,
        "role": "slave",
        "disk_io_write": 107.23,
        "mem_cached": 2.57,
        "cpu_usage_usr": 7.15,
        "cpu_usage_sys": 3.07,
        "disk_io_read": 3.03,
        "ges_instance_name": "baiwan_demo-ges-cn-cn-2-1",
        "disk_used": 5.48,
        "swap_total": 0,
        "mem_buffer": 192.5,
        "disk_available": 144.47,
        "cpu_iowait": 0.17,
        "cpu_idle": 89.61,
        "mem_total": 15.15,
        "instance_id": "xxxxxxxx",
        "mem_usage": 7.22,
        "disk_total": 149.95,
        "host_stat": 200,
        "mem_free": 11.29,
        "swap_free": 0,
        "cpu_usage": 10.22,
        "disk_usage_avg": 3.65,
        "work_ip": "172.16.25.224",
        "host_name": "baiwan_demo-ges-cn-cn-2-1"
      },
      "disk_details": [
        {
          "svctm": 0,
          "total": 50,
          "util": 0.61,
          "write_rate": 96.48,
          "disk_name": "vda",
          "disk_type": "system",
          "used_percentage": 0.09,
          "available": 45.68,
          "await": 18.16,
          "read_rate": 2.99,
          "used": 4.32
        }
      ],
      "network_details": [
        {
          "send_rate": 0.05,
          "packets_drop": 0,
          "packets_recv": 1001419,
          "packets_send": 342518,
          "interface_name": "eth0",
          "recv_rate": 0.06,
          "status": 1
        }
      ]
    }
  ],
  "performance_metrics": {
    "tomcat_connections_usage": 0,
    "network_io_rate": 3.11,
    "swap_disk_usage": 0,
    "vertex_capacity": 1200000,
    "memory_usage": 23.83,
    "vertex_number": 1071803,
    "jvm_heap_usage": 0.23,
    "edge_capacity": 1200000,
    "read_waiting_queue_length": 0,
    "disk_io_rate": 0,
    "qps": 0,
    "write_running_queue_length": 0,
    "write_waiting_queue_length": 0,
    "disk_usage": 1.77,
    "edge_number": 1200000,
    "edge_usage": 100,
    "cpu_usage": 9.23,
    "read_running_queue_length": 0,
    "vertex_usage": 89.32
  }
}

Status code: 400

Example response for a failed request

Http Status Code: 400 
{ 
    "errorMessage": "query metrics error.", 
    "errorCode": "GES.8602" 
}

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