diff --git a/pkg/alerts/alertmanager/client.go b/pkg/alerts/alertmanager/client.go index cac7bf43d..1d5c19e22 100644 --- a/pkg/alerts/alertmanager/client.go +++ b/pkg/alerts/alertmanager/client.go @@ -68,6 +68,7 @@ func (s *StatusEndpoint) Get() (*StatusResponse, error) { if err != nil { return nil, err } + request.Header.Add("Authentication", fmt.Sprintf("Bearer %s", s.Token)) response, err := s.Client.Client.Do(request) if err != nil { return nil, err @@ -103,6 +104,7 @@ func (s *SilencesEndpoint) Get() ([]GettableSilence, error) { if err != nil { return nil, err } + request.Header.Add("Authentication", fmt.Sprintf("Bearer %s", s.Token)) response, err := s.Client.Client.Do(request) if err != nil { return nil, err