Skip to content

Commit

Permalink
Merge pull request #4374 from SimonKienzler/fix/webhook-provider-wron…
Browse files Browse the repository at this point in the history
…g-gauge

Webhook provider: Use correct error gauge in `AdjustEndpoints()` func
  • Loading branch information
k8s-ci-robot committed Apr 10, 2024
2 parents 6800ee5 + b020f7c commit e1df503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/webhook/webhook.go
Expand Up @@ -287,7 +287,7 @@ func (p WebhookProvider) AdjustEndpoints(e []*endpoint.Endpoint) ([]*endpoint.En
}

if err := json.NewDecoder(resp.Body).Decode(&endpoints); err != nil {
recordsErrorsGauge.Inc()
adjustEndpointsErrorsGauge.Inc()
log.Debugf("Failed to decode response body: %s", err.Error())
return nil, err
}
Expand Down

0 comments on commit e1df503

Please sign in to comment.