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、导入后效果
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 推荐几款开源且免费的 .NET MAUI 组件库
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· 【全网最全教程】使用最强DeepSeekR1+联网的火山引擎,没有生成长度限制,DeepSeek本体