defaults

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package defaults contains the default values for configuration options

Index

Constants

View Source
const (
	APITokenKey        = ""
	APITokenKeyFile    = ""
	APITokenApp        = release.NAME
	APIURL             = "https://api.circonus.com/v2/"
	APIDebug           = false
	APICAFile          = ""
	CheckBundleCID     = ""
	CheckCreate        = true
	CheckBrokerCID     = "/broker/35" // circonus public httptrap broker
	CheckBrokerCAFile  = ""
	CheckMetricFilters = ""
	CheckTags          = ""
	CheckTitle         = ""
	TraceSubmits       = ""
	// hidden circonus settings for development and debugging
	DryRun        = false
	StreamMetrics = false
	// these hidden settings are mainly for debugging
	// the features default to ON and can be toggled OFF
	NoBase64   = false
	Base64Tags = true
	NoGZIP     = false
	UseGZIP    = true

	Debug     = false
	LogLevel  = "info"
	LogPretty = false

	K8SName                   = ""
	K8SInterval               = "1m"
	K8SAPIURL                 = "https://kubernetes"
	K8SAPICAFile              = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
	K8SBearerToken            = ""
	K8SBearerTokenFile        = "/var/run/secrets/kubernetes.io/serviceaccount/token" //nolint:gosec
	K8SEnableEvents           = false
	K8SEnableKubeStateMetrics = false
	K8SEnableMetricsServer    = false
	K8SEnableNodes            = true
	K8SNodeSelector           = "" // blank=all
	K8SIncludePods            = true
	K8SPodLabelKey            = "" // blank=all
	K8SPodLabelVal            = "" // blank=all
	K8SIncludeContainers      = false
)

Variables

View Source
var (
	// BasePath is the "base" directory
	//
	// expected installation structure:
	// base        (e.g. /opt/circonus/k8s-agent)
	//   /etc      (e.g. /opt/circonus/k8s-agent/etc)
	//   /sbin     (e.g. /opt/circonus/k8s-agent/sbin)
	BasePath = ""

	// EtcPath returns the default etc directory within base directory
	EtcPath = ""

	// ConfigFile defines the default configuration file name
	ConfigFile = ""

	// CheckTarget defaults to return from os.Hostname()
	CheckTarget = ""

	// K8SNodePoolSize defaults to number of available cpus for concurrent collection of metrics
	K8SNodePoolSize = runtime.NumCPU()
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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