Documentation
¶
Index ¶
- type AWSCloudProviderInfo
- type Arguments
- type AzureCloudProviderInfo
- type CloudProvider
- type Collector
- type Component
- type DatabaseArguments
- type ExplainPlansArguments
- type Exports
- type GCPCloudProviderInfo
- type HealthCheckArguments
- type LocksArguments
- type PrometheusExporterArguments
- type QueryDetailsArguments
- type QuerySamplesArguments
- type SchemaDetailsArguments
- type SetupActorsArguments
- type SetupConsumersArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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,optional"`
ForwardTo []loki.LogsReceiver `alloy:"forward_to,attr"`
Targets []discovery.Target `alloy:"targets,attr,optional"`
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"`
Databases []DatabaseArguments `alloy:"database_instance,block,optional"`
Clustering cluster.ComponentBlock `alloy:"clustering,block,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"`
PrometheusExporter *PrometheusExporterArguments `alloy:"prometheus_exporter,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"`
GCP *GCPCloudProviderInfo `alloy:"gcp,block,optional"`
}
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) CurrentHealth ¶
func (*Component) NotifyClusterChange ¶ added in v1.19.0
func (c *Component) NotifyClusterChange()
NotifyClusterChange implements cluster.Component. It must never block: the cluster service notifies components sequentially, and reconciliation may be waiting on the component lock while it's held across database connects.
type DatabaseArguments ¶ added in v1.19.0
type DatabaseArguments struct {
Name string `alloy:",label"`
DataSourceName alloytypes.Secret `alloy:"data_source_name,attr"`
CloudProvider *CloudProvider `alloy:"cloud_provider,block,optional"`
}
DatabaseArguments configures one monitored database. When one or more `database_instance` blocks are defined, the top-level `data_source_name`, `targets`, and `cloud_provider` arguments must not be set.
type ExplainPlansArguments ¶ added in v1.11.0
type GCPCloudProviderInfo ¶ added in v1.16.0
type GCPCloudProviderInfo struct {
ConnectionName string `alloy:"connection_name,attr"`
}
type HealthCheckArguments ¶ added in v1.13.0
type LocksArguments ¶ added in v1.11.0
type PrometheusExporterArguments ¶ added in v1.15.0
type PrometheusExporterArguments exporter_mysql.Arguments
PrometheusExporterArguments configures the embedded mysqld_exporter scrapers. When this block is present, mysqld_exporter metrics are served alongside the component's own metrics at the same /metrics endpoint.
It is a distinct type (not an embedded struct) because the Alloy syntax system does not support anonymous/embedded fields.
func (*PrometheusExporterArguments) SetToDefault ¶ added in v1.15.0
func (a *PrometheusExporterArguments) SetToDefault()
func (*PrometheusExporterArguments) Validate ¶ added in v1.15.0
func (a *PrometheusExporterArguments) Validate() error
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"`
SampleMinDuration time.Duration `alloy:"sample_min_duration,attr,optional"`
WaitEventMinDuration time.Duration `alloy:"wait_event_min_duration,attr,optional"`
EnablePreClassifiedWaitEvents bool `alloy:"enable_pre_classified_wait_events,attr,optional"`
}