文章目录
背景
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),上传,解压,重命名:
[root@scentos szc]# tar -zxvf prometheus-2.26.0.linux-amd64.tar.gz
[root@scentos szc]# mv prometheus-2.26.0.linux-amd64/ prometheus-2.26.0/
[root@scentos szc

本文介绍了如何将Doris与Prometheus和Grafana集成以实现监控。首先从官网下载Prometheus和Grafana,然后配置Prometheus的`prometheus.yml`文件,添加FE和BE的监控目标。接着启动Prometheus并验证监控是否成功。最后,安装并启动Grafana,配置Prometheus为数据源,导入Dashboard以展示监控数据。
最低0.47元/天 解锁文章
5330

被折叠的 条评论
为什么被折叠?



