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

Prometheus Data Sources

Prometheus is an open-source system monitoring and alarm tool package. It is used to collect and store time series data and provides powerful query and alarm functions. Huawei Cloud Astro Canvas can connect to the Prometheus data source and display data in Prometheus as widget data.

Creating a Prometheus Data Source

  1. Log in to Huawei Cloud Astro Canvas by referring to Logging In to Huawei Cloud Astro Canvas.
  2. Choose Data Center from the main menu.
  3. In the navigation pane, choose Data Sources.
  4. On the Data Sources page, click Create.
  5. Choose Prometheus and set data source parameters.

    Figure 1 Creating a Prometheus data source
    • Name: name of the data source, which is used to identify the data source. The name can contain 1 to 32 characters, including letters, digits, and underscores (_), but cannot start or end with an underscore (_).
    • Service Address: The service address of the API that returns Prometheus data. Variables are supported, for example, https:example. {region}.com. Variables can be modified when the data source is used, as shown in Figure 3.
      Figure 2 Variable in the service address
      Figure 3 Changing the variable
    • API Authentication Mode: Select the API authentication method. Options include no authentication or basic authentication (using username and password).
      • No authentication means the API can be called directly without providing any authentication information. It is typically used for accessing public APIs.
      • Basic Authentication (using username and password) involves verifying users with their username and password.
    • User name: The username used for the basic authentication. This parameter is displayed only when the API authentication mode is set to the basic authentication (using username and password).
    • Password: The password used for the basic authentication. This parameter is displayed only when the API authentication mode is set to the basic authentication (using username and password).
    • Description: description of the data source to be created. The value contains a maximum of 128 characters.

  6. Click Test. If the connection is successful, the data source is ready to use.
  7. Click Save.