【发布时间】:2020-01-27 14:00:49
【问题描述】:
我有一个 grafana 实例,用于监控部署在命名空间中的某些版本。命名空间在我对图表的查询中是硬编码的,例如
jenkins_health_check_score{namespace="build",release="$release"}
我只想根据变量release进行过滤
现在的问题是,grafana 会在过滤器中列出部署在所有命名空间中的发布名称。但我希望它仅列出部署在 build 命名空间中的版本。
我当前的配置看起来像
我尝试做类似的事情
label_values(release)
label_values(namespace="build")
但这不起作用。
我得到了错误
Template variables could not be initialized: 2:13: parse error: could not parse remaining input "(release)\nlabel"...
我在这里做错了什么?
【问题讨论】:
标签: prometheus grafana grafana-templating