Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
ClientTimeout: 15 * time.Second,
RequestInterval: 5 * time.Minute,
RequestOffset: 0,
IngestDelay: false,
DropDelegatedProjects: false,
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProjectIDs []string `yaml:"project_ids"`
MetricPrefixes []string `yaml:"metrics_prefixes"`
ExtraFilters []string `yaml:"extra_filters"`
RequestInterval time.Duration `yaml:"request_interval"`
RequestOffset time.Duration `yaml:"request_offset"`
IngestDelay bool `yaml:"ingest_delay"`
DropDelegatedProjects bool `yaml:"drop_delegated_projects"`
ClientTimeout time.Duration `yaml:"gcp_client_timeout"`
}
func (*Config) InstanceKey ¶
func (c *Config) InstanceKey(_ string) (string, error)
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
func (*Config) UnmarshalYAML ¶
func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.