tencent cloud

TencentCloud Managed Service for Prometheus

Product Introduction
Overview
Strengths
Use Cases
Concepts
Use Limits
Features
Service Regions
Purchase Guide
Billing Overview
Pay-as-You-Go (Postpaid)
Free Trial Introduction
Managed Collector Billing Introduction
Archive Storage Billing Introduction
Purchase Methods
Payment Overdue
Getting Started
Integration Guide
Scrape Configuration Description
Custom Monitoring
EMR Integration
Java Application Integration
Go Application Integration
Exporter Integration
Nacos Integration
Common Exporter
Health Check
Instructions for Installing Components in the TKE Cluster
Cloud Monitoring
Non-Tencent Cloud Host Monitoring
Read Cloud-Hosted Prometheus Instance Data via Remote Read
Agent Self-Service Access
Pushgateway Integration
Security Group Open Description
Operation Guide
Instance
TKE
Integration Center
Data Multi-Write
Recording Rule
Instance Diagnosis
Archive Storage
Alerting Rule
Tag
Access Control
Grafana
API Guide
TKE Metrics
Resource Usage and Billing Overview
Practical Tutorial
Migration from Self-Built Prometheus
Custom Integration with CVM
TKE Monitoring
Enabling Public Network Access for TKE Serverless Cluster
Connecting TMP to Local Grafana
Enabling Public Network Access for Prometheus Instances
Configuring a Public Network Address for a Prometheus Instance
Terraform
Terraform Overview
Managing Prometheus Instances Using Terraform
Managing the Integration Center of Prometheus Instances Using Terraform
Collecting Container Monitoring Data Using Terraform
Configuring Alarm Policies Using Terraform
FAQs
Basic Questions
Integration with TKE Cluster
Product Consulting
Use and Technology
Cloud Monitor FAQs
Service Level Agreement
TMP Policy
Privacy Policy
Data Processing And Security Agreement

Migration from Self-Built Prometheus

PDF
Focus Mode
Font Size
Last updated: 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.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback