Grafana-Dashboard设置
1.添加Prometheus主节点为Grafana数据源

2.添加相关监控面板
面板添加所用Metrics
运行容器指标
容器已用内存总量
容器已用CPU总使用率
容器内存使用率详细信息
容器CPU使用率详细信息
面板所用全局变量Variables
依次新建
Name
Data source
Refresh
Query
Regex
Sort
job
Prometheus
On Dashboard Load
label_values(up,job)
^(国内|海外)$
Alphabetical(asc)
instance
Prometheus
On Dashboard Load
label_values({job=~"$job"},instance)
Alphabetical(asc)
引入Grafana模板(可选)
测试Dashboard如下

Last updated
Was this helpful?