pub struct PushGateway { /* private fields */ }Expand description
HTTP sink for pushing iperf metrics to Prometheus Pushgateway.
Implementations§
Source§impl PushGateway
impl PushGateway
Sourcepub fn new(config: PushGatewayConfig) -> Result<Self>
pub fn new(config: PushGatewayConfig) -> Result<Self>
Build a Pushgateway sink from validated configuration.
Sourcepub fn push_window(&self, metrics: &WindowMetrics) -> Result<()>
pub fn push_window(&self, metrics: &WindowMetrics) -> Result<()>
Push one aggregated window summary.
Auto Trait Implementations§
impl Freeze for PushGateway
impl !RefUnwindSafe for PushGateway
impl Send for PushGateway
impl Sync for PushGateway
impl Unpin for PushGateway
impl UnsafeUnpin for PushGateway
impl !UnwindSafe for PushGateway
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more