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

Categraf 提供的http_response 插件问题反馈 #2155

Open
l19891223j opened this issue Sep 9, 2024 · 5 comments
Open

Categraf 提供的http_response 插件问题反馈 #2155

l19891223j opened this issue Sep 9, 2024 · 5 comments

Comments

@l19891223j
Copy link

l19891223j commented Sep 9, 2024

我这边遇到的问题是:
图片

接口监控告警用的categraf,使用钉钉webhook机器人,正常的url ,推送正常,如下:
图片
而加了传参的? = 的url,推送异常,不显示接口地址
图片

Originally posted by @l19891223j in #1923 (comment)

@UlricQin
Copy link
Member

你的告警规则里的 promql 是怎么写的?其次你的其他通知媒介,比如短信、邮件的内容是否正常?如果其他通知媒介正常,那就是钉钉做了限制。

@l19891223j
Copy link
Author

l19891223j commented Sep 20, 2024

你的告警规则里的 promql 是怎么写的?其次你的其他通知媒介,比如短信、邮件的内容是否正常?如果其他通知媒介正常,那就是钉钉做了限制。

告警规则:
http_response_result_code{product="管理平台"} != 0
目前只试了钉钉的,我试下邮件推送,多谢了

@l19891223j l19891223j changed the title > * 方案1:使用 Categraf 提供的http_response 插件: https://github.com/flashcatcloud/categraf/tree/main/inputs/http_response Categraf 提供的http_response 插件问题反馈 Sep 20, 2024
@l19891223j
Copy link
Author

l19891223j commented Sep 20, 2024

补充:当前使用的版本是7.0.0
告警规则
图片

从历史告警上看,这个target url 确实没有获取到:
图片
@UlricQin
看了n9e的ERROR.log, 有以下:

relabel: the label length is not 2:[target https://xxxx.xxxx.com/xxxxx-api/epidemicLog/queryEpidmicPeople?jobNo 170702695]

jobNo 170702695 中间的=号没了

@l19891223j l19891223j changed the title Categraf 提供的http_response 插件问题反馈 Categraf 提供的http_response 插件问题反馈--已升级到最新7.3.4版本解决 Sep 20, 2024
@l19891223j l19891223j changed the title Categraf 提供的http_response 插件问题反馈--已升级到最新7.3.4版本解决 Categraf 提供的http_response 插件问题反馈 Sep 20, 2024
@l19891223j
Copy link
Author

注: 升级到最新的7.3.4 版本后,告警已经正常,但是告警恢复还是显示不出target
588B84B2-1DE5-4653-AD4E-0C8C5A6D01AA
告警恢复不显示taget:
AD2E3A77-41EB-4292-8F0B-B0F1666D6DFE

邮件同样的问题
图片

@710leo
Copy link
Member

710leo commented Sep 30, 2024

@l19891223j 这个问题最新版本已经修复了,可以升级下

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

4 participants