All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

API Overview

Last updated:2026-03-18 14:12:55

Kingsoft Cloud Monitor - OpenAPI Overview

Introduction

Welcome to the Kingsoft Cloud Monitor service. This service provides comprehensive data monitoring for a wide range of cloud products, enabling you to retrieve real-time metrics and precisely manage the health status of your business infrastructure and cloud resources.

This document details the API operations available for interacting with the Cloud Monitor service, including retrieving monitoring data and managing custom metrics. For a high-level overview of all available actions, please refer to the API Overview.


Terminology

Term

Definition

Description

Namespace

Namespace

A namespace represents a specific category of resources. In Kingsoft Cloud, each cloud product corresponds to a unique namespace (e.g., KEC for Cloud Servers).

Metric

Metric

A metric is a variable that is monitored over time. Monitoring data consists of the numerical values of this variable recorded at specific intervals.Example: CPUUtilization for a cloud server or InboundBandwidthPercentage for an Elastic IP.


Quick Start

The Cloud Monitor API allows you to efficiently query and manage monitoring data through two primary workflows:

Cloud Service Monitoring

To retrieve historical or real-time monitoring data for existing cloud resources, use the GetMonitorData API.

  • Use Case: Analyzing CPU trends, network traffic, or disk I/O for provisioned instances.

  • Action: GetMonitorData

Custom Monitoring

To push your own application-specific metrics or business data into the Cloud Monitor system, use the PutMetricData API.

  • Use Case: Uploading custom business KPIs, application latency, or queue depths.

  • Action: PutMetricData


Supported Namespaces

The following table lists the supported cloud products and their corresponding Namespace identifiers required for API requests.

Namespace

Product Name

KEC

Object Storage (KS3)

EIP

Load Balancer (SLB)

Listener

Peering Connection

NAT

Shared Bandwidth

KRDS

NoSQL Database (KTS)

KCS

MongoDB (MONDB)

KAD

Bare Metal Server (EPC)

DCGW

Dedicated Host (KDC)

GPU

CDN

MEMCACHED

Distributed DB (DRDS)

EPCGPU

Data Transfer (KDTS)

KCE

RabbitMQ

KINGDB

Elasticsearch (KES)

KHBASE

Container Instance (KCI)

SQLSERVER

InfluxDB

WAF

KS3 Accelerate

KPFS

vGPU

PGS

ClickHouse

KTIDB

KMR Cluster

KMR

Cassandra

KIS

Note: Ensure the Namespace parameter in your API request matches the identifier exactly (case-sensitive).


Important Considerations & Data Consistency

When retrieving data via OpenAPI or SDK, you may observe discrepancies compared to the values displayed in the Kingsoft Cloud Console. These differences are expected and stem from the following factors:

Unit Differences

  • Network Traffic: For resources such as KEC, KDC, and GPU:

    • Console: Displays data in bps (bits per second).

    • SDK/API: Returns data in Bps (Bytes per second).

    • Conversion: $1 \text{ Bps} = 8 \text{ bps}$.

Sampling Intervals

The Console and API may utilize different default sampling granularities depending on the time range selected:

  • Console: Automatically adjusts sampling intervals (e.g., 0.5h, 1 day, 3 days, 1 week) for visualization optimization.

  • API: Returns raw data points based on the Period parameter specified in your request. Ensure your requested period aligns with your analysis needs.

Aggregation Methods

Cloud Monitor supports three aggregation methods: max, min, and average.

  • The Console may apply a specific aggregation logic optimized for visual charts.

  • The API returns data strictly based on the Statistics parameter you provide. Mismatched aggregation types will result in different numerical values.

Time Zone

  • All input and output timestamps in the OpenAPI and SDK are based on Beijing Time (UTC+8).

  • They are not in UTC. Please adjust your local time conversion logic accordingly if your application operates in a different time zone.


API Reference

This section provides a comprehensive list of available API operations categorized by functionality.

Cloud Service Monitoring

These APIs allow you to retrieve monitoring metrics and data for standard Kingsoft Cloud products.

API Name

Description

ListMetrics

Retrieves a list of available monitoring metrics for a specified namespace and instance ID.

GetMetricStatistics

Retrieves historical or real-time monitoring data for a specific cloud product metric.

GetMetricStatisticsBatch

Retrieves monitoring data for multiple metrics or instances in a single request (batch operation).

DescribeMonitorProductList

Retrieves the list of cloud products supported by the Cloud Monitor service.



Container Monitoring

Specific APIs for monitoring containerized environments (e.g., KCE, KCI).

API Name

Description

ListMetrics

Retrieves a list of available monitoring metrics specifically for container resources.

GetMetricStatistics

Retrieves statistical data for container-related metrics (e.g., pod CPU, memory usage).

Note: The original input incorrectly described ListMetrics in this section as "upload data". It has been corrected to reflect its actual function: listing metrics.)

Alarm Policies

Manage alerting rules, notification receivers, and contact groups to ensure timely response to infrastructure issues.

API Name

Description

CreateAlarmPolicy

Creates a new alarm policy with specified thresholds and notification settings.

ListAlarmPolicy

Retrieves a list of all alarm policies configured under the current account.

DescribeAlarmPolicy

Retrieves detailed information for a specific alarm policy (excluding associated instance details).

DescribePolicyObject

Retrieves the list of instances/resources associated with a specific alarm policy.

DescribeAlarmReceives

Retrieves the list of notification receivers (users/groups) associated with an alarm policy.

AddAlarmReceives

Adds new notification receivers to an existing alarm policy.

DeleteAlarmReceives

Removes specified notification receivers from an alarm policy.

DeleteAlarmPolicy

Deletes a specified alarm policy.

GetUserGroup

Lists all contact groups configured under the current account.

GetAlertUser

Retrieves contact information for users within the current account.

UpdateAlertUserStatus

Enables or disables specific contacts within a contact group.


Event Center

Query system events and incident groups generated by the cloud platform.

API Name

Description

DescribeSysEventGroupList

Retrieves a list of system event groups for the current account.

DescribeSystemEventAttributes

Retrieves detailed attributes and information for a specific system event.


On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback