Documentation
¶
Overview ¶
Package args contains the argument list, defined as a struct, along with a method that validates passed-in args
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentList ¶
type ArgumentList struct {
sdkArgs.DefaultArgumentList
Username string `default:"" help:"The username for the PostgreSQL database"`
Password string `default:"" help:"The password for the specified username"`
Hostname string `default:"localhost" help:"The PostgreSQL hostname to connect to"`
Database string `default:"postgres" help:"The PostgreSQL database name to connect to"`
Port string `default:"5432" help:"The port to connect to the PostgreSQL database"`
CollectionList string `` /* 244-byte string literal not displayed */
EnableSSL bool `default:"false" help:"If true will use SSL encryption, false will not use encryption"`
TrustServerCertificate bool `` /* 141-byte string literal not displayed */
Pgbouncer bool `default:"false" help:"Collects metrics from PgBouncer instance. Assumes connection is through PgBouncer."`
SSLRootCertLocation string `default:"" help:"Absolute path to PEM encoded root certificate file"`
SSLCertLocation string `default:"" help:"Absolute path to PEM encoded client cert file"`
SSLKeyLocation string `default:"" help:"Absolute path to PEM encoded client key file"`
Timeout string `default:"10" help:"Maximum wait for connection, in seconds. Set 0 for no timeout"`
CustomMetricsQuery string `` /* 165-byte string literal not displayed */
CustomMetricsConfig string `default:"" help:"YAML configuration with one or more custom SQL queries to collect"`
CollectDbLockMetrics bool `` /* 155-byte string literal not displayed */
CollectBloatMetrics bool `default:"true" help:"Enable collecting bloat metrics which can be performance intensive"`
ShowVersion bool `default:"false" help:"Print build information and exit"`
}
ArgumentList struct that holds all PostgreSQL arguments
func (ArgumentList) Validate ¶
func (al ArgumentList) Validate() error
Validate validates PostgreSQl arguments
Click to show internal directories.
Click to hide internal directories.