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的信息。

相关推荐
新钛云服7 小时前
Grafana Polystat面板与腾讯云可观测平台的深度融合实践
大数据·云计算·腾讯云·grafana
flying robot1 天前
Prometheus[2.33.3]grafana[12.3.1]监控安装
grafana·prometheus
flying robot1 天前
Grafana对xx-export监控和AlertManager 告警
grafana
一只懒鱼a4 天前
Prometheus和Grafana的安装和使用
grafana·prometheus
YanDDDeat4 天前
Prometheus + Grafana 搭建应用监控体系
java·后端·eureka·grafana·prometheus
goodlook01234 天前
监控平台搭建-日志-loki篇-最新版3.6.3(七)
服务器·grafana·prometheus
世界尽头与你4 天前
CVE-2025-4123_ Grafana 安全漏洞
安全·网络安全·渗透测试·grafana
A-刘晨阳4 天前
【云原生】PromQL 常用内置指标
云原生·grafana·prometheus·promql
AI_56784 天前
云原生监控体系构建指南:基于Prometheus与Grafana的企业级实践
云原生·grafana·prometheus
小代码20166 天前
loki 环境搭建
spring boot·docker·log4j·grafana