ControlIpc

Struct ControlIpc 

Source
pub struct ControlIpc {
    pub auth_token_file_path: PathBuf,
    pub ipc_cert_file_path: PathBuf,
    pub cmd_port: u16,
    pub vsock_addr: String,
    pub grpc_max_message_size: usize,
    pub remote_agent_string_interner_size_bytes: NonZeroUsize,
}
Expand description

IPC and remote-agent connection parameters, read once at bootstrap before runtime authority exists and again from the authoritative configuration once it does.

Witnessed fields get their effective defaults during translation. The Saluki-only interner budget uses its Rust Default.

Fields§

§auth_token_file_path: PathBuf

Path to the Agent authentication token file.

ADP sends the file contents as a bearer token to the Core Agent. Override this path only when the Core Agent uses a non-default token path, and configure both processes to use the same token.

Defaults to an empty path, which selects the platform-specific Agent authentication token path.

§ipc_cert_file_path: PathBuf

Path to the shared Agent IPC mTLS identity file.

The PEM file contains the certificate and private key used by ADP and its IPC peers. Every peer must use the same identity because authentication requires an exact certificate match. Override this path only when the Core Agent uses a non-default identity path.

Defaults to an empty path, which selects ipc_cert.pem beside the resolved authentication token path.

§cmd_port: u16

TCP port the command API listens on.

Defaults to 5001.

§vsock_addr: String

vsock address used for guest/host IPC.

Defaults to empty, which reaches the Core Agent over TCP on localhost at cmd_port.

§grpc_max_message_size: usize

Maximum gRPC message size, in bytes, accepted over the remote-agent IPC channel.

Defaults to 134217728 (128 MiB).

§remote_agent_string_interner_size_bytes: NonZeroUsize

Byte budget for the remote-agent workload metadata string interner. (not in Datadog Agent config schema)

The workload provider interns entity IDs and tags into a single allocation of this size, taken at startup and charged in full against the memory bounds ceiling. A workload whose tag cardinality outgrows the budget starts failing to intern, which drops the affected tags and entity updates and increments the collectors’ intern_failed_total counters.

Defaults to 524288 (512 KiB). An explicit 0 fails the configuration load. Change it when tuning ADP itself; operators are not expected to.

Trait Implementations§

Source§

impl Clone for ControlIpc

Source§

fn clone(&self) -> ControlIpc

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ControlIpc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ControlIpc

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ControlIpc

Source§

fn eq(&self, other: &ControlIpc) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ControlIpc

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ControlIpc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.