Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d01d2da
PMM-12832 Rough implementation.
JiriCtvrtka Mar 12, 2026
ca36e37
PMM-12832 Fix.
JiriCtvrtka Mar 12, 2026
eb9dc4e
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka Mar 12, 2026
342e4c0
PMM-12832 More exporters, refactor.
JiriCtvrtka Mar 13, 2026
75c0854
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka Mar 13, 2026
e009b06
PMM-12832 Another parts.
JiriCtvrtka Mar 16, 2026
fe76cec
PMM-12832 Mongo change, list.
JiriCtvrtka Mar 17, 2026
3dd7cb4
PMM-12832 Changes, refactor.
JiriCtvrtka Mar 17, 2026
3831afd
PMM-12832 Refactor of agent model.
JiriCtvrtka Mar 17, 2026
27895b3
PMM-12832 Lint.
JiriCtvrtka Mar 17, 2026
dad3e75
PMM-12832 Inventory timeout for all.
JiriCtvrtka Mar 17, 2026
64d37ca
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka Mar 17, 2026
d1c530e
PMM-12832 Add change func after merge.
JiriCtvrtka Mar 17, 2026
3c358f0
PMM-12832 Fix for now.
JiriCtvrtka Mar 17, 2026
658fc92
PMM-12832 Changes.
JiriCtvrtka Mar 17, 2026
58db609
PMM-12832 Fix tests.
JiriCtvrtka Mar 17, 2026
b3d65c7
PMM-12832 Changes.
JiriCtvrtka Mar 17, 2026
8f44fc6
PMM-12832 Changes.
JiriCtvrtka Mar 18, 2026
c329c2a
PMM-12832 Changes.
JiriCtvrtka Mar 18, 2026
1b924cd
PMM-12832 Changes.
JiriCtvrtka Mar 18, 2026
098d50e
PMM-12832 Change for RTA.
JiriCtvrtka Mar 18, 2026
5811d1b
PMM-12832 Fix.
JiriCtvrtka Mar 18, 2026
42f5b86
PMM-12832 Fix.
JiriCtvrtka Mar 18, 2026
69ed781
PMM-12832 Fix.
JiriCtvrtka Mar 18, 2026
bccea8d
PMM-12832 Refactor.
JiriCtvrtka Mar 18, 2026
80226ed
PMM-12832 Remove not related types.
JiriCtvrtka Mar 18, 2026
c6dd6e7
PMM-12832 Changes.
JiriCtvrtka Mar 18, 2026
963a998
PMM-12832 Remote, valkey, etc.
JiriCtvrtka Mar 18, 2026
4e09994
PMM-12832 Fix.
JiriCtvrtka Mar 18, 2026
04514be
PMM-12832 Lint.
JiriCtvrtka Mar 18, 2026
64a5e7a
PMM-12832 Lint.
JiriCtvrtka Mar 19, 2026
fb125cb
PMM-12832 New tests.
JiriCtvrtka Mar 19, 2026
f503841
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka Mar 20, 2026
fe7a7fe
PMM-12832 Better comment.
JiriCtvrtka Mar 20, 2026
3949531
PMM-12832 Fix for missed parts.
JiriCtvrtka Mar 20, 2026
0a05b27
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka Mar 20, 2026
8632984
PMM-12832 Format.
JiriCtvrtka Mar 20, 2026
a0a72b8
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka Mar 20, 2026
69fd130
Merge branch 'v3' into PMM-12832-exporter-timeouts
JiriCtvrtka Mar 20, 2026
afefbea
PMM-12832 Valkey refactor.
JiriCtvrtka Mar 21, 2026
1c01e3a
Merge remote-tracking branch 'origin/PMM-12832-exporter-timeouts' int…
JiriCtvrtka Mar 21, 2026
c6246b9
PMM-12832 Requested changes.
JiriCtvrtka Mar 22, 2026
c84fc3f
PMM-12832 RDS fix.
JiriCtvrtka Mar 22, 2026
089c328
PMM-12832 Correct timeout flag for Valkey/Redis.
JiriCtvrtka Mar 22, 2026
0eb4514
PMM-12832 Lint.
JiriCtvrtka Mar 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_external_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type AddAgentExternalExporterCommand struct {
CustomLabels map[string]string `mapsep:"," help:"Custom user-assigned labels"`
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
TLSSkipVerify bool `help:"Skip TLS certificate verification"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`
Timeout *time.Duration `placeholder:"DURATION" help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here and at the rest of commands

}

// RunCmd executes the AddAgentExternalExporterCommand and returns the result.
Expand All @@ -84,6 +85,7 @@ func (cmd *AddAgentExternalExporterCommand) RunCmd() (commands.Result, error) {
CustomLabels: pointer.Get(customLabels),
PushMetrics: cmd.PushMetrics,
TLSSkipVerify: cmd.TLSSkipVerify,
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_mongodb_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type AddAgentMongodbExporterCommand struct {
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
StatsCollections []string `help:"Collections for collstats & indexstats"`
CollectionsLimit int32 `name:"max-collections-limit" placeholder:"number" help:"Disable collstats & indexstats if there are more than <n> collections"` //nolint:lll
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelFatalFlags
}
Expand Down Expand Up @@ -105,6 +106,7 @@ func (cmd *AddAgentMongodbExporterCommand) RunCmd() (commands.Result, error) {
StatsCollections: commands.ParseDisableCollectors(cmd.StatsCollections),
CollectionsLimit: cmd.CollectionsLimit,
LogLevel: cmd.LogLevelFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_mysqld_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ type AddAgentMysqldExporterCommand struct {
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
ExposeExporter bool `help:"Expose the address of the exporter publicly on 0.0.0.0"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelNoFatalFlags
}
Expand Down Expand Up @@ -153,6 +154,7 @@ func (cmd *AddAgentMysqldExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_node_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type AddAgentNodeExporterCommand struct {
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
ExposeExporter bool `help:"Expose the address of the exporter publicly on 0.0.0.0"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelNoFatalFlags
}
Expand All @@ -65,6 +66,7 @@ func (cmd *AddAgentNodeExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_postgres_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type AddAgentPostgresExporterCommand struct {
TLSKeyFile string `help:"TLS certificate key file"`
AutoDiscoveryLimit int32 `default:"0" placeholder:"NUMBER" help:"Auto-discovery will be disabled if there are more than that number of databases (default: server-defined, -1: always disabled)"`
MaxExporterConnections int32 `default:"0" placeholder:"NUMBER" help:"Maximum number of connections that exporter can make to PostgreSQL instance (default: server-defined)"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelNoFatalFlags
}
Expand Down Expand Up @@ -118,6 +119,7 @@ func (cmd *AddAgentPostgresExporterCommand) RunCmd() (commands.Result, error) {
TLSCert: tlsCert,
TLSKey: tlsKey,
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_proxysql_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type AddAgentProxysqlExporterCommand struct {
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
ExposeExporter bool `help:"Expose the address of the exporter publicly on 0.0.0.0"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelFatalFlags
}
Expand All @@ -83,6 +84,7 @@ func (cmd *AddAgentProxysqlExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: cmd.LogLevelFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_rds_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type AddAgentRDSExporterCommand struct {
DisableBasicMetrics bool `help:"Disable basic metrics"`
DisableEnhancedMetrics bool `help:"Disable enhanced metrics"`
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelFatalFlags
}
Expand All @@ -76,6 +77,7 @@ func (cmd *AddAgentRDSExporterCommand) RunCmd() (commands.Result, error) {
DisableEnhancedMetrics: cmd.DisableEnhancedMetrics,
PushMetrics: cmd.PushMetrics,
LogLevel: cmd.LogLevelFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/add_agent_valkey_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type AddAgentValkeyExporterCommand struct {
PushMetrics bool `help:"Enables push metrics model flow, it will be sent to the server by an agent"`
ExposeExporter bool `help:"Expose the address of the exporter publicly on 0.0.0.0"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.LogLevelNoFatalFlags
}
Expand Down Expand Up @@ -116,6 +117,7 @@ func (cmd *AddAgentValkeyExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: convertLogLevelPtr(&cmd.LogLevel),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ type ChangeAgentAzureDatabaseExporterCommand struct {
AzureResourceGroup *string `help:"Azure Resource Group"`

// Exporter options
PushMetrics *bool `help:"Enable push metrics with vmagent"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand All @@ -99,6 +100,7 @@ func (cmd *ChangeAgentAzureDatabaseExporterCommand) RunCmd() (commands.Result, e
AzureResourceGroup: cmd.AzureResourceGroup,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_external_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type ChangeAgentExternalExporterCommand struct {
MetricsScheme *string `help:"Metrics scheme (http or https)"`
MetricsPath *string `help:"Metrics path"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand All @@ -88,6 +89,7 @@ func (cmd *ChangeAgentExternalExporterCommand) RunCmd() (commands.Result, error)
Scheme: cmd.MetricsScheme,
MetricsPath: cmd.MetricsPath,
EnablePushMetrics: cmd.PushMetrics,
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_mongodb_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type ChangeAgentMongodbExporterCommand struct {
DisableCollectors []string `help:"List of collector names to disable"`
ExposeExporter *bool `help:"Expose the exporter process on all public interfaces"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand Down Expand Up @@ -152,6 +153,7 @@ func (cmd *ChangeAgentMongodbExporterCommand) RunCmd() (commands.Result, error)
ExposeExporter: cmd.ExposeExporter,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_mysqld_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ type ChangeAgentMysqldExporterCommand struct {
DisableCollectors []string `help:"List of collector names to disable"`
ExposeExporter *bool `help:"Expose the exporter process on all public interfaces"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand Down Expand Up @@ -143,6 +144,7 @@ func (cmd *ChangeAgentMysqldExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_node_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type ChangeAgentNodeExporterCommand struct {
PushMetrics *bool `help:"Enable push metrics with vmagent"`
ExposeExporter *bool `help:"Expose the exporter process on all public interfaces"`
DisableCollectors []string `help:"List of collector names to disable"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand All @@ -89,6 +90,7 @@ func (cmd *ChangeAgentNodeExporterCommand) RunCmd() (commands.Result, error) {
DisableCollectors: cmd.DisableCollectors,
ExposeExporter: cmd.ExposeExporter,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_postgres_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ type ChangeAgentPostgresExporterCommand struct {
PushMetrics *bool `help:"Enable push metrics with vmagent"`
AutoDiscoveryLimit *int32 `help:"Auto-discovery limit"`
MaxExporterConnections *int32 `help:"Maximum number of connections that exporter can make to PostgreSQL instance"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand Down Expand Up @@ -145,6 +146,7 @@ func (cmd *ChangeAgentPostgresExporterCommand) RunCmd() (commands.Result, error)
AutoDiscoveryLimit: cmd.AutoDiscoveryLimit,
MaxExporterConnections: cmd.MaxExporterConnections,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_proxysql_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type ChangeAgentProxysqlExporterCommand struct {
DisableCollectors []string `help:"List of collector names to disable"`
ExposeExporter *bool `help:"Expose the exporter process on all public interfaces"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand All @@ -105,6 +106,7 @@ func (cmd *ChangeAgentProxysqlExporterCommand) RunCmd() (commands.Result, error)
ExposeExporter: cmd.ExposeExporter,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
4 changes: 3 additions & 1 deletion admin/commands/inventory/change_agent_rds_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ type ChangeAgentRDSExporterCommand struct {
DisableEnhancedMetrics *bool `help:"Disable enhanced metrics"`

// Exporter options
PushMetrics *bool `help:"Enable push metrics with vmagent"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand All @@ -99,6 +100,7 @@ func (cmd *ChangeAgentRDSExporterCommand) RunCmd() (commands.Result, error) {
DisableEnhancedMetrics: cmd.DisableEnhancedMetrics,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/inventory/change_agent_valkey_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type ChangeAgentValkeyExporterCommand struct {
DisableCollectors []string `help:"List of collector names to disable"`
ExposeExporter *bool `help:"Expose the exporter process on all public interfaces"`
PushMetrics *bool `help:"Enable push metrics with vmagent"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

// Custom labels
CustomLabels *map[string]string `mapsep:"," help:"Custom user-assigned labels"`
Expand Down Expand Up @@ -137,6 +138,7 @@ func (cmd *ChangeAgentValkeyExporterCommand) RunCmd() (commands.Result, error) {
ExposeExporter: cmd.ExposeExporter,
EnablePushMetrics: cmd.PushMetrics,
LogLevel: convertLogLevelPtr(cmd.LogLevel),
Timeout: cmd.Timeout,
}

if customLabels != nil {
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/management/add_external.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type AddExternalCommand struct {
Group string `default:"${externalDefaultGroupExporter}" help:"Group name of external service (default: ${externalDefaultGroupExporter})"`
SkipConnectionCheck bool `help:"Skip exporter connection checks"`
TLSSkipVerify bool `help:"Skip TLS certificate verification"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

flags.MetricsModeFlags
}
Expand Down Expand Up @@ -140,6 +141,7 @@ func (cmd *AddExternalCommand) RunCmd() (commands.Result, error) {
Group: cmd.Group,
SkipConnectionCheck: cmd.SkipConnectionCheck,
TLSSkipVerify: cmd.TLSSkipVerify,
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/management/add_mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type AddMongoDBCommand struct {
CollectionsLimit int32 `name:"max-collections-limit" default:"-1" help:"Disable collstats, dbstats, topmetrics and indexstats if there are more than <n> collections. 0: No limit. Default is -1, which let PMM automatically set this value"`
ExposeExporter bool `name:"expose-exporter" help:"Optionally expose the address of the exporter publicly on 0.0.0.0"`
AgentEnvVars []string `name:"agent-env-vars" help:"Comma-separated list of environment variable names to pass to the exporter (values are read from the current environment), e.g. 'VAR1,VAR2'"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

AddCommonFlags
flags.MetricsModeFlags
Expand Down Expand Up @@ -203,6 +204,7 @@ func (cmd *AddMongoDBCommand) RunCmd() (commands.Result, error) {
StatsCollections: commands.ParseDisableCollectors(cmd.StatsCollections),
CollectionsLimit: cmd.CollectionsLimit,
LogLevel: cmd.LogLevelFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/management/add_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ type AddMySQLCommand struct {
CreateUser bool `hidden:"" help:"Create pmm user"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
ExposeExporter bool `name:"expose-exporter" help:"Optionally expose the address of the exporter publicly on 0.0.0.0"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

AddCommonFlags
flags.MetricsModeFlags
Expand Down Expand Up @@ -242,6 +243,7 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) {
MetricsMode: cmd.MetricsModeFlags.MetricsMode.EnumValue(),
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/management/add_postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type AddPostgreSQLCommand struct {
ExposeExporter bool `name:"expose-exporter" help:"Optionally expose the address of the exporter publicly on 0.0.0.0"`
AutoDiscoveryLimit int32 `placeholder:"NUMBER" help:"Auto-discovery will be disabled if there are more than that number of databases (default: server-defined, -1: always disabled)"`
MaxExporterConnections int32 `placeholder:"NUMBER" help:"Maximum number of connections to PostgreSQL instance that exporter can use (default: server-defined)"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

AddCommonFlags
flags.MetricsModeFlags
Expand Down Expand Up @@ -213,6 +214,7 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) {
AutoDiscoveryLimit: cmd.AutoDiscoveryLimit,
MaxExporterConnections: cmd.MaxExporterConnections,
LogLevel: cmd.LogLevelNoFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
2 changes: 2 additions & 0 deletions admin/commands/management/add_proxysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type AddProxySQLCommand struct {
TLSSkipVerify bool `help:"Skip TLS certificate verification"`
DisableCollectors []string `help:"Comma-separated list of collector names to exclude from exporter"`
ExposeExporter bool `name:"expose-exporter" help:"Optionally expose the address of the exporter publicly on 0.0.0.0"`
Timeout string `help:"Connection timeout to use for exporter (e.g. 1s, 500ms)"`

AddCommonFlags
flags.MetricsModeFlags
Expand Down Expand Up @@ -152,6 +153,7 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) {
MetricsMode: cmd.MetricsModeFlags.MetricsMode.EnumValue(),
DisableCollectors: commands.ParseDisableCollectors(cmd.DisableCollectors),
LogLevel: cmd.LogLevelFatalFlags.LogLevel.EnumValue(),
Timeout: cmd.Timeout,
},
},
Context: commands.Ctx,
Expand Down
Loading
Loading