Skip to content

Commit

Permalink
gcp: increment failure counter if unable to set disk labels
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed May 21, 2024
1 parent 3f18f38 commit 288c5b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func addPDVolumeLabels(c GCPClient, volumeID string, labels map[string]string, s
false,
waitForCompletion); err != nil {
log.Errorf("set label operation failed: %s", err)
promActionsTotal.With(prometheus.Labels{"status": "error", "storageclass": storageclass}).Inc()
return
}

Expand Down

0 comments on commit 288c5b6

Please sign in to comment.