Chore: Upgrade Prometheus to 2.43.0 (#67853)

- github.com/prometheus/prometheus => 2.43.0 (aka 0.43.0)
- github.com/prometheus/client_golang => 1.15.1
This commit is contained in:
Emil Tullstedt
2023-05-10 14:09:49 +02:00
committed by GitHub
parent 51a5f9f3fd
commit 23a9963507
4 changed files with 262 additions and 763 deletions

View File

@@ -17,12 +17,10 @@ import (
"sync"
"time"
"go.uber.org/atomic"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/prometheus/config"
"go.uber.org/atomic"
)
// ApplyConfig updates the status state as the new config requires.
@@ -192,7 +190,7 @@ func (n *Manager) sendOne(ctx context.Context, c *http.Client, url string, b []b
// Any HTTP status 2xx is OK.
if resp.StatusCode/100 != 2 {
return errors.Errorf("bad response status %s", resp.Status)
return fmt.Errorf("bad response status %s", resp.Status)
}
return nil