[][src]Struct elasticsearch_exporter::ExporterOptions

pub struct ExporterOptions {
    pub elasticsearch_url: Url,
    pub elasticsearch_global_timeout: Duration,
    pub elasticsearch_query_fields: CollectionLabels,
    pub elasticsearch_subsystem_timeouts: ExporterPollIntervals,
    pub elasticsearch_path_parameters: CollectionLabels,
    pub exporter_skip_labels: CollectionLabels,
    pub exporter_include_labels: CollectionLabels,
    pub exporter_skip_metrics: CollectionLabels,
    pub exporter_poll_default_interval: Duration,
    pub exporter_poll_intervals: ExporterPollIntervals,
    pub exporter_skip_zero_metrics: bool,
    pub exporter_metrics_enabled: ExporterMetricsSwitch,
    pub exporter_metadata_refresh_interval: Duration,
}

Elasticsearch exporter options

Fields

elasticsearch_url: Url

Elasticsearch cluster url

elasticsearch_global_timeout: Duration

Global HTTP request timeout

elasticsearch_query_fields: CollectionLabels

Elasticsearch /_nodes/stats fields comma-separated list or wildcard expressions of fields to include in the statistics.

elasticsearch_subsystem_timeouts: ExporterPollIntervals

Exporter timeout for subsystems, in case subsystem timeout is not defined default global timeout is used

elasticsearch_path_parameters: CollectionLabels

Elasticsearch path parameters https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html#cluster-nodes-info-api-path-params

exporter_skip_labels: CollectionLabels

Exporter labels to skip

exporter_include_labels: CollectionLabels

Exporter labels to include, caution this may increase metric cardinality

exporter_skip_metrics: CollectionLabels

Exporter labels to skip completely such as segment "id"

exporter_poll_default_interval: Duration

Metrics polling interval

exporter_poll_intervals: ExporterPollIntervals

Exporter skip zero metrics

exporter_skip_zero_metrics: bool

Exporter skip zero metrics

exporter_metrics_enabled: ExporterMetricsSwitch

Exporter metrics switch either ON or OFF

exporter_metadata_refresh_interval: Duration

Exporter metadata refresh interval

Implementations

impl ExporterOptions[src]

pub fn is_metric_enabled(&self, subsystem: &'static str) -> bool[src]

Check if metric is enabled

pub fn query_fields_for_subsystem(&self, subsystem: &'static str) -> Vec<&str>[src]

?fields= parameters for subsystems

pub fn path_parameters_for_subsystem(
    &self,
    subsystem: &'static str
) -> Vec<&str>
[src]

Path parameters for subsystems

pub fn timeout_for_subsystem(&self, subsystem: &'static str) -> Duration[src]

Get timeout for subsystem or fallback to global

pub fn cat_subsystems() -> [&'static str; 16][src]

/_cat subsystems

pub fn cluster_subsystems() -> [&'static str; 1][src]

/_cluster subsystems

pub fn nodes_subsystems() -> [&'static str; 3][src]

/_nodes subsystems

Trait Implementations

impl Clone for ExporterOptions[src]

impl Debug for ExporterOptions[src]

impl Display for ExporterOptions[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.