Documentation ¶
Index ¶
Constants ¶
View Source
const ( DataSourceEmptyResultName = "empty" DataSourcePVCResultName = "pvc" DataSourceSnapshotResultName = "snapshot" DataSourcePopulatorResultName = "populator" DataSourceInvalidResultName = "invalid" DataSourceErrorResultName = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsManager ¶
type MetricsManager interface { // PrepareMetricsPath prepares the metrics path the specified pattern for // metrics managed by this MetricsManager. // If the "pattern" is empty (i.e., ""), it will not be registered. // An error will be returned if there is any. PrepareMetricsPath(mux *http.ServeMux, pattern string, logger promhttp.Logger) error // IncrementCount records a metric point for a validation operation. // result - the result of the validation operation. IncrementCount(result string) // GetRegistry() returns the metrics.KubeRegistry used by this metrics manager. GetRegistry() k8smetrics.KubeRegistry }
func NewMetricsManager ¶
func NewMetricsManager() MetricsManager
NewMetricsManager creates a new MetricsManager instance
Click to show internal directories.
Click to hide internal directories.