Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
Types ¶
type Config ¶
type Config struct { PollInterval time.Duration `kong:"help='Interval at which metrics are fetch.',env='PROVIDER_POLLINTERVAL',required=false,default='5m'"` PollMaxInterval time.Duration `kong:"help='maximum Interval at which metrics are fetch.',env='PROVIDER_POLLMAXINTERVAL',required=false,default='15m'"` PollingDuration time.Duration `kong:"help='Time limit for requests made by the provider client.',env='PROVIDER_POLLDURATION',required=false,default='5m'"` Workers int `kong:"help='Number of workers to fetch metrics.',env='PROVIDER_WORKERS',required=true,default=10"` Buffer int `kong:"help='Number of cluster that the buffer can have.',env='PROVIDER_BUFFER',required=true,default=100"` MaxRetries int `` /* 229-byte string literal not displayed */ // ClusterChannel define the channel to exchange clusters information with Gardener controller. ClusterChannel chan *gardener.Cluster `kong:"-"` // EventsChannel define the channel to exchange events with EDP. EventsChannel chan<- *edp.Event `kong:"-"` // logger is the standard logger for the provider. Logger log.Logger `kong:"-"` }
Config holds providers base configuration.
Click to show internal directories.
Click to hide internal directories.