metric collection: move rrd_cache to new metric_collection module

No functional changes intended.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-10-15 10:46:26 +02:00 committed by Wolfgang Bumiller
parent b862c872e0
commit 045fc7750c
5 changed files with 7 additions and 8 deletions

View File

@ -8,7 +8,7 @@ use proxmox_schema::api;
use pbs_api_types::{NODE_SCHEMA, PRIV_SYS_AUDIT};
use crate::rrd_cache::extract_rrd_data;
use crate::server::metric_collection::rrd::extract_rrd_data;
pub fn create_value_from_rrd(
basedir: &str,

View File

@ -15,7 +15,7 @@ use pbs_api_types::{
use pbs_config::CachedUserInfo;
use pbs_datastore::DataStore;
use crate::rrd_cache::extract_rrd_data;
use crate::server::metric_collection::rrd::extract_rrd_data;
use crate::tools::statistics::linear_regression;
use crate::backup::can_access_any_namespace;

View File

@ -31,8 +31,6 @@ pub mod acme;
pub mod client_helpers;
pub mod rrd_cache;
pub mod traffic_control_cache;
/// Get the server's certificate info (from `proxy.pem`).

View File

@ -16,10 +16,11 @@ use proxmox_sys::{
linux::procfs::{Loadavg, ProcFsMemInfo, ProcFsNetDev, ProcFsStat},
};
use crate::{
rrd_cache::{initialize_rrd_cache, rrd_sync_journal, rrd_update_derive, rrd_update_gauge},
tools::disks::{zfs_dataset_stats, BlockDevStat, DiskManage},
};
use crate::tools::disks::{zfs_dataset_stats, BlockDevStat, DiskManage};
use rrd::{initialize_rrd_cache, rrd_sync_journal, rrd_update_derive, rrd_update_gauge};
pub mod rrd;
/// Initialize the metric collection subsystem.
///