Skip to content

Commit

Permalink
Update adapter.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineF-dev authored Jan 12, 2024
1 parent a983c73 commit ee5a839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom-metrics-stackdriver-adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (sa *StackdriverAdapter) makeProviderOrDie(o *stackdriverAdapterServerOptio
// If ListFullCustomMetrics is false, it returns one resource during api discovery `kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2"` to reduce memory usage.
stackdriverRequest := translator.ListMetricDescriptors(o.FallbackForContainerMetrics)
response, err := stackdriverRequest.Do()
// It exits early when failed to request metrics from stackdriver api.
if err != nil {
klog.Fatalf("Failed request to stackdriver api: %s", err)
}
Expand Down

0 comments on commit ee5a839

Please sign in to comment.