当前位置:网站首页>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数据源,点击导入:
边栏推荐
- 高斯分布及其极大似然估计
- sql语句-如何以一个表中的数据为条件据查询另一个表中的数据
- STM32——DMA
- SQL语句中对时间字段进行区间查询
- ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
- 【wpf】wpf中的那些模板之深度解析
- ABC D - Distinct Trio(k元组的个数
- 微信小程序使用云函数更新和添加云数据库嵌套数组元素
- [py script] batch binarization processing images
- Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
猜你喜欢
MySQL数据库必会的增删查改操作(CRUD)
聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
input输入框展示两位小数之precision
Go language study notes - dealing with timeout problems - Context usage | Go language from scratch
ENSP,划分VLAN、静态路由,三层交换机综合配置
Puzzle Game Level Design: Reverse Method--Explaining Puzzle Game Level Design
益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
MySQL transaction (transaction) (this is enough..)
产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开
Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
随机推荐
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
Three oj questions on leetcode
MySQL开窗函数
高斯分布及其极大似然估计
ERP Production Operation Control Kingdee
MySQL优化之慢日志查询
MySQL忘记密码怎么办
重磅 | 基金会为白金、黄金、白银捐赠人授牌
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
open failed: EACCES (Permission denied)
Summary of MySQL common interview questions (recommended collection!!!)
产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开
开源汇智创未来 | 2022开放原子全球开源峰会OpenAtom openEuler分论坛圆满召开
ERP生产作业控制 金蝶
CentOS7 —— yum安装mysql
Create componentized development based on ILRuntime hot update
STM32——DMA
[py script] batch binarization processing images
DVWA安装教程(懂你的不懂·详细)
Vue项目通过node连接MySQL数据库并实现增删改查操作