Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultFileName = "nri-kubernetes" DefaultFilePath = "/etc/newrelic-infra" DefaultTimeout = 10 * time.Second DefaultRetries = 3 DefaultAgentTimeout = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Verbose bool `mapstructure:"verbose"` LogLevel string `mapstructure:"logLevel"` ClusterName string `mapstructure:"clusterName"` KubeconfigPath string `mapstructure:"kubeconfigPath"` NodeIP string `mapstructure:"nodeIP"` NodeName string `mapstructure:"nodeName"` Interval time.Duration `mapstructure:"interval"` Sink struct { HTTP HTTPSink `mapstructure:"http"` } `mapstructure:"sink"` ControlPlane `mapstructure:"controlPlane"` Kubelet `mapstructure:"kubelet"` KSM `mapstructure:"ksm"` }
type ControlPlane ¶
type ControlPlane struct { Enabled bool `mapstructure:"enabled"` ETCD ControlPlaneComponent `mapstructure:"etcd"` APIServer ControlPlaneComponent `mapstructure:"apiServer"` ControllerManager ControlPlaneComponent `mapstructure:"controllerManager"` Scheduler ControlPlaneComponent `mapstructure:"scheduler"` Timeout time.Duration `mapstructure:"timeout"` Retries int `mapstructure:"retries"` }
type ControlPlaneComponent ¶
type ControlPlaneComponent struct { Enabled bool `mapstructure:"enabled"` StaticEndpoint *Endpoint `mapstructure:"staticEndpoint"` Autodiscover []AutodiscoverControlPlane `mapstructure:"autodiscover"` }
type KSM ¶
type KSM struct { Enabled bool `mapstructure:"enabled"` StaticURL string `mapstructure:"staticURL"` Scheme string `mapstructure:"scheme"` Port int `mapstructure:"port"` Selector string `mapstructure:"selector"` Namespace string `mapstructure:"namespace"` Distributed bool `mapstructure:"distributed"` Timeout time.Duration `mapstructure:"timeout"` Retries int `mapstructure:"retries"` Discovery struct { BackoffDelay time.Duration `mapstructure:"backoffDelay"` // Wait BackoffDelay between discovery attempts. Timeout time.Duration `mapstructure:"timeout"` // Give up discovery and fail if Timeout has passed since first attempt. } `mapstructure:"discovery"` }
Click to show internal directories.
Click to hide internal directories.