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

Pushgateway Integration

PDF
Focus Mode
Font Size
Last updated: 2024-10-29 11:19:50

Application Scenario

Pushgateway is a crucial member of the Prometheus ecosystem. It allows any client to push custom monitoring metrics that comply with the standards, which are then collected and monitored by Prometheus. Prometheus Pushgateway is used to receive metric data from short-term tasks, which cannot be directly monitored through the service discovery monitoring system. Pushgateway allows temporary jobs (such as batch processing jobs) to push metrics to a central location, without directly exposing their metrics. Such data can be pulled and persistently stored by the Prometheus server.

One-Click Installation

1. Log in to TCOP.
2. In the left sidebar, click Managed Service for Prometheus.
3. Select the corresponding Prometheus instance from the instance list.
4. On the instance details page, click Data Collection > Integration Center.
5. Search for Pushgateway in the integration center, and click it to pop up the installation window.
6. On the Installation tab of the pop-up window, fill in the relevant information as prompted and click Save.



Configuration Note
Parameters
Description
name
Exporter name, which should meet the following requirements:
The name should be unique.
The name should conform to the following regular expression: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'.
scrape timeout
Pushgateway collection timeout, which is in time format and cannot be greater than the collection interval.
scrape interval
Pushgateway collection interval, which is in time format.
CPU/core
Number limit of Pushgateway CPU cores, which cannot be greater than 64.
Memory/Gi
Pushgateway memory limit. During the configuration, the value should include the unit Gi and cannot be greater than 512 Gi.
7. Obtain Pushgateway address information from the integrated list.
Search for the required CAM policy as needed, and click to complete policy association.




Data Push

After Pushgateway is installed successfully, you can obtain the address for interaction and use this address to perform related operations on Pushgateway.
1. Obtain the component status:
curl -X GET http://10.*.*.*:8080/api/v1/status
2. Add a single data record to {job="some_job"}:
curl --location --request POST '10.*.*.*:8080/metrics/job/some_job' \\
--header 'Content-Type: text/plain' \\
--data 'some_metric 3.14
'
3. Add complex data to a specific instance:
curl --location --request PUT '10.*.*.*:8080/metrics/job/some_job/instance/some_instance' \\
--header 'Content-Type: text/plain' \\
--data '# TYPE some_metric counter
some_metric{label="val1"} 42
# TYPE another_metric gauge
# HELP another_metric Just an example.
another_metric 2398.283
'
4. Delete all data under {job="some_job",instance="some_instance"}:
curl -X DELETE http://10.*.*.*:8080/metrics/job/some_job/instance/some_instance
5. Delete all data under {job="some_job"} (excluding data under {job="some_job",instance="some_instance"}):
curl -X DELETE http://10.*.*.*:8080/metrics/job/some_job

Viewing Monitoring Information

Prerequisites

The Prometheus instance has been bound to a Grafana instance.

Directions

1. Log in to the TMP Console and select the corresponding Prometheus instance to enter its management page.
2. On the Basic Info page of the instance, find the bound Grafana address, open it, and log in to Grafana. Then, you can view the pushed metrics in Explore or create a panel to view metrics:
Search for the required CAM policy as needed, and click to complete policy association.




Help and Support

Was this page helpful?

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

Feedback