Struct elasticsearch_exporter::Exporter
source · pub struct Exporter(/* private fields */);
Expand description
Elasticsearch exporter
Implementations§
source§impl Exporter
impl Exporter
sourcepub fn client(&self) -> &Elasticsearch
pub fn client(&self) -> &Elasticsearch
Elasticsearch client instance
sourcepub fn cluster_name(&self) -> &str
pub fn cluster_name(&self) -> &str
Elasticsearch cluster name
sourcepub fn options(&self) -> &ExporterOptions
pub fn options(&self) -> &ExporterOptions
Exporter options
sourcepub fn const_labels(&self) -> HashMap<String, String>
pub fn const_labels(&self) -> HashMap<String, String>
Exporter options
sourcepub fn nodes_metadata(&self) -> &RwLock<HashMap<String, NodeData>>
pub fn nodes_metadata(&self) -> &RwLock<HashMap<String, NodeData>>
Node ID to node name map for adding extra metadata labels {“U-WnGaTpRxucgde3miiDWw”: “m1-supernode.example.com”}
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Exporter
impl Send for Exporter
impl Sync for Exporter
impl Unpin for Exporter
impl !UnwindSafe for Exporter
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