Monitor ClickHouse with Prometheus & Grafana

本文介绍了如何使用Prometheus和Grafana监控ClickHouse,包括安装ClickHouse、Prometheus和Grafana,展示ClickHouse指标,设置警报。
摘要由CSDN通过智能技术生成

1. Monitor ClickHouse with Prometheus & Grafana

Prometheus is a 9-year-old, 100K-line GoLang project designed for systems monitoring. There have been almost 600 contributors to the project with Fabian Reinartz of Google and Julius Volz, formerly of Google and now the Founder of PromLabs, leading in commit counts.

Grafana is an interactive visualization web app. The underlying codebase is made up of ~500K lines of GoLang and Typescript. 1.4K developers have contributed to the project in its 8-year history. The project’s roots can be found in Stockholm with Torkel Ödegaard having contributed the largest number of commits to the project. In the past few years, he’s commercialised support with Grafana Labs, a firm based in New York City with almost 400 members of staff as of this writing.

1.1. Installing ClickHouse

The following commands were run on a fresh install of Ubuntu 20.04 LTS on a system with 16 GB of RAM.

$ sudo apt-key adv \
    --keyserver hkp://keyserver.ubuntu.com:80 \
    --recv E0C56BD4
$ echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | \
    sudo tee /etc/apt/sources.list.d/clickhouse.list
$ sudo apt update

I’ll install ClickHouse.

$ sudo apt install \
    clickhouse-client \
    clickhouse-server-common

The following will enable Prometheus metrics exposure in ClickHouse’s config.

$ sudo vi /etc/clickhouse-server/config.xml

Remove the XML comments around the tags. It should look like the following:

<prometheus>
    <
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云满笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值