Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Collect(timeseriesStart, timeseriesEnd time.Time, projectID string, creds []byte, baseTags circonus.Tags) error ID() string }
Collector interface for gcp metric services.
type Compute ¶
type Compute struct {
// contains filtered or unexported fields
}
Compute holds definition for the gcp gce collector.
type Filter ¶
type Filter struct { Labels map[string]string `json:"labels" toml:"labels" yaml:"labels"` // filter by labels Expression string `json:"expression" toml:"expression" yaml:"expression"` // filter with a custom expression }
Filter defines any filtering criteria used for resources and metrics. Use labels, an expression, or neither.
type GCPCollector ¶
type GCPCollector struct { Filter Filter `json:"filter" toml:"filter" yaml:"filter"` // filter Name string `json:"name" toml:"name" yaml:"name"` // e.g. compute Tags circonus.Tags `json:"tags" toml:"tags" yaml:"tags"` // service tags Disabled bool `json:"disabled" toml:"disabled" yaml:"disabled"` // disable metric collection for this gcp service }
GCPCollector defines a generic gcp service metric collector.
func ConfigExample ¶
func ConfigExample() ([]GCPCollector, error)
ConfigExample generates configuration examples for collectors.
Click to show internal directories.
Click to hide internal directories.