Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultArguments = Arguments{ EnabledCollectors: []string{"cpu", "cs", "logical_disk", "net", "os", "service", "system"}, IIS: IISConfig{AppWhiteList: ".+", SiteWhiteList: ".+"}, TextFile: TextFileConfig{TextFileDirectory: "C:\\Program Files\\windows_exporter\\textfile_inputs"}, SMTP: SMTPConfig{WhiteList: ".+"}, Process: ProcessConfig{WhiteList: ".*"}, Network: NetworkConfig{WhiteList: ".*"}, MSSQL: MSSQLConfig{EnabledClasses: []string{"accessmethods", "availreplica", "bufman", "databases", "dbreplica", "genstats", "locks", "memmgr", "sqlstats", "sqlerrorstransactions"}}, LogicalDisk: LogicalDiskConfig{WhiteList: ".+"}, }
DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from YAML.
Some defaults are populated from init functions in the github.com/grafana/agent/pkg/integrations/node_exporter package.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { // Collectors to mark as enabled EnabledCollectors []string `river:"enabled_collectors,attr,optional"` // Collector-specific config options Exchange ExchangeConfig `river:"exchange,block,optional"` IIS IISConfig `river:"iis,block,optional"` TextFile TextFileConfig `river:"text_file,block,optional"` SMTP SMTPConfig `river:"smtp,block,optional"` Service ServiceConfig `river:"service,block,optional"` Process ProcessConfig `river:"process,block,optional"` Network NetworkConfig `river:"network,block,optional"` MSSQL MSSQLConfig `river:"mssql,block,optional"` MSMQ MSMQConfig `river:"msmq,block,optional"` LogicalDisk LogicalDiskConfig `river:"logical_disk,block,optional"` }
Arguments is used for controlling for this exporter.
func (*Arguments) Convert ¶
func (a *Arguments) Convert() *windows_integration.Config
Convert converts the component's Arguments to the integration's Config.
func (*Arguments) UnmarshalRiver ¶
UnmarshalRiver implements River unmarshalling for Config.
type ExchangeConfig ¶
type ExchangeConfig struct {
EnabledList []string `river:"enabled_list,attr,optional"`
}
ExchangeConfig handles settings for the windows_exporter Exchange collector
func (ExchangeConfig) Convert ¶
func (t ExchangeConfig) Convert() windows_integration.ExchangeConfig
Convert converts the component's ExchangeConfig to the integration's ExchangeConfig.
type IISConfig ¶
type IISConfig struct { AppBlackList string `river:"app_blacklist,attr,optional"` AppWhiteList string `river:"app_whitelist,attr,optional"` SiteBlackList string `river:"site_blacklist,attr,optional"` SiteWhiteList string `river:"site_whitelist,attr,optional"` }
IISConfig handles settings for the windows_exporter IIS collector
func (IISConfig) Convert ¶
func (t IISConfig) Convert() windows_integration.IISConfig
Convert converts the component's IISConfig to the integration's IISConfig.
type LogicalDiskConfig ¶
type LogicalDiskConfig struct { WhiteList string `river:"whitelist,attr,optional"` BlackList string `river:"blacklist,attr,optional"` }
LogicalDiskConfig handles settings for the windows_exporter logical disk collector
func (LogicalDiskConfig) Convert ¶
func (t LogicalDiskConfig) Convert() windows_integration.LogicalDiskConfig
Convert converts the component's LogicalDiskConfig to the integration's LogicalDiskConfig.
type MSMQConfig ¶
type MSMQConfig struct {
Where string `river:"where_clause,attr,optional"`
}
MSMQConfig handles settings for the windows_exporter MSMQ collector
func (MSMQConfig) Convert ¶
func (t MSMQConfig) Convert() windows_integration.MSMQConfig
Convert converts the component's MSMQConfig to the integration's MSMQConfig.
type MSSQLConfig ¶
type MSSQLConfig struct {
EnabledClasses []string `river:"enabled_classes,attr,optional"`
}
MSSQLConfig handles settings for the windows_exporter SQL server collector
func (MSSQLConfig) Convert ¶
func (t MSSQLConfig) Convert() windows_integration.MSSQLConfig
Convert converts the component's MSSQLConfig to the integration's MSSQLConfig.
type NetworkConfig ¶
type NetworkConfig struct { BlackList string `river:"blacklist,attr,optional"` WhiteList string `river:"whitelist,attr,optional"` }
NetworkConfig handles settings for the windows_exporter network collector
func (NetworkConfig) Convert ¶
func (t NetworkConfig) Convert() windows_integration.NetworkConfig
Convert converts the component's NetworkConfig to the integration's NetworkConfig.
type ProcessConfig ¶
type ProcessConfig struct { BlackList string `river:"blacklist,attr,optional"` WhiteList string `river:"whitelist,attr,optional"` }
ProcessConfig handles settings for the windows_exporter process collector
func (ProcessConfig) Convert ¶
func (t ProcessConfig) Convert() windows_integration.ProcessConfig
Convert converts the component's ProcessConfig to the integration's ProcessConfig.
type SMTPConfig ¶
type SMTPConfig struct { BlackList string `river:"blacklist,attr,optional"` WhiteList string `river:"whitelist,attr,optional"` }
SMTPConfig handles settings for the windows_exporter SMTP collector
func (SMTPConfig) Convert ¶
func (t SMTPConfig) Convert() windows_integration.SMTPConfig
Convert converts the component's SMTPConfig to the integration's SMTPConfig.
type ServiceConfig ¶
type ServiceConfig struct {
Where string `river:"where_clause,attr,optional"`
}
ServiceConfig handles settings for the windows_exporter service collector
func (ServiceConfig) Convert ¶
func (t ServiceConfig) Convert() windows_integration.ServiceConfig
Convert converts the component's ServiceConfig to the integration's ServiceConfig.
type TextFileConfig ¶
type TextFileConfig struct {
TextFileDirectory string `river:"text_file_directory,attr,optional"`
}
TextFileConfig handles settings for the windows_exporter Text File collector
func (TextFileConfig) Convert ¶
func (t TextFileConfig) Convert() windows_integration.TextFileConfig
Convert converts the component's TextFileConfig to the integration's TextFileConfig.