Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaximumTickInterval is the maximum allowed interval when querying metrics MaximumTickInterval = 10 * time.Minute // MinimumTickInterval is the minimum allowed interval when querying metrics MinimumTickInterval = 5 * time.Second // DefaultEndPoint for leader election path DefaultEndPoint = "karavi-metrics-powerscale" // DefaultNameSpace for PowerScale 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, powerScaleSvc pscaleService.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 { LeaderElector pscaleService.LeaderElector ClusterCapacityTickInterval time.Duration ClusterPerformanceTickInterval time.Duration QuotaCapacityTickInterval time.Duration CapacityMetricsEnabled bool PerformanceMetricsEnabled 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.