Web开发

首页 » 常识 » 预防 » DPrometheusGr
TUhjnbcbe - 2021/7/3 7:11:00
北京荨麻疹医院哪最好 http://m.39.net/baidianfeng/a_8595950.html

DorisDB提供两种监控报警的方案,第一种是使用内置的DorisManager,其自带的Agent从各个Host采集监控信息上报到CenterService然后做可视化展示,也提供了邮件和Webhook的方式发送报警通知。

但是如果用户为了二次开发需求,需要自己搭建部署监控服务,也可以使用开源的Prometheus+Grafana的方案,DorisDB提供了兼容Prometheus的信息采集接口,可以通过直接链接BE/FE的HTTP端口来获取集群的监控信息。

如果采购DorisDB企业版,则提供DorisManager进行监控;

如果使用ApacheDoris、DorisDB标准版、百度Palo,则需要采用开源Prometheus+Grafana监控方案。

0.ENV

1)介质环境准备

prometheus主程序:prometheus-2.27.1.linux-amd64.tar.gzprometheus主机监控程序:node_exporter-1.1.2.linux-amd64.tar.gzgrafana主程序:grafana-7.5.7-1.x86_64.rpm已安装DoridDB版本:DorisDB1.15.2

2)监控环境

Prometheus、grafana服务器:..80.30DorisDB服务器:doris1、doris2、doris3

3)端口使用情况

prometheusgrafanafebe

1.Prometheus+Grafana监控方案

未购买DorisDB企业版用户,需要自建监控告警系统,使用开源的Prometheus+Grafana方案。

如果仅仅需要将监控数据接入自有的Prometheus系统,可以通过下列接口访问:

FE:fe_host:fe_
  
  
  
  
  --web.max-connections=10#最大链接数--query.max-concurrency=20#最大支持的并发查询量--query.timeout=2m#单个查询超时时间--web.enable-lifecycle#热加载--web.enable-admin-api#可以删除时序数据

g.启动prometheus

[root

monitor~]#systemctlenableprometheus[root

monitor~]#systemctlstartprometheus

h.查看端口已启用

[root

monitor~]#netstat-anlptu

grep:

i.访问Prometheus的web界面

1
查看完整版本: DPrometheusGr