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

接入Prometheus数据源后,能够自动识别alerts列表,并可以选择性导入 #2380

Open
wadeLouis opened this issue Dec 23, 2024 · 3 comments

Comments

@wadeLouis
Copy link

版本

7.6.0

问题

告警规则导入功能,希望接入Prometheus数据源后,能够自动识别alerts列表,并可以选择性导入。

@710leo
Copy link
Member

710leo commented Dec 23, 2024

@wadeLouis 没太明白你的这个需求是什么,可以具一个具体的样例,详细说明下

@wadeLouis
Copy link
Author

接入一个Prometheus数据源的时候,Prometheus的api是可以获取到告警规则列表的。现在手头有好多个旧项目的Prometheus,各自有自己的监控规则,也有相同的。如果统一接入到夜莺这边,目前告警规则提供导入规则的方式,只能是粘贴。但是多个项目的自定义规则加起来就很多了。这个工作量就有了。
所以,我希望的是,夜莺能够自动获取到Prometheus的规则列表,通过/api/v1/rules这个接口,夜莺页面上能够自动识别出这些规则并提供一个可选导入的方式。

@UlricQin
Copy link
Member

从产品角度这个后面有精力了确实可以搞搞

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

3 participants