 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var DefaultArguments = Arguments{ LockWaitTimeout: 2, InfoSchemaProcessList: InfoSchemaProcessList{ ProcessesByUser: true, ProcessesByHost: true, }, InfoSchemaTables: InfoSchemaTables{ Databases: "*", }, PerfSchemaEventsStatements: PerfSchemaEventsStatements{ Limit: 250, TimeLimit: 86400, TextLimit: 120, }, PerfSchemaFileInstances: PerfSchemaFileInstances{ Filter: ".*", RemovePrefix: "/var/lib/mysql", }, PerfSchemaMemoryEvents: PerfSchemaMemoryEvents{ RemovePrefix: "memory/", }, Heartbeat: Heartbeat{ Database: "heartbeat", Table: "heartbeat", }, }
DefaultArguments holds the default settings for the mysqld_exporter integration.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
	// DataSourceName to use to connect to MySQL.
	DataSourceName alloytypes.Secret `alloy:"data_source_name,attr,optional"`
	// Collectors to mark as enabled in addition to the default.
	EnableCollectors []string `alloy:"enable_collectors,attr,optional"`
	// Collectors to explicitly mark as disabled.
	DisableCollectors []string `alloy:"disable_collectors,attr,optional"`
	// Overrides the default set of enabled collectors with the given list.
	SetCollectors []string `alloy:"set_collectors,attr,optional"`
	// Collector-wide options
	LockWaitTimeout int  `alloy:"lock_wait_timeout,attr,optional"`
	LogSlowFilter   bool `alloy:"log_slow_filter,attr,optional"`
	// Collector-specific config options
	InfoSchemaProcessList      InfoSchemaProcessList      `alloy:"info_schema.processlist,block,optional"`
	InfoSchemaTables           InfoSchemaTables           `alloy:"info_schema.tables,block,optional"`
	PerfSchemaEventsStatements PerfSchemaEventsStatements `alloy:"perf_schema.eventsstatements,block,optional"`
	PerfSchemaFileInstances    PerfSchemaFileInstances    `alloy:"perf_schema.file_instances,block,optional"`
	PerfSchemaMemoryEvents     PerfSchemaMemoryEvents     `alloy:"perf_schema.memory_events,block,optional"`
	Heartbeat Heartbeat `alloy:"heartbeat,block,optional"`
	MySQLUser MySQLUser `alloy:"mysql.user,block,optional"`
}
    Arguments controls the mysql component.
func (*Arguments) Convert ¶
func (a *Arguments) Convert() *mysqld_exporter.Config
func (*Arguments) SetToDefault ¶
func (a *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Heartbeat ¶
type Heartbeat struct {
	Database string `alloy:"database,attr,optional"`
	Table    string `alloy:"table,attr,optional"`
	UTC      bool   `alloy:"utc,attr,optional"`
}
    Heartbeat controls the heartbeat collector
type InfoSchemaProcessList ¶
type InfoSchemaProcessList struct {
	MinTime         int  `alloy:"min_time,attr,optional"`
	ProcessesByUser bool `alloy:"processes_by_user,attr,optional"`
	ProcessesByHost bool `alloy:"processes_by_host,attr,optional"`
}
    InfoSchemaProcessList configures the info_schema.processlist collector
type InfoSchemaTables ¶
type InfoSchemaTables struct {
	Databases string `alloy:"databases,attr,optional"`
}
    InfoSchemaTables configures the info_schema.tables collector
type MySQLUser ¶
type MySQLUser struct {
	Privileges bool `alloy:"privileges,attr,optional"`
}
    MySQLUser controls the mysql.user collector
type PerfSchemaEventsStatements ¶
type PerfSchemaEventsStatements struct {
	Limit     int `alloy:"limit,attr,optional"`
	TimeLimit int `alloy:"time_limit,attr,optional"`
	TextLimit int `alloy:"text_limit,attr,optional"`
}
    PerfSchemaEventsStatements configures the perf_schema.eventsstatements collector
type PerfSchemaFileInstances ¶
type PerfSchemaFileInstances struct {
	Filter       string `alloy:"filter,attr,optional"`
	RemovePrefix string `alloy:"remove_prefix,attr,optional"`
}
    PerfSchemaFileInstances configures the perf_schema.file_instances collector
type PerfSchemaMemoryEvents ¶
type PerfSchemaMemoryEvents struct {
	RemovePrefix string `alloy:"remove_prefix,attr,optional"`
}
    PerfSchemaMemoryEvents configures the perf_schema.memory_events collector
 Click to show internal directories. 
   Click to hide internal directories.