当前位置:网站首页>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数据源,点击导入:
边栏推荐
- 1. Get data - requests.get()
- The Vue project connects to the MySQL database through node and implements addition, deletion, modification and query operations
- MySQL常见面试题汇总(建议收藏!!!)
- 【wpf】wpf中的那些模板之深度解析
- Duplicate entry 'XXX' for key 'XXX.PRIMARY' solution.
- The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
- MySQL忘记密码怎么办
- CentOS7 —— yum安装mysql
- unity2d小游戏
- mysql存储过程
猜你喜欢

PWN ROP

SQL row-column conversion

专访 | 阿里巴巴首席技术官程立:云+开源共同形成数字世界的可信基础

STM32HAL library modifies Hal_Delay to us-level delay

On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held

sql语句之多表查询

【线性神经网络】softmax回归

The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法

View source and switch mirrors in two ways: npm and nrm
随机推荐
MySQL模糊查询可以使用INSTR替代LIKE
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
Unity打灵狐者
DVWA安装教程(懂你的不懂·详细)
ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
PCL 计算点云坐标最值及其索引
Unity shader forge和自带的shader graph,有哪些优缺点?
PCL calculates the point cloud coordinate maximum and its index
Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
MySQL常见面试题汇总(建议收藏!!!)
[Cloud Native] DevOps (5): Integrating Harbor
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
DVWA installation tutorial (understand what you don't understand · in detail)
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
Vue项目通过node连接MySQL数据库并实现增删改查操作
MySQL optimization slow log query
【R语言】【3】apply,tapply,lapply,sapply,mapply与par函数相关参数
HCIP Day 10_BGP Route Summary Experiment