Grafana:自定义变量的人类可读名称
Grafana: human readable name of custom variable
我的任务是创建自定义(不是查询!)带有值的 Grafana 变量,这些变量将在 sql where 子句中使用。
假设,值为:
is null, is not null, is null or is not null
并且在 drop-down 列表中用户必须看到“人类可读”的标题:
'Empty', 'Not Empty', 'All'.
我发现,这个问题是如何解决 sql-query 个变量的。但这显然不是我的情况。
作为解决方案,我尝试在“用逗号分隔的值”中编写以下内容:
Empty: is null,
Not Empty: is not null,
All: is null or is not null
但它不起作用:在 drop-down 列表中我看到这个 key-values 对:“空:为空,...”
我做错了什么?
Custom
类型变量必须具有特定的 value/format(适用于 Grafana 8.2.4,较低的 Grafana 主要版本可能不支持):
Empty : is null, Not Empty : is not null, All : is null or is not null
空格很重要。
我的任务是创建自定义(不是查询!)带有值的 Grafana 变量,这些变量将在 sql where 子句中使用。
假设,值为:
is null, is not null, is null or is not null
并且在 drop-down 列表中用户必须看到“人类可读”的标题:
'Empty', 'Not Empty', 'All'.
我发现,这个问题是如何解决 sql-query 个变量的。但这显然不是我的情况。
作为解决方案,我尝试在“用逗号分隔的值”中编写以下内容:
Empty: is null,
Not Empty: is not null,
All: is null or is not null
但它不起作用:在 drop-down 列表中我看到这个 key-values 对:“空:为空,...”
我做错了什么?
Custom
类型变量必须具有特定的 value/format(适用于 Grafana 8.2.4,较低的 Grafana 主要版本可能不支持):
Empty : is null, Not Empty : is not null, All : is null or is not null
空格很重要。