当前位置:网站首页>使用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
边栏推荐
- 西瓜书《机器学习》阅读笔记之第一章绪论
- Inside router of network equipment hard core technology (10) disassembly of Cisco asr9900 (4)
- Introduction of the connecting circuit between ad7606 and stm32
- Design scheme of digital oscilloscope based on stm32
- Network equipment hard core technology insider router 20 dpdk (V)
- Leetcode 244周赛-赛后补题题解【西兰花选手】
- Is it safe to open an account on a mobile phone?
- 两阶段提交与三阶段提交
- 分布式锁
- 《剑指Offer》 链表反转
猜你喜欢

反射

Google team launches new transformer to optimize panoramic segmentation scheme CVPR 2022

Leetcode 240. search two-dimensional matrix II medium

reflex

With just two modifications, apple gave styleganv2 3D generation capabilities

Unity性能优化------渲染优化(GPU)之LOD(Level of detail)

Unity performance optimization ----- occlusion culling of rendering optimization (GPU)

泛型

3.3-5v conversion

The mobile terminal uses the list component of vantui. When multiple tab items are switched back and forth, the list is loaded many times, resulting in the failure of normal display of data
随机推荐
Selenium reports an error: session not created: this version of chromedriver only supports chrome version 81
Method of removing top navigation bar in Huawei Hongmeng simulator
LeetCode 456. 132模式 单调栈/medium
With just two modifications, apple gave styleganv2 3D generation capabilities
4种单片机驱动继电器方案
"Sword finger offer" linked list inversion
Internship: compilation of other configuration classes
Leetcode interview question 17.21. water volume double pointer of histogram, monotonic stack /hard
《剑指Offer》 合并两个排序的链表
Network equipment hard core technology insider router Chapter 5 tompkinson roaming the network world (Part 1)
Leetcode 190. reverse binary bit operation /easy
LeetCode 190. 颠倒二进制位 位运算/easy
两阶段提交与三阶段提交
AssetBundle如何打包
The design method of integral operation circuit is introduced in detail
Singles cup, web:web check in
Network equipment hard core technology insider router Chapter 17 dpdk and its prequel (II)
Do you really understand CMS garbage collector?
cap理论和base理论
Unity最简洁的对象池实现