在 Grafana 中,我有一个变量 $topic 的下拉菜单,其值为“topic_A”“topic_B”
"topic_A" 被选中所以 $topic = "topic_A"
我想使用查询普罗米修斯
function{topic=$topic}
Run Code Online (Sandbox Code Playgroud)
这工作正常。
我将如何实施
function{topic="$topic" + "_ERROR"}
Run Code Online (Sandbox Code Playgroud)
(这失败了)如果选择了“topic_A”,我想要查询的将是“topic_A_ERROR”。
如何在查询中组合变量 $topic 和字符串“_ERROR”?