Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaximumSDCTickInterval is the maximum allowed interval when querying SDC metrics MaximumSDCTickInterval = 10 * time.Minute // MinimumSDCTickInterval is the minimum allowed interval when querying SDC metrics MinimumSDCTickInterval = 5 * time.Second // MaximumVolTickInterval is the maximum allowed interval when querying volume metrics MaximumVolTickInterval = 10 * time.Minute // MinimumVolTickInterval is the minimum allowed interval when querying volume metrics MinimumVolTickInterval = 5 * time.Second // DefaultEndPoint for leader election path DefaultEndPoint = "karavi-metrics-powerflex" // #nosec G101 // DefaultNameSpace for powerflex pod running metrics collection DefaultNameSpace = "karavi" )
Variables ¶
View Source
var ConfigValidatorFunc = ValidateConfig
ConfigValidatorFunc is used to override config validation in testing
Functions ¶
func Run ¶
func Run(ctx context.Context, config *Config, exporter otlexporters.Otlexporter, pflexSvc pflexServices.Service) error
Run is the entry point for starting the service
func ValidateConfig ¶
ValidateConfig will validate the configuration and return any errors
Types ¶
type Config ¶
type Config struct { SDCTickInterval time.Duration VolumeTickInterval time.Duration StoragePoolTickInterval time.Duration PowerFlexClient map[string]pflexServices.PowerFlexClient PowerFlexConfig map[string]sio.ConfigConnect SDCFinder service.SDCFinder StorageClassFinder service.StorageClassFinder LeaderElector service.LeaderElector VolumeFinder service.VolumeFinder NodeFinder service.NodeFinder SDCMetricsEnabled bool VolumeMetricsEnabled bool StoragePoolMetricsEnabled bool CollectorAddress string CollectorCertPath string Logger *logrus.Logger }
Config holds data that will be used by the service
Click to show internal directories.
Click to hide internal directories.