diff --git a/src/common/base/src/runtime/metrics/process_collector.rs b/src/common/base/src/runtime/metrics/process_collector.rs index 371f6eac8a956..3da0e2779950c 100644 --- a/src/common/base/src/runtime/metrics/process_collector.rs +++ b/src/common/base/src/runtime/metrics/process_collector.rs @@ -1,3 +1,17 @@ +// Copyright 2021 Datafuse Labs +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use prometheus_client::collector::Collector; use prometheus_client::encoding::EncodeMetric; use prometheus_client::metrics::counter::ConstCounter; diff --git a/src/query/service/tests/it/metrics.rs b/src/query/service/tests/it/metrics.rs index ea5533324509c..b4382b9b8968e 100644 --- a/src/query/service/tests/it/metrics.rs +++ b/src/query/service/tests/it/metrics.rs @@ -54,7 +54,6 @@ async fn test_metric_server() -> databend_common_exception::Result<()> { fn test_process_collector() { let stat = dump_process_stat().unwrap(); - assert!(stat.cpu_secs > 0.0); assert!(stat.max_fds > 0); assert!(stat.vsize > 0); assert!(stat.rss > 0);