Grafana变量默认全选

注:本文基于Grafana v9.2.8编写

1 问题

EKS集群里的node按照不同label被分为几类,我需要对这几类的node做一些统计。我希望当我使用lable选择时,node的值自动设置为该lable的所有node集合,而不需要再手动全选。

2 解决方案

变量设置里打开Include All option,然后dashboard里选择All,之后可以隐藏起这个变量,这样后面每次都会默认全选。

Include All option

select All

隐藏变量

3 引用变量

查询里引用变量,匹配所有node,类似于in的操作符,

bash 复制代码
sum(kube_node_status_allocatable{resource="memory", node =~ "($node)"})

这样所有就能统计出这个pool type里所有node的信息。

相关推荐
看浪的路人5 天前
第8讲:记忆系统的监控与运维——Prometheus 指标、Grafana 面板与告警体系
运维·grafana·prometheus
学编程的小程8 天前
服务器日志太分散不好查?我用Promtail+Loki+Grafana把采集、查询和分析串起来了
服务器·python·grafana
花月C12 天前
Agent可观测性篇:Grafana
postgresql·grafana
Kendra91912 天前
运维监控平台(Prometheus + Grafana)部署与维护
运维·grafana·prometheus
蓝胖的四次元口袋24 天前
Prometheus+Grafana知识梳理(2)
grafana·prometheus
打工仔折腾 AI25 天前
多台服务器日志分散难查?用Promtail+Loki+Grafana搭建集中检索平台
服务器·人工智能·后端·python·性能优化·django·grafana
蓝胖的四次元口袋1 个月前
Prometheus+Grafana知识梳理(1)
grafana·prometheus
哈__1 个月前
日志散在多台服务器怎么查?用 Promtail + Loki + Grafana 搭一套集中检索平台
运维·服务器·grafana
DylanlZhao1 个月前
我想看看本地 LLM 给我省了多少钱,于是我监控了它
llm·grafana
天天喝旺仔1 个月前
Prometheus + Grafana 监控告警体系搭建实战:从 Exporter 指标采集、PromQL 查询到 Alertmanager 告警落地
容器·kubernetes·grafana·prometheus·时序数据库