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

Connecting TMP to Local Grafana

PDF
Focus Mode
Font Size
Last updated: 2024-01-29 15:55:08
If you need to view the relevant data of TMP in the local Grafana system, you can use the HTTP API provided by TMP to do so. This document describes how to connect TMP data to local Grafana.

Directions

Step 1: Obtain the HTTP API provided by TMP

1. Log in to the TMP console.
2. Click the corresponding pay-as-you-go instance to enter the basic information page of TMP.
3. Get the HTTP API address in the service address module. If you need to improve the security of Grafana data read, you can obtain the authentication token of the TMP instance and fill it in as instructed in step 2.


Step 2. Add data source to local Grafana

1. Log in to the local Grafana system with admin account.
2. Select Configuration > Data Sources on the left sidebar (non-admins cannot view this menu).
3. On the Data Sources page, click Add data source.
4. On the Add data source page, select Prometheus.

5. On the Settings tab, enter a custom name in the Name field, and paste the HTTP API obtained in step 1 in the URL field.
6. Toggle on Basic Auth in the Auth module. In the Basic Auth Details module, set User same as Basic auth user and Password as Basic auth password obtained in the step 1.
7. Click Save & test to complete the settings.


Step 3. Verify whether the connection is successful

Follow the steps below to verify whether TMP is successfully connected to the local Grafana:
1. Log in to your local Grafana system.
2. On the left sidebar, select + > Create.
3. On the New dashboard page, click Add a new panel.
4. On the Edit Panel page, select the data source added in step 2 in the drop-down box on the Query page, enter the metric name in the Metrics field in the A module and press Enter.
5. If the chart of the corresponding metric can be displayed, the operation is successful. Otherwise, check whether the API address or token entered is correct, and whether the data source has TMP data.


Help and Support

Was this page helpful?

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

Feedback