-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: support usage inside CSI driver
A CSI driver is a gRPC server, which implies that the interceptor must use a slightly different API. The extended CSIMetricsManager gets exported with a suitable method for that. To avoid counting the same operation twice in the same metric, CSI sidecar and driver should use different subsystem names. Two new functions provide the CSIMetricsManager that they are expected to use for the sake of consistency. However, special cases need additional flexibility: - constant labels (same for all samples) - varying labels (same label names, but per-sample values) - configurable subsystem - configurable stability
- Loading branch information
Showing
4 changed files
with
251 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.