当前位置:网站首页>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数据源,点击导入:
边栏推荐
- ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)
- Explanation of
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- Go语学习笔记 - 处理超时问题 - Context使用 | 从零开始Go语言
- On Governance and Innovation | 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum was successfully held
- SQL injection of DVWA
- 两个地址池r2负责管地址池r1负责管dhcp中继
- ERP Production Operation Control Kingdee
- MySQL database addition, deletion, modification and query (detailed explanation of basic operation commands)
- unity2d小游戏
猜你喜欢

Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions

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

DVWA安装教程(懂你的不懂·详细)

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

MySQL forgot password

聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开

npm、nrm两种方式查看源和切换镜像

MySQL数据库必会的增删查改操作(CRUD)

sql语句-如何以一个表中的数据为条件据查询另一个表中的数据

MySQL database installation (detailed)
随机推荐
.NET-9.乱七八糟的理论笔记(概念,思想)
DVWA shooting range environment construction
MySQL事务隔离级别详解
Create componentized development based on ILRuntime hot update
C Implementation of Simple Network File Copy
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
DVWA靶场环境搭建
CentOS7 安装MySQL 图文详细教程
CentOS7 —— yum安装mysql
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开
Solved (the latest version of selenium framework element positioning error) NameError: name 'By' is not defined
Duplicate entry ‘XXX‘ for key ‘XXX.PRIMARY‘解决方案。
参考代码系列_1.各种语言的Hello World
MySQL数据库必会的增删查改操作(CRUD)
开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
SOLVED: After accidentally uninstalling pip (two ways to manually install pip)
input输入框展示两位小数之precision
CentOS7 install MySQL graphic detailed tutorial
MySQL数据库增删改查(基础操作命令详解)