Documentation
¶
Index ¶
- Variables
- type AWSCloudProviderInfo
- type Arguments
- type AzureCloudProviderInfo
- type CloudProvider
- type Collector
- type Component
- type ExplainPlansArguments
- type Exports
- type HealthCheckArguments
- type LocksArguments
- type QueryDetailsArguments
- type QuerySamplesArguments
- type SchemaDetailsArguments
- type SetupActorsArguments
- type SetupConsumersArguments
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ ExcludeSchemas: []string{}, AllowUpdatePerfSchemaSettings: false, QueryDetailsArguments: QueryDetailsArguments{ CollectInterval: 1 * time.Minute, StatementsLimit: 250, }, SchemaDetailsArguments: SchemaDetailsArguments{ CollectInterval: 1 * time.Minute, CacheEnabled: true, CacheSize: 256, CacheTTL: 10 * time.Minute, }, SetupConsumersArguments: SetupConsumersArguments{ CollectInterval: 1 * time.Hour, }, SetupActorsArguments: SetupActorsArguments{ CollectInterval: 1 * time.Hour, AutoUpdateSetupActors: false, }, ExplainPlansArguments: ExplainPlansArguments{ CollectInterval: 1 * time.Minute, PerCollectRatio: 1.0, InitialLookback: 24 * time.Hour, }, LocksArguments: LocksArguments{ CollectInterval: 30 * time.Second, Threshold: 1 * time.Second, }, QuerySamplesArguments: QuerySamplesArguments{ CollectInterval: 10 * time.Second, DisableQueryRedaction: false, AutoEnableSetupConsumers: false, SetupConsumersCheckInterval: 1 * time.Hour, }, HealthCheckArguments: HealthCheckArguments{ CollectInterval: 1 * time.Hour, }, }
Functions ¶
This section is empty.
Types ¶
type AWSCloudProviderInfo ¶ added in v1.11.0
type AWSCloudProviderInfo struct {
ARN string `alloy:"arn,attr"`
}
type Arguments ¶
type Arguments struct {
DataSourceName alloytypes.Secret `alloy:"data_source_name,attr"`
ForwardTo []loki.LogsReceiver `alloy:"forward_to,attr"`
Targets []discovery.Target `alloy:"targets,attr"`
EnableCollectors []string `alloy:"enable_collectors,attr,optional"`
DisableCollectors []string `alloy:"disable_collectors,attr,optional"`
ExcludeSchemas []string `alloy:"exclude_schemas,attr,optional"`
AllowUpdatePerfSchemaSettings bool `alloy:"allow_update_performance_schema_settings,attr,optional"`
CloudProvider *CloudProvider `alloy:"cloud_provider,block,optional"`
SetupConsumersArguments SetupConsumersArguments `alloy:"setup_consumers,block,optional"`
SetupActorsArguments SetupActorsArguments `alloy:"setup_actors,block,optional"`
QueryDetailsArguments QueryDetailsArguments `alloy:"query_details,block,optional"`
SchemaDetailsArguments SchemaDetailsArguments `alloy:"schema_details,block,optional"`
ExplainPlansArguments ExplainPlansArguments `alloy:"explain_plans,block,optional"`
LocksArguments LocksArguments `alloy:"locks,block,optional"`
QuerySamplesArguments QuerySamplesArguments `alloy:"query_samples,block,optional"`
HealthCheckArguments HealthCheckArguments `alloy:"health_check,block,optional"`
}
func (*Arguments) SetToDefault ¶
func (a *Arguments) SetToDefault()
type AzureCloudProviderInfo ¶ added in v1.13.0
type CloudProvider ¶ added in v1.11.0
type CloudProvider struct {
AWS *AWSCloudProviderInfo `alloy:"aws,block,optional"`
Azure *AzureCloudProviderInfo `alloy:"azure,block,optional"`
}
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) CurrentHealth ¶
type ExplainPlansArguments ¶ added in v1.11.0
type HealthCheckArguments ¶ added in v1.13.0
type LocksArguments ¶ added in v1.11.0
type QueryDetailsArguments ¶ added in v1.13.0
type QuerySamplesArguments ¶ added in v1.11.0
type QuerySamplesArguments struct {
CollectInterval time.Duration `alloy:"collect_interval,attr,optional"`
DisableQueryRedaction bool `alloy:"disable_query_redaction,attr,optional"`
AutoEnableSetupConsumers bool `alloy:"auto_enable_setup_consumers,attr,optional"`
SetupConsumersCheckInterval time.Duration `alloy:"setup_consumers_check_interval,attr,optional"`
}
type SchemaDetailsArguments ¶ added in v1.11.0
type SetupActorsArguments ¶ added in v1.13.0
type SetupConsumersArguments ¶ added in v1.11.0
Click to show internal directories.
Click to hide internal directories.