Iceberg治理服务Amoro---配置Prometheus + Grafana看板

一、基础资料

1、mac安装Prometheus + Grafana

https://www.cnblogs.com/robots2/p/18689540

2、配置文档

https://amoro.apache.org/docs/0.7.1/deployment/#configure-metric-reporter

3、Grafana配置内容

https://github.com/apache/amoro/blob/master/grafana/dashboard.json

 

二、Amoro配置内容

1、修改配置文件

$AMORO_CONF_DIR/plugins/metric-repoters.yaml

metric-reporters:
  - name: prometheus-exporter            # configs for prometheus exporter
    enabled: true
    properties:
       port: 9090                        # the port that the prometheus-exporter listens on.

2、重启生效(hadoop用户)

sh ams.sh restart

3、检测端口是否存活

lsof -i:9090

 

三、Prometheus配置内容--自建

1、修改配置文件

/opt/homebrew/etc/prometheus.yml

2、配置内容

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "prometheus"
    static_configs:
    - targets: ["localhost:9090"]

3、启动方式

(1)后台运行(推荐)

cd /opt/homebrew/Cellar/prometheus/3.1.0/bin
prometheus --config.file=/opt/homebrew/etc/prometheus.yml &

四、阿里云Prometheus

 

五、Grafana配置数据源,设置看板

1、初始化配置,新增数据源

参考博客初始化,并增加prometheus数据源

https://www.cnblogs.com/robots2/p/18689540

2、Grafana导入看板

3、上传json文件或者复制json方式创建看板

json内容:https://github.com/apache/amoro/blob/master/grafana/dashboard.json

4、导入后效果

posted @   Robots2  阅读(19)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 推荐几款开源且免费的 .NET MAUI 组件库
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· 【全网最全教程】使用最强DeepSeekR1+联网的火山引擎,没有生成长度限制,DeepSeek本体
点击右上角即可分享
微信分享提示