Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for MongoDB Atlas receiver
Types ¶
type AccessLogsConfig ¶ added in v0.78.0
type AccessLogsConfig struct {
Enabled *bool `mapstructure:"enabled"`
PollInterval time.Duration `mapstructure:"poll_interval"`
PageSize int64 `mapstructure:"page_size"`
MaxPages int64 `mapstructure:"max_pages"`
AuthResult *bool `mapstructure:"auth_result"`
}
func (*AccessLogsConfig) IsEnabled ¶ added in v0.78.0
func (alc *AccessLogsConfig) IsEnabled() bool
type AlertConfig ¶ added in v0.54.0
type AlertConfig struct {
Enabled bool `mapstructure:"enabled"`
Endpoint string `mapstructure:"endpoint"`
Secret configopaque.String `mapstructure:"secret"`
TLS *configtls.ServerConfig `mapstructure:"tls"`
Mode string `mapstructure:"mode"`
// these parameters are only relevant in retrieval mode
Projects []*ProjectConfig `mapstructure:"projects"`
PollInterval time.Duration `mapstructure:"poll_interval"`
PageSize int64 `mapstructure:"page_size"`
MaxPages int64 `mapstructure:"max_pages"`
}
type Config ¶
type Config struct {
scraperhelper.ControllerConfig `mapstructure:",squash"`
BaseURL string `mapstructure:"base_url"`
PublicKey string `mapstructure:"public_key"`
PrivateKey configopaque.String `mapstructure:"private_key"`
Granularity string `mapstructure:"granularity"`
MetricsBuilderConfig metadata.MetricsBuilderConfig `mapstructure:",squash"`
Projects []ProjectConfig `mapstructure:"projects"`
Alerts AlertConfig `mapstructure:"alerts"`
Events configoptional.Optional[EventsConfig] `mapstructure:"events"`
Logs LogConfig `mapstructure:"logs"`
BackOffConfig configretry.BackOffConfig `mapstructure:"retry_on_failure"`
StorageID *component.ID `mapstructure:"storage"`
}
type EventsConfig ¶ added in v0.71.0
type EventsConfig struct {
Projects []*ProjectConfig `mapstructure:"projects"`
Organizations []*OrgConfig `mapstructure:"organizations"`
PollInterval time.Duration `mapstructure:"poll_interval"`
Types []string `mapstructure:"types"`
PageSize int64 `mapstructure:"page_size"`
MaxPages int64 `mapstructure:"max_pages"`
}
EventsConfig is the configuration options for events collection
type LogConfig ¶ added in v0.59.0
type LogConfig struct {
Enabled bool `mapstructure:"enabled"`
Projects []*LogsProjectConfig `mapstructure:"projects"`
// contains filtered or unexported fields
}
type LogsProjectConfig ¶ added in v0.78.0
type LogsProjectConfig struct {
ProjectConfig `mapstructure:",squash"`
EnableAuditLogs bool `mapstructure:"collect_audit_logs"`
EnableHostLogs *bool `mapstructure:"collect_host_logs"`
AccessLogs *AccessLogsConfig `mapstructure:"access_logs"`
// contains filtered or unexported fields
}
type OrgConfig ¶ added in v0.75.0
type OrgConfig struct {
ID string `mapstructure:"id"`
// contains filtered or unexported fields
}
type ProjectConfig ¶ added in v0.59.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.