Struct opentelemetry_prometheus::PrometheusExporter [−][src]
pub struct PrometheusExporter { /* fields omitted */ }
Expand description
An implementation of metrics::Exporter
that sends metrics to Prometheus.
This exporter supports Prometheus pulls, as such it does not implement the export.Exporter interface.
Implementations
pub fn new(
registry: Registry,
controller: PullController,
default_summary_quantiles: Vec<f64>,
default_histogram_boundaries: Vec<f64>,
host: String,
port: u16
) -> Result<Self, MetricsError>
👎 Deprecated since 0.9.0: Please use the ExporterBuilder to initialize a PrometheusExporter
pub fn new(
registry: Registry,
controller: PullController,
default_summary_quantiles: Vec<f64>,
default_histogram_boundaries: Vec<f64>,
host: String,
port: u16
) -> Result<Self, MetricsError>
👎 Deprecated since 0.9.0:
Please use the ExporterBuilder to initialize a PrometheusExporter
Create a new prometheus exporter
Get this exporter’s provider.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PrometheusExporter
impl Send for PrometheusExporter
impl Sync for PrometheusExporter
impl Unpin for PrometheusExporter
impl !UnwindSafe for PrometheusExporter
Blanket Implementations
Mutably borrows from an owned value. Read more