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 DebugSubmissions = 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 = false K8SEnableKubeStateMetrics = false K8SEnableMetricsServer = false K8SEnableNodes = true K8SEnableNodeStats = true K8SEnableNodeMetrics = true K8SNodeSelector = "" // blank=all K8SIncludePods = true K8SPodLabelKey = "" // blank=all K8SPodLabelVal = "" // blank=all K8SIncludeContainers = false 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 = "" // 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.
Click to show internal directories.
Click to hide internal directories.