grafana8.4.3 unified alert cannot be used.
全新安装grafana8.0及以上版本会有unified alert告警可以使用。告警配置完成后测试语句会一直报错,而且保存后告警无效。
以为是float格式的数据无效,换用int型的数据也不行。
抓取6041的包可以看到有正常回复

OK,我们看一下
Any good news? We have the same problem
@liuhang-cn @NarakuX unified alert is on the roadmap but right now we don't support it.
TDengine grafanaplugin is work in version 2.6.x. The result set returned by Sql for grafana alerts should be like this [[timestamp1, value1], [timestamp2, value2], ... ]. In your case you can change your sql like select sum(cpu_cores) from log.dn where ts >= $from and ts <= $to interval(1s). @liuhang-cn
TDengine grafanaplugin v3.2.7 is release.
It still don't support unified alert with labels or legends

Please describe your problem in detail, including version, operation process, etc. @NarakuX
Please describe your problem in detail, including version, operation process, etc. @NarakuX
td:2.6.0.8 plugin:3.2.7
unified alert 不支持td查询多个时间序列
按照tag分组后的多个字段 返回的名称都是response

且不支持返回结果中有字符串 Failed to evaluate queries and expressions: failed to execute conditions: input data must be a wide series but got type long (input refid)
但是在其他地方查询正常

@NarakuX 感谢您的回复。
tag名字为response的问题和alert不支持 group by/partition by的问题,我们下个版本会修复。
alert 需要按数值进行比较,所以返回的结果应该是数值类型,alert页面的查询目前不支持返回除了数值类型之外的其他数据类型。
@NarakuX 感谢您的回复。
tag名字为response的问题和alert不支持 group by/partition by的问题,我们下个版本会修复。
alert 需要按数值进行比较,所以返回的结果应该是数值类型,alert页面的查询目前不支持返回除了数值类型之外的其他数据类型。
grafana 支持针对数值数据的报警 字符串列会转换为label 可以参考下 https://grafana.com/docs/grafana/latest/alerting/fundamentals/evaluate-grafana-alerts/