Rancher Monitoring 配置自定义仪表盘

Rancher Monitoring 的 Dashboard 是通过监听 Namespace 的 ConfigMap/Secret 来进行加载,默认情况下监控 cattle-dashboards 这个 Namespace。

如果用户期望在自己的 Namespace 下创建 Dashboard 使用,可以通过 Helm Chart 的 grafana.sidecar.dashboards.searchNamespace 参数实现:

1
2
3
4
5
6
7
8
9
10
grafana:
...
sidecar:
dashboards:
...
# 如果要监听所有 Namespaces,可以设置为 ALL
searchNamespace:
- cattle-dashboards
- cattle-app-dashboards
...

更新完成后,在该 Namespace 下创建 ConfigMap,存放 Dashboard 的 JSON 文件:

同时需要添加如下 Label,Grafana Sidecar 才会监听该 ConfigMap:

创建完成后,即可在 Grafana 中查看该 Dashboard:

Author

Warner Chen

Posted on

2025-11-12

Updated on

2025-11-12

Licensed under

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.