config

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMetricsCheck

func SetupMetricsCheck(cmd *cobra.Command, args []string)

Types

type MetricsWatcherConfiguration

type MetricsWatcherConfiguration struct {
	LogSettings             logger.Settings
	PrometheusConfiguration prometheus.Configuration
	Queries                 []prometheus.Query `default_size:"1"`
}

func ReadConfig

func ReadConfig(configFilePath string) (*MetricsWatcherConfiguration, error)

ReadConfig reads the configuration file from the given string. If the string is empty, it will return a config with default values.

Jump to

Keyboard shortcuts

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