pub struct ObservabilityConfigBuilder { /* private fields */ }Expand description
Builder for ObservabilityConfig
Implementations§
Source§impl ObservabilityConfigBuilder
impl ObservabilityConfigBuilder
pub fn new() -> Self
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Enable or disable the observability stack
Sourcepub fn with_prometheus_port(self, port: Port) -> Self
pub fn with_prometheus_port(self, port: Port) -> Self
Set the host port for Prometheus
Sourcepub fn with_grafana_port(self, port: Port) -> Self
pub fn with_grafana_port(self, port: Port) -> Self
Set the host port for Grafana
Sourcepub fn with_prometheus_image(self, image: impl Into<String>) -> Self
pub fn with_prometheus_image(self, image: impl Into<String>) -> Self
Set a custom Prometheus Docker image
Sourcepub fn with_grafana_image(self, image: impl Into<String>) -> Self
pub fn with_grafana_image(self, image: impl Into<String>) -> Self
Set a custom Grafana Docker image
pub fn build(self) -> ObservabilityConfig
Trait Implementations§
Source§impl Default for ObservabilityConfigBuilder
impl Default for ObservabilityConfigBuilder
Source§fn default() -> ObservabilityConfigBuilder
fn default() -> ObservabilityConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObservabilityConfigBuilder
impl RefUnwindSafe for ObservabilityConfigBuilder
impl Send for ObservabilityConfigBuilder
impl Sync for ObservabilityConfigBuilder
impl Unpin for ObservabilityConfigBuilder
impl UnwindSafe for ObservabilityConfigBuilder
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