Skip to content

Commit

Permalink
Enable thanos scraping
Browse files Browse the repository at this point in the history
Thanos does not expose the config endpoint, replacing it by runtimeinfo

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed Mar 7, 2022
1 parent 1c83504 commit 82a805c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func NewPrometheusClient(url, token, username, password, uuid string, tlsVerify
}

func (p *Prometheus) verifyConnection() error {
_, err := p.api.Config(context.TODO())
_, err := p.api.Runtimeinfo(context.TODO())
if err != nil {
return err
}
Expand Down

0 comments on commit 82a805c

Please sign in to comment.