当前位置:网站首页>[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics
[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics
2022-07-23 11:40:00 【Bigdata Wang Yi】
Catalog
1 Prometheus Install and use
prometheus Download address :
https://prometheus.io/download/
open http://localhost:9090/ You can access and use
2 pushgateway Install and use
Directly transport after decompression ⾏ ./prometheus You can start it prometheus
prometheus pushgateway Download address :
https://prometheus.io/download/
edit Prometheus Medium prometheus.yaml file
- job_name: 'pushgateway'
scrape_interval: 10s
honor_labels: true # Add this configuration exporter Nodes upload data ⼀ Some labels will not be pushgateway The same label of the node overrides
static_configs:
- targets: ['192.168.xx.xxx:9095']
labels:
instance: pushgateway
because prometheus To configure pushgateway When , Will also specify job and instance, But it only means
pushgateway example , Can't really express the meaning of collecting data . So configuration pushgateway Need to add
honor_labels:true, Avoid collecting the data itself job and instance Be overwritten
start-up pushgaterway
./pushgaterway --web.listen-address=192.168.xx.xxx:9095
3 flink To configure
vi flink-conf.yaml
Add... At the bottom
metrics.reporter.promgateway.class: org.apache.flink.metrics.prometheus.PrometheusPushGatewayReporter
metrics.reporter.promgateway.host: 192.168.xx.xxx
metrics.reporter.promgateway.port: 9095
metrics.reporter.promgateway.jobName: wyJob
metrics.reporter.promgateway.randomJobNameSuffix: true
metrics.reporter.promgateway.deleteOnShutdown: false
start-up Flink, You can see the port number in the startup log
Prometheus Check the following indicators


边栏推荐
- Application of higher-order functions: handwritten promise source code (4)
- 编译原理-语法分析详解
- Analysis of two-part search method or half search method of C language (classic example, classic analysis)
- MySQL索引&&执行计划
- Usage of some, every, find, FindIndex
- User defined MVC usage & addition, deletion, modification and query
- Solve the problem that the time format of manually querying Oracle database is incorrect (date type)
- NFT digital collection platform development and construction, source code development digital collection
- Web component - the lifecycle of a custom element
- 页面实现 “实时数据响应” 的注意事项
猜你喜欢

flex+js实现内部盒子高度跟随其中最大的高度

Nepctf 2022 misc < check in question > (extreme doll)

Security problems of FileInfo in PHP file upload

数字藏品系统开发:NFT的主要特点有哪些?

通用查询&分页代码

Typescript advanced type

Genesis provided a loan of US $2.36 billion to Sanya capital

NFT数字藏品系统开发,数字藏品的发展趋势

NepCTF 2022 MISC <签到题>(极限套娃)

MySQL增删改查&&高级查询语句
随机推荐
Phxpaxos installation and compilation process
sqli-lab 1-16通关随笔记
[pyautogui learning] screen coordinates and mouse scrolling
Man in the middle attacks ARP Spoofing and its linkage with beef XSS
数字藏品开发/数字藏品系统开发解决方案
Precautions for realizing "real-time data response" on the page
D2dengine edible tutorial (1) -- the simplest program
mysql修改函数权限未生效
Dynamically set the theme color of the card
MySQL增删改查&&高级查询语句
Command Execution Vulnerability and defense
MySQL之账号管理&&四大引擎&&建库建表
Principle of file upload vulnerability
Usage of some, every, find, FindIndex
MySQL索引&&执行计划
The tree form based on El table and JS xlsx realize the function of downloading excel (II)
Vite X Figma 打造设计师专属的 i18n 插件
phxpaxos安装编译流程
自定义公式输入框
编译原理-语法分析详解