Skip to content

Commit

Permalink
fix: support updated optimus job URN (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryashbhardwaj authored Apr 16, 2024
1 parent a9ea7d9 commit bb951d1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ext/notify/alertmanager/alertManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,8 @@ func RelayEvent(e *scheduler.AlertAttrs, host, endpoint, dashboardURL, dataConso
Data: templateContext,
Template: template,
Labels: map[string]string{
"job_urn": e.JobURN,
"identifier": e.JobURN,
"event_type": e.JobEvent.Type.String(),
"identifier": fmt.Sprintf("%s:%s:%s",
e.JobEvent.Tenant.ProjectName(),
e.JobEvent.Tenant.NamespaceName(),
e.JobEvent.JobName),
"severity": "CRITICAL",
},
}
payloadJSON, err := json.Marshal(payload)
Expand Down

0 comments on commit bb951d1

Please sign in to comment.