Updated on 2022-12-19 GMT+08:00

Overview

Access Management allows you to quickly connect monitoring data to AOM. This function determines whether to establish or delete network channels, and generate or revoke authentication credentials for reporting monitoring data.

This function is available only in the following regions: CN North-Beijing1, CN North-Beijing2, CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, CN Southwest-Guiyang1, CN-Hong Kong, Ulanqab1, and AP-Singapore.

By using the generated access code as an authentication credential, you can remotely report native Prometheus metrics to AOM according to Reporting Prometheus Data to AOM and store time series data for a long time. You can also use the access code to query data in AOM according to Viewing Metric Data in AOM Using Grafana. AOM supports the following native Prometheus APIs:

APIs for querying Prometheus data:
  • GET /v1/:project_id/api/v1/query
  • GET /v1/:project_id/api/v1/query_range
  • GET /v1/:project_id/api/v1/labels
  • GET /v1/:project_id/api/v1/label/:label_name/values
  • POST /v1/:project_id/api/v1/query
  • POST /v1/:project_id/api/v1/query_range
  • POST /v1/:project_id/api/v1/labels

When calling the preceding APIs, add access_code to the Authorization field in the request header.

Example: "Authorization: Bearer {access_code}" or "Authorization: Basic base64Encode("aom_access_code:{access_code}")"

API for reporting time series data: POST /v1/:project_id/push

base64Encode means that parameters are encoded using Base64.