diff --git a/src/sinks/prometheus/remote_write.rs b/src/sinks/prometheus/remote_write.rs index 25d86b3b82c17..80631287d363e 100644 --- a/src/sinks/prometheus/remote_write.rs +++ b/src/sinks/prometheus/remote_write.rs @@ -95,6 +95,14 @@ pub struct RemoteWriteConfig { #[configurable(derived)] pub auth: Option, + + #[configurable(derived)] + #[serde( + default, + deserialize_with = "crate::serde::bool_or_struct", + skip_serializing_if = "crate::serde::skip_serializing_if_default" + )] + pub acknowledgements: AcknowledgementsConfig, } inventory::submit! { @@ -176,7 +184,7 @@ impl SinkConfig for RemoteWriteConfig { } fn acknowledgements(&self) -> Option<&AcknowledgementsConfig> { - None + Some(&self.acknowledgements) } }