Documentation
¶
Overview ¶
Package config provides functionality for processing Telemetry Agent configuration parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string BuildDate string )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Telemetry TelemetryOpts `embed:"" prefix:"telemetry."` Platform PlatformOpts `embed:"" prefix:"platform."` Log LogOpts `embed:"" prefix:"log."` Version bool `help:"Show version and exit"` }
Config struct used for storing Telemetry Agent configuration parameters.
func InitConfig ¶
func InitConfig() Config
InitConfig parses Telemetry Agent configuration parameters. If some parameters are not defined - default values are used instead.
type LogOpts ¶
type LogOpts struct { Verbose bool `help:"enable verbose logging." default:"false"` DevMode bool `help:"enable development mode logging." default:"false"` }
LogOpts represents the options for configuring logging.
type PlatformOpts ¶
type PlatformOpts struct { ResendTimeout int `` /* 168-byte string literal not displayed */ URL string `` /* 159-byte string literal not displayed */ }
PlatformOpts represents the options for configuring communication with Percona Platform parameters.
type TelemetryOpts ¶
type TelemetryOpts struct { RootPath string `` /* 135-byte string literal not displayed */ PSMetricsPath string `kong:"-"` // For PSMDB (mongod) component PSMDBMongodMetricsPath string `kong:"-"` // For PSMDB (mongos) component PSMDBMongosMetricsPath string `kong:"-"` PXCMetricsPath string `kong:"-"` PGMetricsPath string `kong:"-"` HistoryPath string `kong:"-"` CheckInterval int `` /* 133-byte string literal not displayed */ HistoryKeepInterval int `` /* 156-byte string literal not displayed */ }
TelemetryOpts represents the options for configuring telemetry paths on local filesystem.
Click to show internal directories.
Click to hide internal directories.