pub struct ClusterAgent {
pub enabled: bool,
pub url: Option<String>,
pub auth_token: Option<String>,
pub kubernetes_service_name: String,
}Expand description
Cluster Agent connection, shared by checks, DogStatsD, and OTLP.
The defaults named on each field are the Datadog schema defaults, which translation writes whenever the key is
absent. They are not the values Default produces: that is the zero value of each field, which for
kubernetes_service_name is the empty string and therefore not the schema default.
Fields§
§enabled: boolWhether the Cluster Agent connection is used.
Defaults to false. Turn it on in a deployment that runs a Cluster Agent; while it is off, nothing talks to it.
url: Option<String>URL of the Cluster Agent.
Defaults to unset, which leaves the endpoint to Kubernetes service discovery through
kubernetes_service_name. A blank value is normalized to unset. Set this in a deployment where the Cluster
Agent is not reachable through an injected Kubernetes service, and give an https endpoint: consumers use only
https.
auth_token: Option<String>Token used to authenticate to the Cluster Agent.
Defaults to unset, which leaves the Cluster Agent unreachable: there is no anonymous access. Set it wherever the Cluster Agent is enabled, to that Agent’s own token; a blank value is normalized to unset.
kubernetes_service_name: StringKubernetes service name used to discover the Cluster Agent.
Defaults to datadog-cluster-agent. The name is turned into the <NAME>_SERVICE_HOST and
<NAME>_SERVICE_PORT environment variables that Kubernetes injects into the pod. Set this when the Cluster
Agent runs under a different service name, or set it to the empty string to turn the lookup off, which leaves
url as the only way to reach the Cluster Agent.
Trait Implementations§
Source§impl Clone for ClusterAgent
impl Clone for ClusterAgent
Source§fn clone(&self) -> ClusterAgent
fn clone(&self) -> ClusterAgent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more