Skip to content

Commit

Permalink
Merge pull request #173 from K-Phoen/raw-dashboard-uid
Browse files Browse the repository at this point in the history
Use dashboard UID from Grafana to hook alerts
  • Loading branch information
K-Phoen authored May 14, 2022
2 parents 09582ca + 3922525 commit 70e20d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (client *Client) UpsertDashboard(ctx context.Context, folder *Folder, build
for i := range alerts {
alert := *alerts[i]

alert.HookDashboardUID(dashboardModel.UID)
alert.HookDashboardUID(dashboardFromGrafana.UID)
alert.HookPanelID(panelIDByTitle(dashboardFromGrafana, alert.Builder.Name))

if err := client.AddAlert(ctx, folder.Title, alert, datasourcesMap); err != nil {
Expand Down

0 comments on commit 70e20d3

Please sign in to comment.