grafanaplugin icon indicating copy to clipboard operation
grafanaplugin copied to clipboard

grafana8.4.3 unified alert cannot be used.

Open liuhang-cn opened this issue 3 years ago • 10 comments

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

liuhang-cn avatar Mar 11 '22 10:03 liuhang-cn

OK,我们看一下

fenghuazzm avatar Mar 11 '22 10:03 fenghuazzm

Any good news? We have the same problem

NarakuX avatar May 15 '22 08:05 NarakuX

@liuhang-cn @NarakuX unified alert is on the roadmap but right now we don't support it.

sangshuduo avatar May 15 '22 09:05 sangshuduo

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

sunpe avatar Nov 02 '22 09:11 sunpe

TDengine grafanaplugin v3.2.7 is release.

sunpe avatar Nov 16 '22 08:11 sunpe

It still don't support unified alert with labels or legends

image

NarakuX avatar Nov 21 '22 08:11 NarakuX

Please describe your problem in detail, including version, operation process, etc. @NarakuX

sunpe avatar Nov 22 '22 08:11 sunpe

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 image

且不支持返回结果中有字符串 Failed to evaluate queries and expressions: failed to execute conditions: input data must be a wide series but got type long (input refid)

但是在其他地方查询正常 image

NarakuX avatar Nov 29 '22 05:11 NarakuX

@NarakuX 感谢您的回复。

tag名字为response的问题和alert不支持 group by/partition by的问题,我们下个版本会修复。

alert 需要按数值进行比较,所以返回的结果应该是数值类型,alert页面的查询目前不支持返回除了数值类型之外的其他数据类型。

sunpe avatar Dec 09 '22 03:12 sunpe

@NarakuX 感谢您的回复。

tag名字为response的问题和alert不支持 group by/partition by的问题,我们下个版本会修复。

alert 需要按数值进行比较,所以返回的结果应该是数值类型,alert页面的查询目前不支持返回除了数值类型之外的其他数据类型。

grafana 支持针对数值数据的报警 字符串列会转换为label 可以参考下 https://grafana.com/docs/grafana/latest/alerting/fundamentals/evaluate-grafana-alerts/

NarakuX avatar Dec 15 '22 04:12 NarakuX