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

相关推荐
W_son1 天前
14.Grafana 监控看板实战:新建、调优、变量配置全流程
grafana·prometheus
BullSmall3 天前
Prometheus监控栈安全加固全攻略
安全·grafana·prometheus
JasonChen@6665 天前
prometheus静态监控static_config案例四(10)
grafana·prometheus
JasonChen@6667 天前
prometheus静态监控static_config案例二(8)
grafana·prometheus
IT古董13 天前
Grafana 企业级可观测性平台:从零基础到生产级实战完整教程
grafana
闲云野鹤在人间17 天前
Prometheus入门|搭建Prometheus+Node‑Exporter+Grafana完整主机监控平台
grafana·prometheus
何中应1 个月前
Grafana如何共享面板
运维·grafana·可观测
何中应1 个月前
Grafana如何安装插件
运维·grafana·可观测
看浪的路人1 个月前
第8讲:记忆系统的监控与运维——Prometheus 指标、Grafana 面板与告警体系
运维·grafana·prometheus
学编程的小程1 个月前
服务器日志太分散不好查?我用Promtail+Loki+Grafana把采集、查询和分析串起来了
服务器·python·grafana