Skip to content

Commit

Permalink
chore: log removal of path from alertmanager endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Nov 15, 2023
1 parent a9e8316 commit e3e7788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/sinks/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (s *AlertmanagerSink) Configure(c Client, config map[string][]byte) error {
return InvalidEndpoint
}
if u.Path != "" {
s.log.V(1).Info("stripping path from Alertmanager endpoint", "path", u.Path)
u.Path = ""
}
s.endpoint = fmt.Sprintf("%s/api/v2/alerts", u.String())
Expand Down

0 comments on commit e3e7788

Please sign in to comment.