当前位置:网站首页>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文件
然后傻瓜式操作就行
边栏推荐
- EXIT中断详解
- During the appointment, the 2022 JD cloud industrial integration new product launch was launched online
- Bubble sort c language
- Cryengine5 shader debugging
- MySQL的基础概念+数据库系统结构+拓展延申+基础命令学习
- 365 day challenge leetcode1000 question - distance between bus stops on day 038 + time-based key value storage + array closest to the target value after transforming the array and + maximum value at t
- 【C语言系列】—深度解剖数据在内存中的存储(一) 暑假开篇
- Day 3
- Time complexity and space complexity
- 适创科技以云仿真平台,支持“中国智造”升级
猜你喜欢
PyQt5:第一章第1节:使用Qt组件创建一个用户界面-介绍
365天挑战LeetCode1000题——Day 035 每日一题 + 二分查找 13
MySQL的基础概念+数据库系统结构+拓展延申+基础命令学习
【赛事预告】云上开发,高效智能——第二届阿里云ECS CloudBuild开发者大赛即将启动
Together with digital people, digital space and XR platform, Alibaba cloud and its partners jointly build a "new vision"
Li Yan, CEO of parallel cloud: cloudxr, opens the channel to the metauniverse
VIM editor use
Vs code的安装步骤及环境配置
京东云金秋上云特惠进行中!扫码参与活动
Live broadcast preview | how to save 30% labor cost and shorten 80% trademark processing cycle?
随机推荐
【C语言系列】— 一道递归小题目
整数溢出和打印
C language one-dimensional array
QT learning: qdropevent drag event
Occt learning 002 - environment construction
R & D efficiency | analysis of kubernetes' core technology and Devops' landing experience
京东云分布式链路追踪在金融场景的最佳实践
Yangyonglin, vice president of Rushi Technology: when traditional industries encounter "digital space"
365 day challenge leetcode 1000 questions - day 040 design jump table + avoid flooding + find the latest grouping with size M + color ball with reduced sales value
Best practices for elastic computing in the game industry
B - 识别浮点常量问题
Live broadcast preview | how to save 30% labor cost and shorten 80% trademark processing cycle?
【C语言系列】—深度解剖数据在内存中的存储(二)-浮点型
Vs code的安装步骤及环境配置
200 多家 ISV 入驻!阿里云计算巢发布一周年
预约中,2022京东云产业融合新品发布会线上开启
递归的基本原理
Redirection and files
Come on! See how Clickhouse, which has risen 16 places a year, can be implemented in jd.com
51万奖池邀你参战!第二届阿里云ECS CloudBuild开发者大赛来袭