Skip to content
Snippets Groups Projects

fix(deps): update module github.com/prometheus/client_golang to v1.16.0

Merged Botaniker (Bot) requested to merge renovate/github.com-prometheus-client_golang-1.x into main
4 files
+ 53
519
Compare changes
  • Side-by-side
  • Inline

Files

@@ -892,7 +892,8 @@ func (h *httpAPI) Alerts(ctx context.Context) (AlertsResult, error) {
@@ -892,7 +892,8 @@ func (h *httpAPI) Alerts(ctx context.Context) (AlertsResult, error) {
}
}
var res AlertsResult
var res AlertsResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersResult, error) {
func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersResult, error) {
@@ -909,7 +910,8 @@ func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersResult, error
@@ -909,7 +910,8 @@ func (h *httpAPI) AlertManagers(ctx context.Context) (AlertManagersResult, error
}
}
var res AlertManagersResult
var res AlertManagersResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) CleanTombstones(ctx context.Context) error {
func (h *httpAPI) CleanTombstones(ctx context.Context) error {
@@ -938,7 +940,8 @@ func (h *httpAPI) Config(ctx context.Context) (ConfigResult, error) {
@@ -938,7 +940,8 @@ func (h *httpAPI) Config(ctx context.Context) (ConfigResult, error) {
}
}
var res ConfigResult
var res ConfigResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) DeleteSeries(ctx context.Context, matches []string, startTime, endTime time.Time) error {
func (h *httpAPI) DeleteSeries(ctx context.Context, matches []string, startTime, endTime time.Time) error {
@@ -981,7 +984,8 @@ func (h *httpAPI) Flags(ctx context.Context) (FlagsResult, error) {
@@ -981,7 +984,8 @@ func (h *httpAPI) Flags(ctx context.Context) (FlagsResult, error) {
}
}
var res FlagsResult
var res FlagsResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) Buildinfo(ctx context.Context) (BuildinfoResult, error) {
func (h *httpAPI) Buildinfo(ctx context.Context) (BuildinfoResult, error) {
@@ -998,7 +1002,8 @@ func (h *httpAPI) Buildinfo(ctx context.Context) (BuildinfoResult, error) {
@@ -998,7 +1002,8 @@ func (h *httpAPI) Buildinfo(ctx context.Context) (BuildinfoResult, error) {
}
}
var res BuildinfoResult
var res BuildinfoResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) Runtimeinfo(ctx context.Context) (RuntimeinfoResult, error) {
func (h *httpAPI) Runtimeinfo(ctx context.Context) (RuntimeinfoResult, error) {
@@ -1015,7 +1020,8 @@ func (h *httpAPI) Runtimeinfo(ctx context.Context) (RuntimeinfoResult, error) {
@@ -1015,7 +1020,8 @@ func (h *httpAPI) Runtimeinfo(ctx context.Context) (RuntimeinfoResult, error) {
}
}
var res RuntimeinfoResult
var res RuntimeinfoResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) LabelNames(ctx context.Context, matches []string, startTime, endTime time.Time) ([]string, Warnings, error) {
func (h *httpAPI) LabelNames(ctx context.Context, matches []string, startTime, endTime time.Time) ([]string, Warnings, error) {
@@ -1031,18 +1037,13 @@ func (h *httpAPI) LabelNames(ctx context.Context, matches []string, startTime, e
@@ -1031,18 +1037,13 @@ func (h *httpAPI) LabelNames(ctx context.Context, matches []string, startTime, e
q.Add("match[]", m)
q.Add("match[]", m)
}
}
u.RawQuery = q.Encode()
_, body, w, err := h.client.DoGetFallback(ctx, u, q)
req, err := http.NewRequest(http.MethodGet, u.String(), nil)
if err != nil {
return nil, nil, err
}
_, body, w, err := h.client.Do(ctx, req)
if err != nil {
if err != nil {
return nil, w, err
return nil, w, err
}
}
var labelNames []string
var labelNames []string
return labelNames, w, json.Unmarshal(body, &labelNames)
err = json.Unmarshal(body, &labelNames)
 
return labelNames, w, err
}
}
func (h *httpAPI) LabelValues(ctx context.Context, label string, matches []string, startTime, endTime time.Time) (model.LabelValues, Warnings, error) {
func (h *httpAPI) LabelValues(ctx context.Context, label string, matches []string, startTime, endTime time.Time) (model.LabelValues, Warnings, error) {
@@ -1069,7 +1070,8 @@ func (h *httpAPI) LabelValues(ctx context.Context, label string, matches []strin
@@ -1069,7 +1070,8 @@ func (h *httpAPI) LabelValues(ctx context.Context, label string, matches []strin
return nil, w, err
return nil, w, err
}
}
var labelValues model.LabelValues
var labelValues model.LabelValues
return labelValues, w, json.Unmarshal(body, &labelValues)
err = json.Unmarshal(body, &labelValues)
 
return labelValues, w, err
}
}
type apiOptions struct {
type apiOptions struct {
@@ -1158,20 +1160,14 @@ func (h *httpAPI) Series(ctx context.Context, matches []string, startTime, endTi
@@ -1158,20 +1160,14 @@ func (h *httpAPI) Series(ctx context.Context, matches []string, startTime, endTi
q.Set("end", formatTime(endTime))
q.Set("end", formatTime(endTime))
}
}
u.RawQuery = q.Encode()
_, body, warnings, err := h.client.DoGetFallback(ctx, u, q)
req, err := http.NewRequest(http.MethodGet, u.String(), nil)
if err != nil {
return nil, nil, err
}
_, body, warnings, err := h.client.Do(ctx, req)
if err != nil {
if err != nil {
return nil, warnings, err
return nil, warnings, err
}
}
var mset []model.LabelSet
var mset []model.LabelSet
return mset, warnings, json.Unmarshal(body, &mset)
err = json.Unmarshal(body, &mset)
 
return mset, warnings, err
}
}
func (h *httpAPI) Snapshot(ctx context.Context, skipHead bool) (SnapshotResult, error) {
func (h *httpAPI) Snapshot(ctx context.Context, skipHead bool) (SnapshotResult, error) {
@@ -1193,7 +1189,8 @@ func (h *httpAPI) Snapshot(ctx context.Context, skipHead bool) (SnapshotResult,
@@ -1193,7 +1189,8 @@ func (h *httpAPI) Snapshot(ctx context.Context, skipHead bool) (SnapshotResult,
}
}
var res SnapshotResult
var res SnapshotResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) Rules(ctx context.Context) (RulesResult, error) {
func (h *httpAPI) Rules(ctx context.Context) (RulesResult, error) {
@@ -1210,7 +1207,8 @@ func (h *httpAPI) Rules(ctx context.Context) (RulesResult, error) {
@@ -1210,7 +1207,8 @@ func (h *httpAPI) Rules(ctx context.Context) (RulesResult, error) {
}
}
var res RulesResult
var res RulesResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) Targets(ctx context.Context) (TargetsResult, error) {
func (h *httpAPI) Targets(ctx context.Context) (TargetsResult, error) {
@@ -1227,7 +1225,8 @@ func (h *httpAPI) Targets(ctx context.Context) (TargetsResult, error) {
@@ -1227,7 +1225,8 @@ func (h *httpAPI) Targets(ctx context.Context) (TargetsResult, error) {
}
}
var res TargetsResult
var res TargetsResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limit string) ([]MetricMetadata, error) {
func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limit string) ([]MetricMetadata, error) {
@@ -1251,7 +1250,8 @@ func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limi
@@ -1251,7 +1250,8 @@ func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget, metric, limi
}
}
var res []MetricMetadata
var res []MetricMetadata
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) Metadata(ctx context.Context, metric, limit string) (map[string][]Metadata, error) {
func (h *httpAPI) Metadata(ctx context.Context, metric, limit string) (map[string][]Metadata, error) {
@@ -1274,7 +1274,8 @@ func (h *httpAPI) Metadata(ctx context.Context, metric, limit string) (map[strin
@@ -1274,7 +1274,8 @@ func (h *httpAPI) Metadata(ctx context.Context, metric, limit string) (map[strin
}
}
var res map[string][]Metadata
var res map[string][]Metadata
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) TSDB(ctx context.Context) (TSDBResult, error) {
func (h *httpAPI) TSDB(ctx context.Context) (TSDBResult, error) {
@@ -1291,7 +1292,8 @@ func (h *httpAPI) TSDB(ctx context.Context) (TSDBResult, error) {
@@ -1291,7 +1292,8 @@ func (h *httpAPI) TSDB(ctx context.Context) (TSDBResult, error) {
}
}
var res TSDBResult
var res TSDBResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) WalReplay(ctx context.Context) (WalReplayStatus, error) {
func (h *httpAPI) WalReplay(ctx context.Context) (WalReplayStatus, error) {
@@ -1308,7 +1310,8 @@ func (h *httpAPI) WalReplay(ctx context.Context) (WalReplayStatus, error) {
@@ -1308,7 +1310,8 @@ func (h *httpAPI) WalReplay(ctx context.Context) (WalReplayStatus, error) {
}
}
var res WalReplayStatus
var res WalReplayStatus
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
func (h *httpAPI) QueryExemplars(ctx context.Context, query string, startTime, endTime time.Time) ([]ExemplarQueryResult, error) {
func (h *httpAPI) QueryExemplars(ctx context.Context, query string, startTime, endTime time.Time) ([]ExemplarQueryResult, error) {
@@ -1322,20 +1325,15 @@ func (h *httpAPI) QueryExemplars(ctx context.Context, query string, startTime, e
@@ -1322,20 +1325,15 @@ func (h *httpAPI) QueryExemplars(ctx context.Context, query string, startTime, e
if !endTime.IsZero() {
if !endTime.IsZero() {
q.Set("end", formatTime(endTime))
q.Set("end", formatTime(endTime))
}
}
u.RawQuery = q.Encode()
req, err := http.NewRequest(http.MethodGet, u.String(), nil)
_, body, _, err := h.client.DoGetFallback(ctx, u, q)
if err != nil {
return nil, err
}
_, body, _, err := h.client.Do(ctx, req)
if err != nil {
if err != nil {
return nil, err
return nil, err
}
}
var res []ExemplarQueryResult
var res []ExemplarQueryResult
return res, json.Unmarshal(body, &res)
err = json.Unmarshal(body, &res)
 
return res, err
}
}
// Warnings is an array of non critical errors
// Warnings is an array of non critical errors
Loading