How Do I Obtain the Service Address of a Prometheus Instance?
You can log in to the AOM console and go to the Prometheus instance details page to obtain the service address of the Prometheus instance.
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 target 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 tab to obtain the configuration code for Prometheus remote read and write in the intranet. 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.
- 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 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.
- project_id: project ID.
- Click the Intranet tab to obtain the configuration code for Prometheus remote read and write in the intranet. Click
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