tencent cloud

Tencent Cloud Observability Platform

Release Notes and Announcements
Release Notes
Product Introduction
Overview
Strengths
Basic Features
Basic Concepts
Use Cases
Use Limits
Purchase Guide
Tencent Cloud Product Monitoring
Application Performance Management
Mobile App Performance Monitoring
Real User Monitoring
Cloud Automated Testing
Prometheus Monitoring
Grafana
EventBridge
PTS
Quick Start
Monitoring Overview
Instance Group
Tencent Cloud Product Monitoring
Application Performance Management
Real User Monitoring
Cloud Automated Testing
Performance Testing Service
Prometheus Getting Started
Grafana
Dashboard Creation
EventBridge
Alarm Service
Cloud Product Monitoring
Tencent Cloud Service Metrics
Operation Guide
CVM Agents
Cloud Product Monitoring Integration with Grafana
Troubleshooting
Practical Tutorial
Application Performance Management
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Parameter Information
FAQs
Mobile App Performance Monitoring
Overview
Operation Guide
Access Guide
Practical Tutorial
Tencent Cloud Real User Monitoring
Product Introduction
Operation Guide
Connection Guide
FAQs
Cloud Automated Testing
Product Introduction
Operation Guide
FAQs
Performance Testing Service
Overview
Operation Guide
Practice Tutorial
JavaScript API List
FAQs
Prometheus Monitoring
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Terraform
FAQs
Grafana
Product Introduction
Operation Guide
Guide on Grafana Common Features
FAQs
Dashboard
Overview
Operation Guide
Alarm Management
Console Operation Guide
Troubleshooting
FAQs
EventBridge
Product Introduction
Operation Guide
Practical Tutorial
FAQs
Report Management
FAQs
General
Alarm Service
Concepts
Monitoring Charts
CVM Agents
Dynamic Alarm Threshold
CM Connection to Grafana
Documentation Guide
Related Agreements
Application Performance Management Service Level Agreement
APM Privacy Policy
APM Data Processing And Security Agreement
RUM Service Level Agreement
Mobile Performance Monitoring Service Level Agreement
Cloud Automated Testing Service Level Agreement
Prometheus Service Level Agreement
TCMG Service Level Agreements
PTS Service Level Agreement
PTS Use Limits
Cloud Monitor Service Level Agreement
API Documentation
History
Introduction
API Category
Making API Requests
Monitoring Data Query APIs
Alarm APIs
Legacy Alert APIs
Notification Template APIs
TMP APIs
Grafana Service APIs
Event Center APIs
TencentCloud Managed Service for Prometheus APIs
Monitoring APIs
Data Types
Error Codes
Glossary

Data Collection Configuration

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-08-07 22:07:45

Overview

This document describes how to configure monitoring collection items for the associated cluster.

Prerequisites

Before configuring monitoring collection items, you need to perform the following operations:
The Prometheus monitoring instance has been successfully created.
The cluster to be monitored has been associated with the corresponding instance.

Directions

Configuring Data Collection

1. Log in to TMP Console.
2. On the instance list page, select the name of the instance that requires configuring data collection rules and enter its details page.
3. On the Data Collection > Integration with TKE page, click Data Collection Configuration on the right of the instance to enter the collection configuration list page.
4. Click Metrics collection management at the top of the page to pop up the Basic Monitoring Metrics Collection Management page.
If you need to collect all container chart metrics, you can click One-click collection of preset chart metrics in the pop-up window, and then click OK in the pop-up confirmation window to collect all preset chart metrics.






If only part of the metrics need to be collected, you can filter the metrics through, monitoring charts and Recording Rule, select the metrics you need, and then click OK. For details, see the following figure.



5. On the "Data Collection Configuration" page, click Customize Monitoring Configuration to add a new data collection configuration. TKE has preset some collection configuration files for collecting standard monitoring data. You can configure new data collection rules to monitor your business data in the following two ways:
Adding Configuration in the Console
Adding Configuration via YAML File

Monitoring Service

1. Click On this Page.
2. In the "Create Collection Configuration" pop-up window, fill in the configuration information. For details, see the following figure.



1. Click Via YAML.
2. In the pop-up window, select the monitoring type and fill in the corresponding configuration. You can complete the data collection configuration by submitting the corresponding YAML as per community usage.
Workload Monitoring: Corresponding configuration is PodMonitors.
Service Monitoring: Corresponding configuration is ServiceMonitors.
RawJobs Monitoring: Corresponding configuration is RawJobs.
6. Click OK to complete the configuration.
7. On the Data Collection Configuration page of the instance, view the status of the collection target. For details, see the following figure.



targets(1/1) means (the actual number of targets scraped is 1 / the number of detected collection targets is 1). When the actual number of scraped targets equals the number of detected targets, it is displayed as up, indicating that the current scrape is normal. When the actual number of scraped targets is less than the number of detected targets, it is displayed as down, indicating that some endpoints failed to scrape. Click the field value (1/1) in the above figure to view more details about the collection target. For details, see the following figure.




View Existing Configurations

1. Log in to TMP Console.
2. On the instance list page, select the name of the instance that requires configuring data collection rules and enter its details page.
3. On the Data Collection > Integration TKE page, click Data Collection Configuration on the right side of the instance to enter the collection configuration list page. Select Basic Monitoring or Custom Monitoring, then click Edit on the right.
4. In the pop-up edit window, view all monitoring objects currently configured in the YAML file. For details, see the following figure.




View Collection Targets

1. Log in to TMP Console.
2. On the monitoring instance list page, select the instance name whose targets you want to view and enter the details page of the instance.
3. On the Data Collection > Integration with TKE page, click Data Collection Configuration on the right side of the instance.



4. In the pop-up window, click the status under targets to jump to the details page of the current data.







Related Operations

Mounting Files to a Collector

When configuring the collection item, if you need to provide some files for the configuration, such as a certificate, you can mount the files to the collector in the following way. The file update will be synchronized to the collector in real time.
prometheus.tke.tencent.cloud.com/scrape-mount = "true" Add the above label to the configmap under the prom-xxx namespace. All keys will be mounted to the collector's path /etc/prometheus/configmaps/[configmap-name]/.
prometheus.tke.tencent.cloud.com/scrape-mount = "true" Add the above label to the secret under the prom-xxx namespace. All keys will be mounted to the collector's path /etc/prometheus/secrets/[secret-name]/.

도움말 및 지원

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

피드백