当前位置:网站首页>ClickHouse学习(十)监控运行指标
ClickHouse学习(十)监控运行指标
2022-07-29 05:09:00 【阳光里哭泣的狗】
监控
监控就是查看各个运行指标的使用情况
下载两兄弟(Prometheus + Grafana)
Prometheus 下载地址
Grafana 下载地址
上传至虚拟机进行安装
安装
安装Prometheus
[[email protected] clickhouse]# tar -xzvf prometheus-2.26.0.linux-amd64.tar.gz -C /usr/
改名
[[email protected] usr]# mv prometheus-2.26.0.linux-amd64 prometheus
修改配置文件 prometheus.yml
!!!注意缩进问题
#添加 ClickHouse 监控配置
- job_name: clickhouse-1
static_configs:
- targets: ['spark01:9363']

启动Prometheus
nohup ./prometheus --config.file=prometheus.yml > ./prometheus.log 2>&1 &
访问webUI,默认端口为9090
安装Grafana
解压完就可以用
nohup ./bin/grafana-server web > ./grafana.log 2>&1 &
访问webUI,默认端口为3000,默认的账号密码都是admin
登录后可以修改密码
ClickHouse 配置
将clickhouse监控的Prometheus开启
vi /etc/clickhouse-server/config.xml

重启clickhouse
[[email protected] clickhouse-server]# clickhouse restart
Grafana 集成 Prometheus
添加数据源




添加监控
下载自己喜欢的视图页面
https://grafana.com/dashboards
从众心理
点击下载json文件

然后傻瓜式操作就行
边栏推荐
- Solution: find the position of the first and last element in a sorted array (personal notes)
- C语言 一级指针
- 【C语言系列】—三种方法模拟实现strlen库函数的方法
- 实现简单的数据库查询(不完整)
- JD cloud golden autumn cloud special offer is in progress! Code scanning participation activities
- Differences between texture2d and texture2dproj under webgl1.0
- D3d Shader Instruction
- WDDM learning
- [event preview] cloud digital factory and digital transformation and innovation forum for small and medium-sized enterprises
- Detailed explanation of serial port communication
猜你喜欢

MySQL的基础概念+数据库系统结构+拓展延申+基础命令学习

Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team

QT series - Installation

R & D efficiency | analysis of kubernetes' core technology and Devops' landing experience

C language one-dimensional array

无重复字符的最长字串

Live broadcast Preview: integration of JD cloud Devops and jfrog product library

全局components组件注册

Come on! See how Clickhouse, which has risen 16 places a year, can be implemented in jd.com

【C语言系列】— 不创造第三个变量,实现两个数的交换
随机推荐
水一篇图的拓扑排序
167. 两数之和 II - 输入有序数组
直播预告|如何节省30%人工成本,缩短80%商标办理周期?
Day 2
利用Poi-tl在word模板表格单元格内一次插入多张图片和多行单元格相同数据自动合并的功能组件
力扣994:腐烂的橘子(BFS)
Complete ecological map of R & D Efficiency & selection of Devops tools
Occt learning 002 - environment construction
C语言数组入门到精通(数组精讲)
抢先预约 | 阿里云无影云应用线上发布会预约开启
游戏行业弹性计算最佳实践
抽象类与接口
Cryengine Technology
2022数学建模竞赛暑期培训讲座——最优化方法:目标规划
js深拷贝-笔记
Custom QML control: imagebutton
QML control: combobox
京东云联合Forrester咨询发布混合云报告 云原生成为驱动产业发展新引擎
冒泡排序 C语言
ANSI C类型限定符