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

相关推荐
行者-全栈开发3 天前
TIG 监控体系搭建:Telegraf + InfluxDB + Grafana 全链路实战
grafana·influxdb·服务器监控·tig·docker部署·监控系统·telegraf
Elastic 中国社区官方博客4 天前
将你的 Grafana Kubernetes 仪表板迁移到 Elastic Observability:相同的 PromQL,30 倍更快的查询
大数据·人工智能·elasticsearch·搜索引擎·容器·kubernetes·grafana
做个文艺程序员6 天前
Linux第24篇:Java应用监控体系搭建:Prometheus+Grafana可视化运维
java·grafana·prometheus
取谖慕12.8 天前
Prometheus+Alertmanager+node_exporter+grafana高可用
linux·运维·grafana·prometheus
爱莉希雅&&&9 天前
Prometheus高可用(alertmanager+node_exporter+grafana)
运维·服务器·grafana·prometheus
行者-全栈开发10 天前
【码动四季】Spring Boot 可观测性体系:Micrometer + OpenTelemetry + Grafana 全链路搭建
grafana·opentelemetry·micrometer·全链路追踪·分布式追踪·atomcode·spring boot可观测性
todoitbo11 天前
让数据看板随时可见:Grafana + cpolar 远程访问实战
ui·网络安全·grafana·数据看板·远程访问
维C°13 天前
Grafana实例-Gauge仪表盘面板
grafana
微三云 - 廖会灵 (私域系统开发)13 天前
电商系统监控告警体系从0到1:Prometheus+Grafana+AlertManager的全链路可观测性实践
oracle·grafana·prometheus
维C°13 天前
Grafana-Text面板
grafana