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

推荐订阅源

WordPress大学
WordPress大学
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
月光博客
月光博客
V
Visual Studio Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Recorded Future
Recorded Future
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
Hacker News: Ask HN
Hacker News: Ask HN
SecWiki News
SecWiki News
博客园 - Franky
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cloudbric
Cloudbric
F
Full Disclosure
The Cloudflare Blog
Y
Y Combinator Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
S
Schneier on Security
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
AI
AI
N
News and Events Feed by Topic
T
Tor Project blog
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog

冰雪殇璃陌梦の小站

冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站
冰雪殇璃陌梦の小站
冰雪殇璃陌梦 · 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