Struct opentelemetry_prometheus::ExporterBuilder [−][src]
pub struct ExporterBuilder { /* fields omitted */ }
Configuration for the prometheus exporter.
Implementations
impl ExporterBuilder
[src]
impl ExporterBuilder
[src]pub fn with_resource(self, resource: Resource) -> Self
[src]
pub fn with_resource(self, resource: Resource) -> Self
[src]Set the resource to be associated with all Meter
s for this exporter
pub fn with_cache_period(self, period: Duration) -> Self
[src]
pub fn with_cache_period(self, period: Duration) -> Self
[src]Set the period which a recently-computed result will be returned without gathering metric data again.
If the period is zero, caching of the result is disabled (default).
pub fn with_default_summary_quantiles(self, quantiles: Vec<f64>) -> Self
[src]
pub fn with_default_summary_quantiles(self, quantiles: Vec<f64>) -> Self
[src]Set the default summary quantiles to be used by exported prometheus histograms
pub fn with_default_histogram_boundaries(self, boundaries: Vec<f64>) -> Self
[src]
pub fn with_default_histogram_boundaries(self, boundaries: Vec<f64>) -> Self
[src]Set the default boundaries to be used by exported prometheus histograms
pub fn with_registry(self, registry: Registry) -> Self
[src]
pub fn with_registry(self, registry: Registry) -> Self
[src]Set the prometheus registry to be used by this exporter
pub fn try_init(self) -> Result<PrometheusExporter, MetricsError>
[src]
pub fn try_init(self) -> Result<PrometheusExporter, MetricsError>
[src]Sets up a complete export pipeline with the recommended setup, using the recommended selector and standard processor.
pub fn init(self) -> PrometheusExporter
[src]
pub fn init(self) -> PrometheusExporter
[src]Sets up a complete export pipeline with the recommended setup, using the recommended selector and standard processor.
Panics
This panics if the exporter cannot be registered in the prometheus registry.
Trait Implementations
impl Debug for ExporterBuilder
[src]
impl Debug for ExporterBuilder
[src]impl Default for ExporterBuilder
[src]
impl Default for ExporterBuilder
[src]fn default() -> ExporterBuilder
[src]
fn default() -> ExporterBuilder
[src]Returns the “default value” for a type. Read more