Cloudera Manage中jmx_prometheus_javaagent-xxx.jar监控hive、hbase
根据jmx_prometheus_javaagent包和hbase.yml实际位置修改。根据jmx_prometheus_javaagent包和hs2.yml实际位置修改。
·
hive监控
一、下载jmx_prometheus_javaagent-xxx.jar包
二、hs2.yml配置文件
---
lowercaseOutputName: true
lowercaseOutputLabelNames: true
rules:
- pattern: '.*'
三、Cloudera Manage配置
点击hive集群,在配置中找到Hive 服务环境高级配置代码段(安全阀),输入:
HADOOP_CLIENT_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=2222 -javaagent:/tmp/root/hive/jmx_prometheus_javaagent-0.19.0.jar=321:/tmp/root/hive/hs2.yml
根据jmx_prometheus_javaagent包和hs2.yml实际位置修改
四、重启hive
hbase监控
一、下载jmx_prometheus_javaagent-xxx.jar包
二、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: .+
三、Cloudera Manage配置
点击hbase集群,在配置中找到HBase 服务环境高级配置代码段(安全阀),输入
HBASE_MASTER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=111 -javaagent:/tmp/root/hbase/jmx_prometheus_javaagent-0.19.0.jar=222:/tmp/root/hbase/hbase.yml
HBASE_REGIONSERVER_OPTS=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=333-javaagent:/tmp/root/hbase/jmx_prometheus_javaagent-0.19.0.jar=444:/tmp/root/hbase/hbase.yml
根据jmx_prometheus_javaagent包和hbase.yml实际位置修改
四、重启hbase
更多推荐
所有评论(0)