Skip to content

Commit

Permalink
Gather read/write IO from vd* blockdevs
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Apr 30, 2024
1 parent 52d0fc1 commit 54a3f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interpreter/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub struct ClickHouseServerUptime {
pub _os: u64,
pub server: u64,
}
/// May does not take into account some block devices (due to filter by sd*/nvme*)
/// May does not take into account some block devices (due to filter by sd*/nvme*/vd*)
#[derive(Default)]
pub struct ClickHouseServerBlockDevices {
pub read_bytes: u64,
Expand Down Expand Up @@ -398,7 +398,7 @@ impl ClickHouse {
(
WITH
-- exclude MD/LVM
metric LIKE '%_sd%' OR metric LIKE '%_nvme%' AS is_disk,
metric LIKE '%_sd%' OR metric LIKE '%_nvme%' OR metric LIKE '%_vd%' AS is_disk,
metric LIKE '%vlan%' AS is_vlan
-- NOTE: cast should be after aggregation function since the type is Float64
SELECT
Expand Down

0 comments on commit 54a3f38

Please sign in to comment.