当前位置:网站首页>[CDH] configure CDH components through clouderamanager and collect JMX information with Prometheus monitoring
[CDH] configure CDH components through clouderamanager and collect JMX information with Prometheus monitoring
2022-07-28 17:27:00 【kiraraLou】
Preface :
I need to be in cloudera manager Monitoring community face CDH Components of prometheus monitor . I also refer to many online materials , At present, many of them are modified background configuration files , Now it's tested , If you pass cloudera manager To start the service , I feel that the configuration is not effective . Here we use cloudera manager How to configure parameters in the monitoring interface , Has passed the test . Organize and record here .
Concrete practice :
Here we use Hbase Service as an example . Let's configure , Refer to other components .
Dependent components
The services needed are
- prometheus
- grafana
- jmx_exporter
https://github.com/prometheus/jmx_exporter
Modify the configuration

stay HBase Modify... In configuration **HBase Code snippet for advanced configuration of service environment ( Safety valve )**:
The configuration contents are as follows: :
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 The contents of the document are as follows :
---
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: .+
Have a problem
The debugging has not been able to run before , Various file modification permissions , route , The way of version has been tried , Finally found yml The suffix of the file must be .yml, But not for yaml. do not know why , If you know something, please give me some advice .
summary :
This has actually been achieved CDH Cluster integration prometheus, The rest is simple , Use prometheus Just listen to the port , This is not our point .
Reference resources :
- 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
边栏推荐
- Goweb开发之Beego框架实战:第一节 Beego框架介绍
- 【impala】【报错解决】 Impala cannot read or execute the parent directory of dfs.domain.socket.path的解决方法
- C#遍历集合
- 配置V530交换机步骤
- Verilog 每日一题(VL26 简易秒表)
- Round 1A 2022 - Code jam 2022 c.weightlifting (interval DP)
- System clock failure of database fault tolerance
- How do we do full link grayscale on the database?
- 侦察机与预警机的区别
- 线性代数及矩阵论(十)
猜你喜欢

Selection and application of capacitor in high speed circuit -- detailed explanation

Why do I choose to use go language?

Gray code and binary conversion and typical examples (4bits gray code counter)

Goweb开发之Beego框架实战:第二节 项目初始化配置

Educational codeforces round 126 (rated for Div. 2) f.teleporters (two sets and two points)

QR code generation of wechat applet with parameters

Verilog 每日一题(VL14 自动贩售机1--FSM常见题型)

Use of influxdb2

Verilog daily question (vl5 signal generator)

Goweb开发之Beego框架实战:第四节 数据库配置及连接
随机推荐
Linear algebra and matrix theory (VIII)
线性代数及矩阵论(七)
【presto 】presto 新版本升级详情
利用SQL Server代理作业对数据库进行定时还原
批量下载文件
Make full use of English
How do we do full link grayscale on the database?
Visual Studio 2015 团队开发之Azure DevOps篇
Verilog daily question (vl24 multi bit MUX synchronizer cross time domain output)
Shopee code League 2022 - qualification round p3.connecting the numbers (segment tree / bipartite graph determination, to be discussed)
Verilog daily question (vl26 simple stopwatch)
Verilog 每日一题(VL4 移位运算与乘法)
【ansible】ansible shell 执行远程命令遇到awk 中$符号的问题
Fine-grained Fact Verification with Kernel GA Network
C#遍历集合
微信小程序现金红包返回“IP地址非你在商户平台设置的可用IP地址”错误终极解决方法
如何在构建阶段保护镜像安全
influxdb2的使用
Selection and application of inductors in high speed circuits
Analysis of browser decoding process