config

package
v0.0.0-...-8e0fcc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL