Skip to content

告警表达式使用咨询 #2612

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

Open
wellzm opened this issue Apr 16, 2025 · 5 comments
Open

告警表达式使用咨询 #2612

wellzm opened this issue Apr 16, 2025 · 5 comments

Comments

@wellzm
Copy link

wellzm commented Apr 16, 2025

Question and Steps to reproduce

咨询告警表达式是否支持类似grafana的percent_diff() diff()的表达式
比如我需要检测 流量的波动, 希望有最近5分钟, 流量波动的百分比, 用percent_diff就比较合适.
或者是MySQL查询结果: 最近5分钟的收入, 用percent_diff() 和 diff()来计算就比较合适

查阅相关文档没有找到说明:
https://flashcat.cloud/docs/content/flashcat-monitor/nightingale-v7/usage/alert/alert-rules/trigger-conditions/alert-expression-syntax/

Relevant logs and configurations

使用咨询

Version

最新版本文档使用咨询

@UlricQin
Copy link
Member

你的数据源是?如果数据源是 Prometheus 类型的,可以使用 promql 做到:https://flashcat.cloud/tags/promql/

@wellzm
Copy link
Author

wellzm commented Apr 16, 2025

你的数据源是?如果数据源是 Prometheus 类型的,可以使用 promql 做到:https://flashcat.cloud/tags/promql/

MySQL的查询结果某个字段作为指标

@UlricQin
Copy link
Member

开源版还不支持 mysql 数据源 😂

@wellzm
Copy link
Author

wellzm commented Apr 16, 2025

开源版还不支持 mysql 数据源 😂

如果是商业版, 是否支持类似功能呢, 如果有可以评估采购计划
有比较强的需求, 有些数据存储在MySQL和ES, 比如收入希望感知到数据波动

@UlricQin
Copy link
Member

支持,可以加我微信(picobyte),我拉个同事对接一下

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

2 participants