Skip to content

Commit

Permalink
enhancement(prometheus_remote_write sink): Add acknowledgements suppo…
Browse files Browse the repository at this point in the history
…rt (#13755)

As far as I can tell, this sink actually has support present, but not enableable
with any configuration.
  • Loading branch information
bruceg authored Jul 29, 2022
1 parent ee4efa1 commit 10cfcc2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sinks/prometheus/remote_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ pub struct RemoteWriteConfig {

#[configurable(derived)]
pub auth: Option<Auth>,

#[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! {
Expand Down Expand Up @@ -176,7 +184,7 @@ impl SinkConfig for RemoteWriteConfig {
}

fn acknowledgements(&self) -> Option<&AcknowledgementsConfig> {
None
Some(&self.acknowledgements)
}
}

Expand Down

0 comments on commit 10cfcc2

Please sign in to comment.