Skip to content

Commit

Permalink
fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed May 21, 2024
1 parent e439fd0 commit e075981
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/common/base/src/runtime/metrics/process_collector.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/query/service/tests/it/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e075981

Please sign in to comment.