当前位置:网站首页>Doris学习笔记之监控
Doris学习笔记之监控
2022-07-31 04:44:00 【coder_szc】
背景
Doris可以使用Prometheus和Grafana进行监控和采集,官网下载最新版即可。
- Prometheus官网下载:https://prometheus.io/download/;
- Grafana官网下载:https://grafana.com/grafana/download。
Doris的监控数据通过FE和BE的http接口向外暴露。监控数据以key-value的文本形式对外展现。每个key还可能有不同的Label加以区分。当用户搭建好Doris 后,可以在浏览器,通过以下接口访问监控数据:
- Frontend: fe_host:fe_http_port/metrics,如http://scentos:8030/metrics;
- Backend: be_host:be_web_server_port/metrics,如 http://scentos:8040/metrics
整个监控架构如下图:
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
下载安装和启动:
[[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即可:
点击下面的保存并测试,出现数据源正常就行:
然后添加Dashboard,点击导入:通过面板json导入中需要输入的内容参见百度网盘:链接:https://pan.baidu.com/s/1OTaQd3CZSSKmsJFwhn6HrQ ,提取码:y4p1
再点击加载:
在下一步里,palo选择上一步创建的Prometheus数据源,点击导入:
在下一步里,palo选择上一步创建的Prometheus数据源,点击导入:
边栏推荐
- Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis
- 【py脚本】批量二值化处理图像
- [Linear Neural Network] softmax regression
- npm、nrm两种方式查看源和切换镜像
- XSS靶场(三)prompt to win
- ClickHouse: Setting up remote connections
- 行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
- 聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
- Unity URP渲染管线摄像机核心机制剖析
- unity2d小游戏
猜你喜欢
(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类
Explanation of
View source and switch mirrors in two ways: npm and nrm
ENSP, VLAN division, static routing, comprehensive configuration of Layer 3 switches
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
ENSP,划分VLAN、静态路由,三层交换机综合配置
C language from entry to such as soil, the data store
Industry-university-research application to build an open source talent ecosystem | 2022 Open Atom Global Open Source Summit Education Sub-Forum was successfully held
[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters
Musk talks to the "virtual version" of Musk, how far is the brain-computer interaction technology from us
随机推荐
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
Exsl file preview, word file preview web page method
VScode+ESP32 quickly install ESP-IDF plugin
(五)final、抽象类、接口、内部类
30 Years of Open Source Community | 2022 Open Atom Global Open Source Summit 30 Years of Open Source Community Special Event Held Successfully
C# 实现PLC的定时器
【C语言】操作符详解
volatile内存语义以及实现 -volatile写和读对普通变量的影响
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
mysql基础知识(二)
聚变云原生,赋能新里程 | 2022开放原子全球开源峰会云原生分论坛圆满召开
Minesweeper game - C language
MySQL数据库安装配置保姆级教程(以8.0.29为例)有手就行
C language from entry to such as soil, the data store
高等数学---第九章二重积分
Unity shader forge和自带的shader graph,有哪些优缺点?
(5) final, abstract class, interface, inner class
强化学习:从入门到入坑再到拉屎
IDEA common shortcut keys and plug-ins
Vue项目通过node连接MySQL数据库并实现增删改查操作