pub struct ExporterOptions {Show 19 fields
pub elasticsearch_url: Url,
pub elasticsearch_global_timeout: Duration,
pub elasticsearch_query_fields: CollectionLabels,
pub elasticsearch_query_filter_path: CollectionLabels,
pub elasticsearch_subsystem_timeouts: ExporterPollIntervals,
pub elasticsearch_path_parameters: CollectionLabels,
pub elasticsearch_certificate_path: Option<PathBuf>,
pub elasticsearch_certificate_validation: Option<CertificateValidationOptions>,
pub exporter_skip_labels: CollectionLabels,
pub exporter_include_labels: CollectionLabels,
pub exporter_skip_metrics: CollectionLabels,
pub exporter_skip_zero_metrics: bool,
pub exporter_metrics_enabled: ExporterMetricsSwitch,
pub exporter_metrics_namespace: String,
pub exporter_metadata_refresh_interval: Duration,
pub exporter_poll_default_interval: Duration,
pub exporter_poll_intervals: ExporterPollIntervals,
pub exporter_metrics_lifetime_interval: ExporterPollIntervals,
pub exporter_metrics_lifetime_default_interval: Duration,
}
Expand description
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_query_filter_path: CollectionLabels
Elasticsearch /stats filter_path. Comma-separated list or wildcard expressions of paths 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
elasticsearch_certificate_path: Option<PathBuf>
Exporter TLS client certificate
elasticsearch_certificate_validation: Option<CertificateValidationOptions>
Elasticsearch certificate validation
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_skip_zero_metrics: bool
Exporter skip zero metrics
exporter_metrics_enabled: ExporterMetricsSwitch
Exporter metrics switch either ON or OFF
exporter_metrics_namespace: String
Export metrics namespace
exporter_metadata_refresh_interval: Duration
Exporter metadata refresh interval
exporter_poll_default_interval: Duration
Metrics polling interval
exporter_poll_intervals: ExporterPollIntervals
Exporter skip zero metrics
exporter_metrics_lifetime_interval: ExporterPollIntervals
Exporter metrics lifetime interval
exporter_metrics_lifetime_default_interval: Duration
Metrics metrics lifetime
Implementations§
Source§impl ExporterOptions
impl ExporterOptions
Sourcepub fn is_metric_enabled(&self, subsystem: &'static str) -> bool
pub fn is_metric_enabled(&self, subsystem: &'static str) -> bool
Check if metric is enabled
Sourcepub fn query_fields_for_subsystem(&self, subsystem: &'static str) -> Vec<&str>
pub fn query_fields_for_subsystem(&self, subsystem: &'static str) -> Vec<&str>
?fields= parameters for subsystems
Sourcepub fn query_filter_path_for_subsystem(
&self,
subsystem: &'static str,
) -> Vec<&str>
pub fn query_filter_path_for_subsystem( &self, subsystem: &'static str, ) -> Vec<&str>
?filter_path= parameters for subsystems
Sourcepub fn path_parameters_for_subsystem(
&self,
subsystem: &'static str,
) -> Vec<&str>
pub fn path_parameters_for_subsystem( &self, subsystem: &'static str, ) -> Vec<&str>
Path parameters for subsystems
Sourcepub fn timeout_for_subsystem(&self, subsystem: &'static str) -> Duration
pub fn timeout_for_subsystem(&self, subsystem: &'static str) -> Duration
Get timeout for subsystem or fallback to global
Sourcepub fn cat_subsystems() -> &'static [&'static str]
pub fn cat_subsystems() -> &'static [&'static str]
/_cat subsystems
Sourcepub fn cluster_subsystems() -> &'static [&'static str]
pub fn cluster_subsystems() -> &'static [&'static str]
/_cluster subsystems
Sourcepub fn nodes_subsystems() -> &'static [&'static str]
pub fn nodes_subsystems() -> &'static [&'static str]
/_nodes subsystems
Sourcepub fn stats_subsystems() -> &'static [&'static str]
pub fn stats_subsystems() -> &'static [&'static str]
/_stats subsystems
Trait Implementations§
Source§impl Clone for ExporterOptions
impl Clone for ExporterOptions
Source§fn clone(&self) -> ExporterOptions
fn clone(&self) -> ExporterOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExporterOptions
impl Debug for ExporterOptions
Auto Trait Implementations§
impl Freeze for ExporterOptions
impl RefUnwindSafe for ExporterOptions
impl Send for ExporterOptions
impl Sync for ExporterOptions
impl Unpin for ExporterOptions
impl UnwindSafe for ExporterOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.