Obtaining the Service Address of a Prometheus Instance
In the Service Addresses area on the Settings tab page of the default or common Prometheus instance or of the Prometheus instance for ECS, CCE, you can obtain the configuration code for Prometheus remote read and write. In the Service Addresses area on the Settings tab page of the Prometheus instance for cloud services/multi-account aggregation, you can obtain the configuration code for Prometheus remote read.
Prerequisites
Procedure
- Log in to the AOM 2.0 console.
- In the navigation pane on the left, choose Prometheus Monitoring > Instances. In the instance list, click the created Prometheus instance.
- On the instance details page, choose Settings in the navigation pane to obtain the service address of the current instance.
The following describes how to obtain the service address of a Prometheus instance for CCE.
- Click the Intranet or Public Network tab to obtain the configuration code for Prometheus remote read and write in the intranet or public network. Click on the right of the code to copy the code to the corresponding file.
- Obtain the configuration code for Prometheus remote read.
Figure 1 Configuration code for Prometheus remote read
Remote read address:
url: 'https://aom.{region_name}.{Site domain name suffix}/v1/{project_id}/api/v1/read'
Remote read address parameters:- region_name: domain name or IP address of the server where the REST service is deployed. The value varies depending on services and regions.
- Site domain name suffix: site domain name suffix, for example, myhuaweicloud.com.
- project_id: project ID.
- Obtain the configuration code for Prometheus remote write.
Figure 2 Configuration code for Prometheus remote write
Remote write address in the intranet:
url: 'https://aom-internal-access.{region_name}.{Site domain name suffix}:8443/v1/{project_id}/push'
Remote write address in the public network:
url: 'https://aom-access.{region_name}.{Site domain name suffix}:8443/v1/{project_id}/push'
Remote write address parameters:- region_name: domain name or IP address of the server where the REST service is deployed. The value varies depending on services and regions.
- Site domain name suffix: site domain name suffix, for example, myhuaweicloud.com.
- project_id: project ID.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot