diff --git a/src/lib.rs b/src/lib.rs index 7444ffc..dbeaf6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,7 +105,7 @@ struct Inner { #[derive(Debug)] pub struct ExporterMetrics { /// Subsystem request histogram - subsystem_req_histogram: HistogramVec, + subsystem_request_histogram: HistogramVec, /// Cluster health status cluster_health_status: IntGaugeVec, } @@ -167,7 +167,7 @@ impl Exporter { let _ = const_labels.insert("cluster".into(), cluster_name.clone()); let metrics = ExporterMetrics { - subsystem_req_histogram: HistogramVec::new( + subsystem_request_histogram: HistogramVec::new( HistogramOpts::new( "subsystem_request_duration_seconds", "The Elasticsearch subsystem request latencies in seconds.", @@ -189,7 +189,7 @@ impl Exporter { }; default_registry().register(Box::new(metrics.cluster_health_status.clone()))?; - default_registry().register(Box::new(metrics.subsystem_req_histogram.clone()))?; + default_registry().register(Box::new(metrics.subsystem_request_histogram.clone()))?; Ok(Self(Arc::new(Inner { cluster_name, diff --git a/src/metadata/node_data.rs b/src/metadata/node_data.rs index 7817f64..a2af2df 100644 --- a/src/metadata/node_data.rs +++ b/src/metadata/node_data.rs @@ -61,7 +61,7 @@ pub(crate) async fn poll(exporter: Exporter) { let timer: prometheus::HistogramTimer = exporter .metrics() - .subsystem_req_histogram + .subsystem_request_histogram .with_label_values(&["/_nodes/os", exporter.cluster_name()]) .start_timer();