当前位置:网站首页>使用Prometheus监控Spark任务
使用Prometheus监控Spark任务
2022-07-27 14:23:00 【wankunde】
BackGroud
目前spark支持Graphite打点,但是Graphite默认会为每个打点生成对应的文件,直接只有两个点数据,graphite生成的文件也有200多k,对Graphite造成很大的压力。所以考虑使用Prometheus来代替Graphite。
Prometheus的打点默认是pull模式,和Graphite不同,而Spark3.0 新加的打点方式也是K8S友好的。所以还是考虑 使用Prometheus结合Graphite Exporter 的方式。
Graphite Exporter 新的配置文件
mappings:
- match: '*.applicationMaster.*'
name: spark_app_application_master
labels:
application: $1
qty: $2
- match: '*.*.executor.filesystem.*.*'
name: spark_app_filesystem_usage
labels:
application: $1
executor_id: $2
fs_type: $3
qty: $4
- match: '*.*.jvm.*.*'
name: spark_app_jvm_memory_usage
labels:
application: $1
executor_id: $2
mem_type: $3
qty: $4
- match: '*.*.ExecutorMetrics.*'
name: spark_app_executor_jvm_metrics
labels:
application: $1
executor_id: $2
mem_type: $3
- match: '*.*.executor.jvmGCTime.count'
name: spark_app_jvm_gcTime_count
labels:
application: $1
executor_id: $2
- match: '*.*.jvm.pools.*.*'
name: spark_app_jvm_memory_pools
labels:
application: $1
executor_id: $2
mem_type: $3
qty: $4
- match: '*.*.ExternalShuffle.shuffle-client.*'
name: spark_app_shuffle_client
labels:
application: $1
executor_id: $2
qty: $3
- match: '*.*.executor.*.count'
name: spark_app_executor_task_metrics
labels:
application: $1
executor_id: $2
qty: $3
- match: '*.*.executor.threadpool.*'
name: spark_app_executor_tasks
labels:
application: $1
executor_id: $2
qty: $3
- match: '*.*.BlockManager.*.*'
name: spark_app_block_manager
labels:
application: $1
executor_id: $2
type: $3
qty: $4
- match: '*.*.DAGScheduler.*.*'
name: spark_app_dag_scheduler
labels:
application: $1
executor_id: $2
type: $3
qty: $4
- match: '*.*.CodeGenerator.*.*'
name: spark_app_code_generator
labels:
application: $1
executor_id: $2
type: $3
qty: $4
- match: '*.*.HiveExternalCatalog.*.*'
name: spark_app_hive_external_catalog
labels:
application: $1
executor_id: $2
type: $3
qty: $4
- match: '*.*.*.StreamingMetrics.*.*'
name: spark_app_app_streaming_metrics
labels:
application: $1
executor_id: $2
app_name: $3
type: $4
qty: $5
Spark配置
Spark配置仍然采用Graphite打点配置,只需要将端口改为 9109即可
- 参考文档: https://blog.csdn.net/An1090239782/article/details/104945390
边栏推荐
- Selenium reports an error: session not created: this version of chromedriver only supports chrome version 81
- Unity性能优化------渲染优化(GPU)之LOD(Level of detail)
- USB接口电磁兼容(EMC)解决方案
- Network equipment hard core technology insider router chapter Cisco asr9900 disassembly (I)
- Notice on printing and distributing the Interim Measures for the administration of green manufacturing pilot demonstration of Shenzhen Bureau of industry and information technology
- Design scheme of digital oscilloscope based on stm32
- Network equipment hard core technology insider router Chapter 7 tompkinson roaming the network world (Part 2)
- 积分运算电路的设计方法详细介绍
- Unity3d learning note 10 - texture array
- Network equipment hard core technology insider router Chapter 6 tompkinson roaming the online world (middle)
猜你喜欢

LeetCode 74. 搜索二维矩阵 二分/medium

积分运算电路的设计方法详细介绍

CAN总线的EMC设计方案

Dan bin Investment Summit: on the importance of asset management!

TL431-2.5v基准电压芯片几种基本用法

工具 - markdown编辑器常用方法

Selenium reports an error: session not created: this version of chromedriver only supports chrome version 81

4种单片机驱动继电器方案

Leetcode-1737- minimum number of characters to change if one of the three conditions is met

Leetcode 190. reverse binary bit operation /easy
随机推荐
JMeter recording interface automation
STM32之CAN ---CAN ID过滤器分析
初探STM32掉电复位PDR
Network equipment hard core technology insider router Chapter 18 dpdk and its prequel (III)
Lua study notes
华云数据打造完善的信创人才培养体系 助力信创产业高质量发展
基于FIFO IDT7202-12的数字存储示波器
LeetCode 74. 搜索二维矩阵 二分/medium
STM32 can communication filter setting problem
Wechat applet realizes music search page
Reading notes of lifelong growth (I)
Notice on printing and distributing the Interim Measures for the administration of green manufacturing pilot demonstration of Shenzhen Bureau of industry and information technology
多线程环境下CountDownLatch的用法
魔塔项目中的问题解决
Dialog manager Chapter 3: create controls
LeetCode 90. 子集 II 回溯/medium
分布式锁
generic paradigm
2022-07-27 Daily: IJCAI 2022 outstanding papers were published, and 298 Chinese mainland authors won the first place in two items
Leetcode 90. subset II backtracking /medium