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

Managing Prometheus Instances

You can view the names, types, and enterprise projects of Prometheus instances in the instance list and modify and delete them as required.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane on the left, choose Metric Analysis > Prometheus Monitoring. In the instance list, check the created Prometheus instances and perform the operations listed in Table 1 if needed.

    Table 1 Related operations

    Operation

    Description

    Searching for a Prometheus instance

    Enter an instance name in the search box and click .

    Filtering and displaying Prometheus instances

    Click next to the Instance Type column to filter Prometheus instances.

    Refreshing Prometheus instances

    Click in the upper right corner of the Prometheus instance list to obtain their latest information in real time.

    Sorting Prometheus instances

    Click in the Created column to sort Prometheus instances. indicates the default order. indicates the ascending order by time (the latest instance is displayed at the bottom). indicates the descending order by time (the latest instance is displayed at the top).

    Viewing a Prometheus instance

    The Prometheus instance list displays information such as the instance name, instance type, enterprise project, and creation time in real time.

    • When you have an access code:

      Click an instance name. On the displayed instance details page, choose Settings and view the basic information and credential of the instance.

      • By default, the AppSecret is hidden. To show it, click . or reflects the status of the AppSecret.
      • In the Grafana Data Source Info area, obtain the Grafana data source configuration code in the private or public network of the desire Prometheus instance. Then click on the right to copy the code to the corresponding file.
      • In the Service Addresses area, obtain the configuration code in the private or public network of the desire Prometheus instance. Then click on the right to copy the code to the corresponding file. For details, see Obtaining the Service Address of a Prometheus Instance.
    • When you do not have an access code:
      1. Click an instance name. On the displayed instance details page, choose Settings and view the basic information about the instance. The system displays a message indicating that there is no access code.
      2. Click Add Access Code. In the displayed dialog box, click OK.

      Then, choose Management > Global Configuration in the navigation pane of the AOM 2.0 console. On the displayed page, choose Authentication in the navigation pane and manage access codes. For details, see More Operations.

    Modifying a Prometheus instance

    • Modify a Prometheus instance name:

      Click in the Operation column that contains the target Prometheus instance. The name of each Prometheus instance in an enterprise project must be unique.

    • Modify Prometheus instance configurations:

      In the Prometheus instance list, click the name of a Prometheus instance for cloud services, CCE and modify the connected cloud services/CCE clusters if needed.

    Deleting a Prometheus instance

    Click in the Operation column that contains the target Prometheus instance.