[][src]Struct elasticsearch_exporter::Exporter

pub struct Exporter(_);

Elasticsearch exporter

Implementations

impl Exporter[src]

pub fn client(&self) -> &Elasticsearch[src]

Elasticsearch client instance

pub fn cluster_name(&self) -> &str[src]

Elasticsearch cluster name

pub fn options(&self) -> &ExporterOptions[src]

Exporter options

pub fn const_labels(&self) -> HashMap<String, String>[src]

Exporter options

pub fn metadata(&self) -> &RwLock<HashMap<String, NodeData>>[src]

Node ID to node name map for adding extra metadata labels {"U-WnGaTpRxucgde3miiDWw": "m1-supernode.example.com"}

pub async fn new(options: ExporterOptions) -> Result<Self, Box<dyn Error>>[src]

Spawn exporter

pub async fn spawn(self)[src]

Spawn collectors

Trait Implementations

impl Clone for Exporter[src]

impl Debug for Exporter[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.