使用prometheus监控HBase与Hadoop

本文详细介绍了如何使用Prometheus监控HBase和Hadoop。首先讲解了Prometheus的安装与配置,接着深入探讨了HBase监控原理,包括HBase Metrics的收集与JMX数据的捕获。客户端配置涉及在HBase中添加JMX export功能,而服务端配置主要是设置Prometheus以拉取监控数据。最后提到了Zookeeper的监控配置,原理与HBase相似。
摘要由CSDN通过智能技术生成

Prometheus

prometheus介绍:
prometheus官网:
https://prometheus.io/

安装
  1. 下载安装包
    https://prometheus.io/download/
    选择操作系统开始下载:
    在这里插入图片描述
  2. 解压安装
tar xvfz prometheus-*.tar.gz
cd prometheus-*
  1. 修改配置文件
    配置prometheus检查自身状态
    Save the following basic Prometheus configuration as a file named prometheus.yml
global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'codelab-monitor'

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    # Override the global default and scrape targets from this job every 5 seconds.
    scrape_interval: 5s

    static_configs:
      - targets:
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值