Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grafana8.4.3 unified alert cannot be used. #107

Open
liuhang-cn opened this issue Mar 11, 2022 · 10 comments
Open

grafana8.4.3 unified alert cannot be used. #107

liuhang-cn opened this issue Mar 11, 2022 · 10 comments

Comments

@liuhang-cn
Copy link

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

@fenghuazzm fenghuazzm changed the title grafana8.4.3 unified alert告警无法使用 grafana8.4.3 unified alert cannot be used. Mar 11, 2022
@fenghuazzm
Copy link

OK,我们看一下

@NarakuX
Copy link

NarakuX commented May 15, 2022

Any good news?
We have the same problem

@sangshuduo
Copy link
Contributor

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

@sunpe
Copy link
Contributor

sunpe commented Nov 2, 2022

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
Copy link
Contributor

sunpe commented Nov 16, 2022

TDengine grafanaplugin v3.2.7 is release.

@NarakuX
Copy link

NarakuX commented Nov 21, 2022

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

image

@sunpe
Copy link
Contributor

sunpe commented Nov 22, 2022

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

@NarakuX
Copy link

NarakuX commented Nov 29, 2022

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

@sunpe
Copy link
Contributor

sunpe commented Dec 9, 2022

@NarakuX 感谢您的回复。

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

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

@NarakuX
Copy link

NarakuX commented Dec 15, 2022

@NarakuX 感谢您的回复。

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants