pub struct PrometheusConfig {
pub prometheus_listen_addr: String,
pub max_open_connections: u64,
pub namespace: String,
}
Fields§
§prometheus_listen_addr: String
Address to listen for Prometheus collector(s) connections
max_open_connections: u64
Maximum number of simultaneous connections. If you want to accept a larger number than the default, make sure you increase your OS limits. 0 - unlimited.
namespace: String
Instrumentation namespace
Implementations§
Source§impl PrometheusConfig
impl PrometheusConfig
pub fn prometheus_listen_addr(self, prometheus_listen_addr: &str) -> Self
pub fn max_open_connections(self, max_open_connections: u64) -> Self
pub fn namespace(self, namespace: &str) -> Self
Trait Implementations§
Source§impl Clone for PrometheusConfig
impl Clone for PrometheusConfig
Source§fn clone(&self) -> PrometheusConfig
fn clone(&self) -> PrometheusConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrometheusConfig
impl Debug for PrometheusConfig
Auto Trait Implementations§
impl Freeze for PrometheusConfig
impl RefUnwindSafe for PrometheusConfig
impl Send for PrometheusConfig
impl Sync for PrometheusConfig
impl Unpin for PrometheusConfig
impl UnwindSafe for PrometheusConfig
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