config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CollectorEndpoint           string
	CollectorEndpointCACertPath string
	AlertEndpoint               string
	AlertEndpointCACertPath     string
	Port                        string
	TLSEnabled                  bool
	CertPath                    string
	KeyPath                     string
	LogFileEnabled              bool
	LogFilePath                 string
	CLIMonitoringInterval       int
	SQLiteDBLoggingEnabled      bool
	SQLiteDBPath                string
	MySQLUserName               string
	MySQLHost                   string
	MySQLDatabaseName           string
	CPUThreshold                int
	MemoryThreshold             int
	DiskUsageThreshold          int
	MonitorIntervalSeconds      int
	DisksToIgnore               string
	WarnAfterSecs               int
	ServerId                    string
	Services                    []ServiceToMonitor
}

Config struct with config

func GetConfig

func GetConfig(path string) Config

GetConfig return config struct

type ServiceToMonitor

type ServiceToMonitor struct {
	Name        string
	ServiceName string
}

ServiceToMonitor holds service info from config.json

Jump to

Keyboard shortcuts

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