config

package
v9.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(filepath string, object interface{}) error

Types

type Config

type Config struct {
	MetricsFrequency          int    `yaml:"metrics_frequency"`
	Host                      string `yaml:"host"`
	Password                  string `yaml:"password"`
	Username                  string `yaml:"username"`
	InstanceID                string `yaml:"instance_id"`
	Origin                    string `yaml:"origin"`
	SourceID                  string `yaml:"source_id"`
	EmitCPUMetrics            bool   `yaml:"emit_cpu_metrics"`
	EmitMysqlMetrics          bool   `yaml:"emit_mysql_metrics"`
	EmitLeaderFollowerMetrics bool   `yaml:"emit_leader_follower_metrics"`
	EmitGaleraMetrics         bool   `yaml:"emit_galera_metrics"`
	EmitDiskMetrics           bool   `yaml:"emit_disk_metrics"`
	EmitBrokerMetrics         bool   `yaml:"emit_broker_metrics"`
	HeartbeatDatabase         string `yaml:"heartbeat_database"`
	HeartbeatTable            string `yaml:"heartbeat_table"`
	LoggregatorCAPath         string `yaml:"loggregator_ca_path"`
	LoggregatorClientCertPath string `yaml:"loggregator_client_cert_path"`
	LoggregatorClientKeyPath  string `yaml:"loggregator_client_key_path"`
}

Jump to

Keyboard shortcuts

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