Skip to content

Commit

Permalink
added cluster name (#475)
Browse files Browse the repository at this point in the history
Signed-off-by: Afek Berger <[email protected]>
  • Loading branch information
afek854 authored Feb 2, 2025
1 parent 7774aa6 commit 2172310
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/exporters/http_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ func (e *HTTPExporter) createRuleAlert(failedRule ruleengine.RuleFailure) apityp
k8sDetails.NodeName = e.nodeName
k8sDetails.ClusterName = e.clusterName

httpDetails := failedRule.GetHttpRuleAlert()
httpDetails.SourcePodInfo.ClusterName = e.clusterName

return apitypes.RuntimeAlert{
Message: failedRule.GetRuleAlert().RuleDescription,
HostName: e.host,
Expand All @@ -169,7 +172,7 @@ func (e *HTTPExporter) createRuleAlert(failedRule ruleengine.RuleFailure) apityp
RuntimeAlertK8sDetails: k8sDetails,
RuleAlert: failedRule.GetRuleAlert(),
RuleID: failedRule.GetRuleId(),
HttpRuleAlert: failedRule.GetHttpRuleAlert(),
HttpRuleAlert: httpDetails,
}
}

Expand Down

0 comments on commit 2172310

Please sign in to comment.