惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
The Cloudflare Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
F
Fortinet All Blogs
J
Java Code Geeks
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
小众软件
小众软件
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
S
SegmentFault 最新的问题
有赞技术团队
有赞技术团队

冰雪殇璃陌梦の小站

冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站
冰雪殇璃陌梦の小站
冰雪殇璃陌梦 · 2023-02-05 · via 冰雪殇璃陌梦の小站

这是本系列的第二篇文章, 这个系列记录了折腾 Grafana 过程中遇到的各种问题, 有兴趣可以看看( ̄︶ ̄)↗

Grafana 折腾日志

书接上回, 实际上这个仪表盘去年年底就做出来了, 没想到因为全家都阳了加上太懒各种杂七杂八的事情直接拖到了正月十五ヾ(•ω•`)o

废话不多说,先上图:
截图-容器
截图-镜像

相关链接

食用方法

  1. 确保安装好 prometheus-podman-exporter, 可以参考上期文章:

    Grafana 折腾日志•其一 将 Podman 添加到 Grafana 仪表盘中(上)

  2. 确保运行参数包含--collector.image, 开启收集镜像信息 (如果是按照上面的文章安装的话, 在/etc/default/prometheus-podman-exporterARGS="xxx"中加上即可)
  3. 将 podman-exporter 添加到 Prometheus 配置文件中(一般位于/etc/prometheus/prometheus.yml):
...
scrape_configs:
  ...
  - job_name: podman
    static_configs:
      - targets:
        - 'exporter1.com:9101' # 改成你的exporter的IP/端口
        - 'exporter2.net:9101' # 可以添加多个
    relabel_configs: # 添加label "instance", 值为target去掉端口
      - target_label: instance
        source_labels: [__address__]
        regex: "(.*):([0-9]*)"
        replacement: $1
  1. 重启 Prometheus:
systemctl reload prometheus
  1. 导入仪表盘, 推荐通过 Dashboard ID 导入, 输入后点击右边的Load

    • 中文版: 17638
    • 英文版: 17639

    导入

  2. 选择第二步中包含有 podman-exporter 数据的 Prometheus:
    选择Prometheus

  3. 导入完成, 此时容器总览中应该会出现所有的容器的列表

使用提示

  • 同时又多个实例上报数据时, 通过选项宿主机可以选择不同的服务器查看详情

最后

喜欢的话麻烦在 GitHub 上点个Star, 或者去 grafana.com 上给个 review 让更多人看到吧ヾ(≧▽≦*)o