Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Google Cloud project ID from where we want to scrape metrics from ProjectIDs []string `yaml:"project_ids"` // Comma separated Google Monitoring Metric Type prefixes. MetricPrefixes []string `yaml:"metrics_prefixes"` // Filters. i.e: pubsub.googleapis.com/subscription:resource.labels.subscription_id=monitoring.regex.full_match("my-subs-prefix.*") ExtraFilters []string `yaml:"extra_filters"` // Interval to request the Google Monitoring Metrics for. Only the most recent data point is used. RequestInterval time.Duration `yaml:"request_interval"` // Offset for the Google Stackdriver Monitoring Metrics interval into the past. RequestOffset time.Duration `yaml:"request_offset"` // Offset for the Google Stackdriver Monitoring Metrics interval into the past by the ingest delay from the metric's metadata. IngestDelay bool `yaml:"ingest_delay"` // Drop metrics from attached projects and fetch `project_id` only. DropDelegatedProjects bool `yaml:"drop_delegated_projects"` // How long should the collector wait for a result from the API. ClientTimeout time.Duration `yaml:"gcp_client_timeout"` }
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
Click to show internal directories.
Click to hide internal directories.