Documentation
¶
Overview ¶
Package config is the pure value-type definition of the stackdriver_exporter configuration. It has no dependencies on the collectors package or any GCP client libraries.
Index ¶
Constants ¶
View Source
const ( DefaultUniverseDomain = "googleapis.com" DefaultMaxRetries = 0 DefaultHTTPTimeout = 10 * time.Second DefaultMaxBackoff = 5 * time.Second DefaultBackoffJitter = 1 * time.Second DefaultMetricsInterval = 5 * time.Minute DefaultMetricsOffset = 0 * time.Second DefaultMetricsIngest = false DefaultFillMissing = true DefaultDropDelegated = false DefaultAggregateDeltas = false DefaultDeltasTTL = 30 * time.Minute DefaultDescriptorTTL = 0 * time.Second DefaultDescriptorGoogleOnly = true )
Variables ¶
View Source
var DefaultRetryStatuses = []int{http.StatusServiceUnavailable}
DefaultRetryStatuses must be treated as immutable after declaration.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ProjectIDs []string
ProjectsFilter string
UniverseDomain string
MaxRetries int
HTTPTimeout time.Duration
MaxBackoff time.Duration
BackoffJitter time.Duration
RetryStatuses []int
MetricsPrefixes []string
MetricsInterval time.Duration
MetricsOffset time.Duration
MetricsIngestDelay bool
FillMissingLabels bool
DropDelegatedProjects bool
Filters []string
AggregateDeltas bool
AggregateDeltasTTL time.Duration
DescriptorCacheTTL time.Duration
DescriptorCacheOnlyGoogle bool
// contains filtered or unexported fields
}
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() *Config
NewConfigWithDefaults returns a Config populated with package defaults. Fields without a default (project IDs, metrics prefixes, filters) are left zero and must be set by the caller before Validate succeeds.
Click to show internal directories.
Click to hide internal directories.