使用 Grafana 标签作为标签名称字符串中带有 space 的别名?
Use Grafana tag as Alias with space in tag name string?
我有一个带有 InfluxDB 数据源的 Grafana 仪表板。
我想设置自定义别名。但是,我的标签应该 人类可读 因此其中有空格...
像这样,标签只是呈现给 undefined
...有什么想法吗?
没关系,想通了:[[tag_Tag With Space]]
(source)
例如:如果你有一个名为host
的标签,你可以写成
myMetric of [[tag_host]]
所以模式是
[[tag_${yourTag}}]]
将您的标签替换为 ${yourTag}
this this grafana官方文档
https://grafana.com/docs/features/datasources/influxdb/#alias-patterns
我有一个带有 InfluxDB 数据源的 Grafana 仪表板。 我想设置自定义别名。但是,我的标签应该 人类可读 因此其中有空格...
像这样,标签只是呈现给 undefined
...有什么想法吗?
没关系,想通了:[[tag_Tag With Space]]
(source)
例如:如果你有一个名为host
的标签,你可以写成
myMetric of [[tag_host]]
所以模式是
[[tag_${yourTag}}]]
将您的标签替换为 ${yourTag}
this this grafana官方文档
https://grafana.com/docs/features/datasources/influxdb/#alias-patterns