tencent cloud

TencentCloud Managed Service for Prometheus

문서TencentCloud Managed Service for Prometheus

Migration from Self-Built Prometheus

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-29 15:55:07

Overview

You can quickly migrate from your self-built Prometheus service to TMP.

Directions

Prometheus itself supports remote write to an external storage; therefore, you can add a remote write configuration pointing to TMP in the configuration file of your self-built Prometheus. The steps are as follows:
1. Get the remote write address and token of TMP through the basic information of the instance as follows:


2. Modify prometheus.yml and restart Prometheus. The specific configuration is as follows. For more information on the remote write configuration parameters, please see remote_write.
remote_write:

- name: cm_prometheus # Remote write name
url: http://ip:port/api/v1/prom/write # Get the remote write address from the basic information of the TMP instance
remote_timeout: 30s # Set according to the actual situation
bearer_token: k32*****trR # Get the token information from the basic information of the TMP instance

3. Open the Grafana service that comes with TMP and use Explore to verify whether the data is written successfully as shown below. You can also customize Grafana monitoring dashboards.


4. You can also use Prometheus APIs for self-built visualization. For more information, please see Monitoring Data Query.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백