Doris学习笔记之监控

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

文章目录

背景

Doris可以使用Prometheus和Grafana进行监控和采集,官网下载最新版即可。

  1. Prometheus官网下载:https://prometheus.io/download/;
  2. Grafana官网下载:https://grafana.com/grafana/download。

Doris的监控数据通过FE和BE的http接口向外暴露。监控数据以key-value的文本形式对外展现。每个key还可能有不同的Label加以区分。当用户搭建好Doris 后,可以在浏览器,通过以下接口访问监控数据:

  1. Frontend: fe_host:fe_http_port/metrics,如http://scentos:8030/metrics;
  2. 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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值