constants

package
v0.0.0-...-a7b1af8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsGroup               = "metrics"
	MetricsVersion             = "v1"
	DefaultNamespace           = "default"
	DefaultInfluxDBServiceName = "influxdb"
	DefaultInfluxDBAPIPort     = 8086
)
View Source
const (
	EnvLogLevel                 = "MM_LOG_LEVEL"
	EnvKubeConfig               = "MM_KUBE_CONFIG"
	EnvMetricsServicesNamespace = "MM_METRICS_SERVICES_NAMESPACE"
	EnvInfluxDBServiceNamespace = "MM_INFLUXDB_SERVICE_NAMESPACE"
	EnvInfluxDBServiceName      = "MM_INFLUXDB_SERVICE_NAME"
	EnvInfluxDBDatabaseName     = "MM_INFLUXDB_DATABASE_NAME"
)
View Source
const (
	FlagLogLevel                     = "log-level"
	FlagKubeConfig                   = "kubeconfig"
	FlagMetricsServicesNamespace     = "metrics-services-namespace"
	FlagMetricsServicesLabelSelector = "metrics-services-label-selector"
	FlagInfluxDBServiceNamespace     = "influxdb-service-namespace"
	FlagInfluxDBServiceName          = "influxdb-service-name"
	FlagInfluxDBDatabaseName         = "influxdb-database-name"
)

Variables

This section is empty.

Functions

func Namespace

func Namespace(namespace string) string

Namespace returns a default namespace if the specified namespace is empty

Types

type CommandLineFlags

type CommandLineFlags struct {
	LogLevel                     string
	KubeConfig                   string
	MetricsServicesNamespace     string
	MetricsServicesLabelSelector map[string]string
	InfluxDBServiceNamespace     string
	InfluxDBServiceName          string
	InfluxDBDatabaseName         string
}

func NewCommandLineFlags

func NewCommandLineFlags() CommandLineFlags

Jump to

Keyboard shortcuts

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