当前位置:网站首页>The monitoring of Doris study notes
The monitoring of Doris study notes
2022-07-31 04:56:00 【coder_szc】
背景
Doris可以使用Prometheus和GrafanaMonitor and collect,Official website to download the latest version.
- Prometheus官网下载:https://prometheus.io/download/;
- Grafana官网下载:https://grafana.com/grafana/download.
Doris的监控数据通过FE和BE的http接口向外暴露.监控数据以key-valueThe text form of external show.每个keyThere could be differentLabel加以区分.When a user build goodDoris 后,可以在浏览器,Through the following interface to access monitoring data:
- Frontend: fe_host:fe_http_port/metrics,如http://scentos:8030/metrics;
- Backend: be_host:be_web_server_port/metrics,如 http://scentos:8040/metrics
The whole monitoring architecture below:
Prometheus
首先下载压缩包(https://github.com/prometheus/prometheus/releases/download/v2.26.0/prometheus-2.26.0.linux-amd64.tar.gz),上传,解压,重命名:
[[email protected] szc]# tar -zxvf prometheus-2.26.0.linux-amd64.tar.gz
[[email protected] szc]# mv prometheus-2.26.0.linux-amd64/ prometheus-2.26.0/
[[email protected] szc]# cd prometheus-2.26.0/
修改prometheus.yml,配置两个targets,分别表示FE和BE,并定义labels和groups:
[[email protected] prometheus-2.26.0]# vim prometheus.yml
...............
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus-doris'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['scentos:8030']
labels:
group: fe
- targets: ['scentos:8040']
labels:
group: be
启动Prometheus:
[[email protected] prometheus-2.26.0]# nohup ./prometheus --config.file=./prometheus.yml
在浏览器访问ip:9090,并查看Status->Targets:
便可以看到FE和BE已经上线:
点击一个,结果如下:
Grafana
Download and install and start the:
[[email protected] szc]# wget https://dl.grafana.com/enterprise/release/grafana-enterprise-7.5.2-1.x86_64.rpm
[[email protected] szc]# yum install grafana-enterprise-7.5.2-1.x86_64.rpm
[[email protected] szc]# service grafana-server start
访问ip:3000,用户名密码都是admin:
第一次访问要修改密码,不过可以点击下面的skip跳过这一步,就进入grafana的主界面:
然后,添加数据源:

选中Prometheus,点击Select,然后配置URL即可:
Click the save and test below,A data source is normal:
然后添加Dashboard,点击导入:
通过面板jsonImport the content of the need to enter in the see baidu network location:链接:https://pan.baidu.com/s/1OTaQd3CZSSKmsJFwhn6HrQ ,提取码:y4p1
再点击加载:
In the next step,palo选择上一步创建的Prometheus数据源,点击导入:
In the next step,palo选择上一步创建的Prometheus数据源,点击导入:
边栏推荐
- The Vue project connects to the MySQL database through node and implements addition, deletion, modification and query operations
- Duplicate entry 'XXX' for key 'XXX.PRIMARY' solution.
- Unity Fighter
- MySQL数据库备份
- 12个MySQL慢查询的原因分析
- On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
- Unity Tutorial: URP Rendering Pipeline Practical Tutorial Series [1]
- MySQL transaction isolation level, rounding
- ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
- VScode+ESP32快速安装ESP-IDF插件
猜你喜欢

微信小程序使用云函数更新和添加云数据库嵌套数组元素

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
![[Linear Neural Network] softmax regression](/img/98/ffdff5e96ad0d6ac0142af7ca11e9a.png)
[Linear Neural Network] softmax regression

Minesweeper game (written in c language)

ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches

Mysql应用安装后找不到my.ini文件

Sql解析转换之JSqlParse完整介绍

mysql uses on duplicate key update to update data in batches

PWN ROP

MySQL优化:从十几秒优化到三百毫秒
随机推荐
【wpf】wpf中的那些模板之深度解析
PWN ROP
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
Minesweeper game - C language
高斯分布及其极大似然估计
MySQL transaction isolation level, rounding
Interview | Cheng Li, CTO of Alibaba: Cloud + open source together form a credible foundation for the digital world
参考代码系列_1.各种语言的Hello World
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
Unity Fighter
Unity资源管理系列:Unity 框架如何做好资源管理
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析
Sun Wenlong, Secretary General of the Open Atom Open Source Foundation |
The 15th day of the special assault version of the sword offer
input输入框展示两位小数之precision
重磅 | 开放原子校源行活动正式启动
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
MySQL database must add, delete, search and modify operations (CRUD)
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
【线性神经网络】softmax回归