Documentation ¶
Overview ¶
Package config defines the configuration and configuration helper methods for agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFile ¶
LoadConfigFile will attempt to load json|toml|yaml configuration files. `base` is the full path and base name of the configuration file to load. `target` is an interface in to which the data will be loaded. Checks for '<base>.json', '<base>.toml', and '<base>.yaml'.
Types ¶
type API ¶
type API struct { App string `json:"app" toml:"app" yaml:"app"` CAFile string `mapstructure:"ca_file" json:"ca_file" toml:"ca_file" yaml:"ca_file"` Key string `json:"key" toml:"key" yaml:"key"` URL string `json:"url" toml:"url" yaml:"url"` Debug bool `json:"debug" toml:"debug" yaml:"debug"` }
API defines the circonus api configuration options
type Check ¶
type Check struct { BrokerCID string `mapstructure:"broker_cid" json:"broker_cid" toml:"broker_cid" yaml:"broker_cid"` BrokerCAFile string `mapstructure:"broker_ca_file" json:"broker_ca_file" toml:"broker_ca_file" yaml:"broker_ca_file"` BundleCID string `mapstructure:"bundle_cid" json:"bundle_cid" toml:"bundle_cid" yaml:"bundle_cid"` MetricFilters string `mapstructure:"metric_filters" json:"metric_filters" toml:"metric_filters" yaml:"metric_filters"` Tags string `json:"tags" toml:"tags" yaml:"tags"` Target string `mapstructure:"target" json:"target" toml:"target" yaml:"target"` Title string `json:"title" toml:"title" yaml:"title"` Create bool `mapstructure:"create" json:"create" toml:"create" yaml:"create" ` }
Check defines the circonus check configuration options
type Circonus ¶
type Circonus struct { CustomRulesFile string `mapstructure:"custom_rules_file" json:"custom_rules_file" toml:"custom_rules_file" yaml:"custom_rules_file"` TraceSubmits string `mapstructure:"trace_submits" json:"trace_submits" toml:"trace_submits" yaml:"trace_submits"` MetricFiltersFile string `mapstructure:"metric_filters_file" json:"metric_filters_file" toml:"metric_filters_file" yaml:"metric_filters_file"` DefaultAlertsFile string `mapstructure:"default_alerts_file" json:"default_alerts_file" toml:"default_alerts_file" yaml:"default_alerts_file"` CollectDeadline string `mapstructure:"collect_deadline" json:"collect_deadline" toml:"collect_deadline" yaml:"collect_deadline"` SubmitDeadline string `mapstructure:"submit_deadline" json:"submit_deadline" toml:"submit_deadline" yaml:"submit_deadline"` Check Check `json:"check" toml:"check" yaml:"check"` API API `json:"api" toml:"api" yaml:"api"` // hidden circonus settings for development and debugging Base64Tags bool `json:"-" toml:"-" yaml:"-"` DryRun bool `json:"-" toml:"-" yaml:"-"` UseGZIP bool `json:"-" toml:"-" yaml:"-"` LogAgentMetrics bool `json:"-" toml:"-" yaml:"-"` NodeCC bool `json:"-" toml:"-" yaml:"-"` }
Circonus defines the circonus specific configuration options
type Cluster ¶
type Cluster struct { PodLabelKey string `mapstructure:"pod_label_key" json:"pod_label_key" toml:"pod_label" yaml:"pod_label_key"` BearerTokenFile string `mapstructure:"bearer_token_file" json:"bearer_token_file" toml:"bearer_token_file" yaml:"bearer_token_file"` APITimelimit string `mapstructure:"api_timelimit" json:"api_timelimit" toml:"api_timelimit" yaml:"api_timelimit"` CAFile string `mapstructure:"api_ca_file" json:"api_ca_file" toml:"api_ca_file" yaml:"api_ca_file"` KSMMetricsPort string `mapstructure:"ksm_metrics_port" json:"ksm_metrics_port" toml:"ksm_metrics_port" yaml:"ksm_metrics_port"` KSMMetricsPortName string `mapstructure:"ksm_metrics_port_name" json:"ksm_metrics_port_name" toml:"ksm_metrics_port_name" yaml:"ksm_metrics_port_name"` KSMFieldSelectorQuery string `` /* 135-byte string literal not displayed */ URL string `mapstructure:"api_url" json:"api_url" toml:"api_url" yaml:"api_url"` Interval string `json:"interval" toml:"interval" yaml:"interval"` NodeSelector string `mapstructure:"node_selector" json:"node_selector" toml:"node_selector" yaml:"node_selector"` Name string `json:"name" toml:"name" yaml:"name"` PodLabelVal string `mapstructure:"pod_label_val" json:"pod_label_val" toml:"pod_label" yaml:"pod_label_val"` BearerToken string `mapstructure:"bearer_token" json:"bearer_token" toml:"bearer_token" yaml:"bearer_token"` DynamicCollectorFile string `mapstructure:"dynamic_collector_file" json:"dynamic_collector_file" yaml:"dynamic_collector_file"` // DEPRECATED KSMRequestMode string `mapstructure:"ksm_request_mode" json:"ksm_request_mode" toml:"ksm_request_mode" yaml:"ksm_request_mode"` // DEPRECATED KSMTelemetryPortName string `` /* 131-byte string literal not displayed */ NodeKubletVersion string `mapstructure:"node_kublet_version" json:"node_kublet_version" toml:"node_kublet_version" yaml:"node_kublet_version"` DNSMetricsPort int `mapstructure:"dns_metrics_port" json:"dns_metrics_port" toml:"dns_metrics_port" yaml:"dns_metrics_port"` NodePoolSize uint `mapstructure:"node_pool_size" json:"node_pool_size" toml:"node_pool_size" yaml:"node_pool_size"` IncludePods bool `mapstructure:"include_pod_metrics" json:"include_pod_metrics" toml:"include_pod_metrics" yaml:"include_pod_metrics"` EnableDNSMetrics bool `mapstructure:"enable_dns_metrics" json:"enable_dns_metrics" toml:"enable_dns_metrics" yaml:"enable_dns_metrics"` EnableNodeResourceMetrics bool `` /* 151-byte string literal not displayed */ EnableNodeProbeMetrics bool `` /* 139-byte string literal not displayed */ EnableNodeMetrics bool `mapstructure:"enable_node_metrics" json:"enable_node_metrics" toml:"enable_node_metrics" yaml:"enable_node_metrics"` EnableNodeStats bool `mapstructure:"enable_node_stats" json:"enable_node_stats" toml:"enable_node_stats" yaml:"enable_node_stats"` EnableNodes bool `mapstructure:"enable_nodes" json:"enable_nodes" toml:"enable_nodes" yaml:"enable_nodes"` IncludeContainers bool `` /* 139-byte string literal not displayed */ EnableAPIServer bool `mapstructure:"enable_api_server" json:"enable_api_server" toml:"enable_api_server" yaml:"enable_api_server"` EnableKubeStateMetrics bool `` /* 139-byte string literal not displayed */ EnableEvents bool `mapstructure:"enable_events" json:"enable_events" toml:"enable_events" yaml:"enable_events"` EnableCadvisorMetrics bool `` /* 131-byte string literal not displayed */ }
Cluster defines the kubernetes cluster configuration options
type Config ¶
type Config struct { Clusters []Cluster `json:"clusters" toml:"clusters" yaml:"clusters"` Log Log `json:"log" toml:"log" yaml:"log"` Circonus Circonus `json:"circonus" toml:"circonus" yaml:"circonus"` Kubernetes Cluster `json:"kubernetes" toml:"kubernetes" yaml:"kubernetes"` Debug bool `json:"debug" toml:"debug" yaml:"debug"` }
Config defines the running configuration options
Directories ¶
Path | Synopsis |
---|---|
Package defaults contains the default values for configuration options
|
Package defaults contains the default values for configuration options |
Package keys defines the configuration keys used to access viper
|
Package keys defines the configuration keys used to access viper |
Click to show internal directories.
Click to hide internal directories.