This is an automated email from the ASF dual-hosted git repository.

nju_yaho pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-ballista.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e07e02e Remove the prometheus-metrics from the default feature (#788)
4e07e02e is described below

commit 4e07e02ef1ef7350f4af7164ea8cc45e8d824986
Author: yahoNanJing <[email protected]>
AuthorDate: Tue May 30 10:02:20 2023 +0800

    Remove the prometheus-metrics from the default feature (#788)
    
    Co-authored-by: yangzhong <[email protected]>
---
 ballista/scheduler/Cargo.toml         | 2 +-
 ballista/scheduler/src/metrics/mod.rs | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ballista/scheduler/Cargo.toml b/ballista/scheduler/Cargo.toml
index ece67440..8eeeda4d 100644
--- a/ballista/scheduler/Cargo.toml
+++ b/ballista/scheduler/Cargo.toml
@@ -34,7 +34,7 @@ name = "ballista-scheduler"
 path = "src/bin/main.rs"
 
 [features]
-default = ["etcd", "sled", "prometheus-metrics", "flight-sql"]
+default = ["etcd", "sled", "flight-sql"]
 etcd = ["etcd-client"]
 flight-sql = []
 prometheus-metrics = ["prometheus", "once_cell"]
diff --git a/ballista/scheduler/src/metrics/mod.rs 
b/ballista/scheduler/src/metrics/mod.rs
index 0b54ebbd..306c8c4a 100644
--- a/ballista/scheduler/src/metrics/mod.rs
+++ b/ballista/scheduler/src/metrics/mod.rs
@@ -18,6 +18,7 @@
 #[cfg(feature = "prometheus")]
 pub mod prometheus;
 
+#[cfg(feature = "prometheus")]
 use crate::metrics::prometheus::PrometheusMetricsCollector;
 use ballista_core::error::Result;
 use std::sync::Arc;

Reply via email to