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

EMR Metric Collection Component of Prometheus

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2025-03-28 17:25:30

Overview

During the use of Tencent Cloud Elastic MapReduce (EMR), you may need to report EMR monitoring metrics to TencentCloud Managed Service for Prometheus (TMP). Follow the guide in this document to quickly collect EMR monitoring metrics.

Collecting EMR on CVM Instances

Prerequisites

Using the region and Virtual Private Cloud (VPC) that are the same as those of the EMR, purchase a TMP instance. For the supported regions, see the service regions supported by TMP.
Notes:
TMP collects monitoring metrics through the private network address of EMR nodes. To collect metrics across VPCs, ensure the networks are interconnected.
With networks connected, cross-account collection is supported.

Operation Steps

1. Log in to TCOP console.
2. Select Managed Service for Prometheus in the left menu bar.
3. In the TMP instance list, select the corresponding instance.
4. Go to the instance details page, and select Data Collection > Integration Center.
5. Find and click EMR on CVM in the Integration Center, and an installation window will pop up. Confirm the information and click Save.

6. Enter the EMR console, click the cluster ID/name, and on the Instance Information page, obtain the region of the EMR cluster and the EMR instance ID.

7. Fill in the task configuration (in YAML format) in EMR console. Then, fill in the task name, region where the EMR cluster is located, and EMR instance ID in the red box of the following figure.
Notes:
For the format of the region, see the region description in service regions. For example, ap-guangzhou.
Multiple instance IDs are supported.
For the relabel_configs configuration, see Capture Configuration Instructions.


Collecting EMR on TKE Instances

Prerequisites

Associate the TMP instance with the container cluster where the EMR on TKE instance is located. See Associating with a Cluster.

Operation Steps

1. Log in to the TCOP console.
2. Select Managed Service for Prometheus in the left menu bar.
3. In the TMP instance list, select the corresponding instance.
4. Go to the instance details page, and select Data Collection > Integration Center.
5. Find and click EMR on TKE in the Integration Center, and an installation window will pop up.

6. Select the container cluster where the EMR on TKE instance is located. The system will automatically find the EMR on TKE instances in the container cluster. Select the instances to be collected and move them to the box on the right. Click Save.

Collecting EMR Serverless Instances

Prerequisites

Using the region and Virtual Private Cloud (VPC) that are the same as those of the EMR, purchase a TMP instance. For the supported regions, see the service regions supported by TMP.
Notes:
TMP collects monitoring metrics through the private network address of EMR nodes. Establishing network connectivity is required for cross-VPC collection.
With networks connected, across-account collection is supported.

Operation Steps

1. Log in to the TCOP console.
2. Select Managed Service for Prometheus in the left menu bar.
3. In the TMP instance list, select the corresponding instance.
4. Go to the instance details page, and select Data Collection > Integration Center.
5. Find and click EMR Serverless in the Integration Center, and an installation window will pop up. After confirming the information, click Save.

6. Enter the EMR console, click the Cluster ID/Name, and on the Instance Information page, obtain the region of the EMR cluster and the EMR Instance ID.

7. Fill in the task configuration (Yaml format). In the red box of the following figure, fill in the task name, region where the EMR cluster is located, and EMR Instance ID in order.
Notes:
For the format of the region, see the region description in service regions. For example, ap-guangzhou.
Multiple instance IDs are supported.
For the relabel_configs configuration, see Capture Configuration Instructions.


Supported Metrics

TMP supports all EMR metrics. For a detailed metric list, see Node Monitoring Metrics.

How to Correctly Tell Service Anomaly?

The service_status metric of EMR on CVM displays 0 when service is abnormal or the user manually stops the service. You cannot distinguish service anomaly, because EMR cannot directly provide metrics of service anomaly. You can only judge whether the user has manually stopped the service. TMP adds the emr_additional_service_status metric according to the information of whether the service is manually stopped. Together with the service_status metric, you can tell whether it is service anomaly. The value 0 indicates service anomaly.
(service_status{} * on(instance_id, host, type) group_left() (emr_additional_service_status{} == 1))
For the EMR on TKE instances and EMR Serverless instances, they do not have the above situation. You can use the service_status metric to tell whether it is service anomaly. The value 0 indicates service anomaly.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan