【问题标题】:Testing Grafana alert returns "Failed to test the rule" with 500 - Internal Server Error response测试 Grafana 警报返回 \"Failed to test the rule\" with 500 - Internal Server Error response
【发布时间】:2023-02-20 22:54:39
【问题描述】:

我正在尝试在我的一张图表上设置警报。我正在使用 AMG(亚马逊托管 Grafana)。但是,我收到“无法测试规则”通知。当我检查 HTTP 响应时,它显示

Status Code: 500 Internal Server Error

{"message":"Failed to test rule"}

网址

https://g-39e1d60d36.grafana-workspace.us-east-1.amazonaws.com/api/alerts/test

这是我的警报设置(即使我尝试了一些超级简单的方法,仍然遇到同样的问题):

对我来说,这似乎是 Grafana 内部错误/错误,有没有人遇到过类似的问题并且知道潜在的解决方案?

【问题讨论】:

  • 检查 Grafana 日志
  • 滴滴你设法找出问题所在?
  • @TariqN 这个问题解决了吗?我们在 AWS 上的托管 Grafana 上也有同样的问题。立即失败并发出简单警报。

标签: amazon-web-services prometheus grafana prometheus-alertmanager


【解决方案1】:

对于我们来说,解决方案是不要从我们在界面中添加的环境变量动态设置数据源。当我们将目标查询移动到固定数据源时,一切正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-07
    • 2017-02-20
    • 2015-09-15
    • 2023-03-30
    • 2022-10-25
    • 1970-01-01
    • 2023-03-20
    • 2018-01-17
    相关资源
    最近更新 更多