1
我正在尝试为我的dahboards制作模板,并且在涉及到测量名称时遇到问题。InfluxDB模板查询 - 参考measuerments?
我的变量:
$space = SHOW MEASUREMENTS
然后我想,它包含一个特定$space
只值的变量,这实际上是一个MEASUREMENT
:
在这里,我得到一个消息:Template variables could not be initialized: error parsing query: found MEASUREMENT, expected identifier, string, number, bool at line 1, char 48
在官方示例中,它是这样的,尽管它引用了另一个标签:
$datacenter = SHOW TAG VALUES WITH KEY = "datacenter"
$host = SHOW TAG VALUES WITH KEY = "hostname" WHERE "datacenter" =~ /^$datacenter$/
我找不到任何信息如何参考MEASUREMENTS
哪些工作。 WHERE
,WITH
等。也许是不可能的? 我在官方教程中只发现了这一点,但这是为键而不是值。
SHOW TAG KEYS [FROM <measurement_name>]