defaults

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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          = ""
	CheckTarget        = "" // defaults to cluster name
	DefaultStreamtags  = ""
	MetricFiltersFile  = "/ck8sa/metric-filters.json" // assumes running in a pod, ConfigMap mounted volume
	DefaultAlertsFile  = "/ck8sa/default-alerts.json" // assumes running in a pod, ConfigMap mounted volume
	CustomRulesFile    = "/ck8sa/custom-rules.json"   // assumes running in a pod, ConfigMap mounted volume
	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
	DebugSubmissions = false
	NodeCC           = false

	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           = true                                                  // dashboard
	K8SEnableKubeStateMetrics = true                                                  // dashobard
	K8SKSMRequestMode         = "direct"                                              // 'direct' or 'proxy' modes supported
	K8SKSMMetricsPortName     = "http-metrics"                                        // default from 'standard' service deployment, https://github.com/kubernetes/kube-state-metrics/blob/master/examples/standard/service.yaml#L11
	K8SKSMTelemetryPortName   = "telemetry"                                           // default from 'standard' service deployment, https://github.com/kubernetes/kube-state-metrics/blob/master/examples/standard/service.yaml#L11
	K8SKSMFieldSelectorQuery  = "metadata.name=kube-state-metrics"                    // default from 'standard' service deployment, https://github.com/kubernetes/kube-state-metrics/blob/master/examples/standard/service.yaml#L19
	K8SEnableAPIServer        = true                                                  // dashboard
	K8SEnableMetricsServer    = false                                                 // deprecated
	K8SEnableNodes            = true                                                  // dashboard
	K8SEnableNodeStats        = true                                                  // dashboard
	K8SEnableNodeMetrics      = true                                                  // dashboard
	K8SEnableCadvisorMetrics  = false                                                 // not needed by dashboard and is deprecated by k8s
	K8SEnableKubeDNSMetrics   = true                                                  // dashboard
	K8SKubeDNSMetricsPort     = "10054"                                               // ONLY used if the kube-dns service does not have scrape and port annotations (e.g. GKE)
	K8SNodeSelector           = ""                                                    // blank=all
	K8SIncludePods            = true                                                  // dashboard
	K8SPodLabelKey            = ""                                                    // blank=all
	K8SPodLabelVal            = ""                                                    // blank=all
	K8SIncludeContainers      = false                                                 // not needed by dashboard
	K8SAPITimelimit           = "10s"
)

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 = ""

	// 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