Commit 6ee608c4 authored by Sean Arnold's avatar Sean Arnold

Add gitlab_prometheus_alert_id another field

parent 2ff6707e
...@@ -56,7 +56,8 @@ class PrometheusAlert < ApplicationRecord ...@@ -56,7 +56,8 @@ class PrometheusAlert < ApplicationRecord
"for" => "5m", "for" => "5m",
"labels" => { "labels" => {
"gitlab" => "hook", "gitlab" => "hook",
"gitlab_alert_id" => prometheus_metric_id "gitlab_alert_id" => prometheus_metric_id,
"gitlab_prometheus_alert_id" => id
} }
} }
end end
......
...@@ -96,7 +96,8 @@ describe PrometheusAlert do ...@@ -96,7 +96,8 @@ describe PrometheusAlert do
"for" => "5m", "for" => "5m",
"labels" => { "labels" => {
"gitlab" => "hook", "gitlab" => "hook",
"gitlab_alert_id" => metric.id "gitlab_alert_id" => metric.id,
"gitlab_prometheus_alert_id" => subject.id
}) })
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment