当前位置:网站首页>【CDH】通过 ClouderaManager 配置CDH组件用 prometheus 监控采集JMX信息
【CDH】通过 ClouderaManager 配置CDH组件用 prometheus 监控采集JMX信息
2022-07-28 16:24:00 【kiraraLou】
前言:
最近需要在 cloudera manager 监控界面对CDH 的组件来用 prometheus 监控。也参考了很多网上的资料,目前很多都是修改的后台配置文件,目前测试下来,如果通过 cloudera manager 来启动服务,感觉配置没有生效。这里采用在 cloudera manager 监控界面配置参数的方式,已经测试通过。这里整理并记录一下。
具体实践:
这里以 Hbase 服务为例。来进行我们配置,别的组件参考即可。
依赖组件
需要用到的服务有
- prometheus
- grafana
- jmx_exporter
https://github.com/prometheus/jmx_exporter
修改配置

在HBase 配置中修改 **HBase 服务环境高级配置代码段(安全阀)**:
配置内容参考如下:
HBASE_MASTER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=10101 -javaagent:/run/cloudera-scm-agent/jmx_prometheus_javaagent-0.16.1.jar=9213:/run/cloudera-scm-agent/hbase.yml
HBASE_REGIONSERVER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=10102 -javaagent:/run/cloudera-scm-agent/jmx_prometheus_javaagent-0.16.1.jar=9214:/run/cloudera-scm-agent/hbase.yml
hbase.yml
hbase.yml 文件内容如下:
---
lowercaseOutputName: true
lowercaseOutputLabelNames: true
rules:
- pattern: Hadoop<service=HBase, name=RegionServer, sub=Regions><>Namespace_([^\W_]+)_table_([^\W_]+)_region_([^\W_]+)_metric_(\w+)
name: HBase_metric_$4
labels:
namespace: "$1"
table: "$2"
region: "$3"
- pattern: Hadoop<service=(\w+), name=(\w+), sub=(\w+)><>([\w._]+)
name: hadoop_$1_$4
labels:
"name": "$2"
"sub": "$3"
- pattern: .+
遇到问题
之前调试一直跑不通,各种修改文件权限,路径,版本的方式都尝试过了,最后发现 yml 文件的后缀必须为 .yml,而不能为 yaml。不知道为什么,有知道的大佬还请指教。
总结:
到此其实已经实现CDH集群集成prometheus,剩下的内容就比较简单了,使用prometheus监听端口即可,这里不是我们的重点。
参考:
- https://community.cloudera.com/t5/Support-Questions/Adding-a-javaagent-in-CDH-5-or-6-2/m-p/304399
- https://community.cloudera.com/t5/Support-Questions/Customize-Hbase-JVM-settings-in-CDH-5-4-2/td-p/30997
- https://zhuanlan.zhihu.com/p/358908161
边栏推荐
- GEAR: Graph-based Evidence Aggregating and Reasoning for Fact Verification
- 高速电路中电阻的选择
- 线性代数及矩阵论(八)
- 微信小程序现金红包返回“IP地址非你在商户平台设置的可用IP地址”错误终极解决方法
- Reduce cycle complexity
- 总数据量超万亿行,玉溪卷烟厂通过正确选择时序数据库轻松应对
- What does the service grid that has been popular for two years bring to microservices? (Reprinted)
- Unity shader screen post-processing
- 创建自定义分页控件
- MySQL详细学习教程(建议收藏)
猜你喜欢

C# 导入Excel文件数据的几种方法

UNIQUE VISION Programming Contest 2022(AtCoder Beginner Contest 248)G. GCD cost on the tree

高速电路中电感的选型和应用

Re10: are we really making much progress? Revisiting, benchmarking, and refining heterogeneous gr

System clock failure of database fault tolerance

Verilog 每日一题 (VL5 信号发生器)

Net framework

利用SQL Server代理作业对数据库进行定时还原

Introduction to vscade interface

MySQL详细学习教程(建议收藏)
随机推荐
Unity shader uses rendered texture to achieve glass effect
The 16th program design competition of Dalian University of Technology (Problem Solver)
Games101 section 13 ray tracing notes
Realize the reset function of steering wheel UI with touch rotation and finger departure in unity
Verilog 每日一题 (VL28 加减计数器)
《Kubernetes》你需要掌握的 Service 和 Ingress
Function接口之andThen
wpf命令按钮透明样式
带参数的微信小程序二维码生成
在android开发过程中遇到.sqlite文件处理
Algorithm learning: leetcode interview question 09. implement queue with two stacks
Goweb开发之Beego框架实战:第三节 程序执行流程分析
Unity shader screen post-processing
Pytorch Foundation: similarities and differences between torch.mul, torch.mm and torch.matmul
Analysis of browser decoding process
堡垒机的作用
格雷码和二进制的转换及典型例题(4bits格雷码计数器)
软考回顾总结
Comprehensively design an oppe homepage -- page service part
Goweb开发之Beego框架实战:第四节 数据库配置及连接