Skip to content

Commit

Permalink
Delete unused fields in MongoDB metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Jun 13, 2024
1 parent 868c6bb commit 31acbda
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/sources/mongodb_metrics/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,6 @@ pub struct CommandServerStatusWiredTigerBlockManager {
pub struct CommandServerStatusWiredTigerCache {
#[serde(rename = "bytes currently in the cache")]
pub bytes_total: i64,
// Unused
// #[serde(rename = "bytes read into cache")]
// pub bytes_read_into: i64,
// #[serde(rename = "bytes written from cache")]
// pub bytes_written_from: i64,
#[serde(rename = "maximum bytes configured")]
pub max_bytes: f64,
#[serde(rename = "modified pages evicted")]
Expand Down Expand Up @@ -390,11 +385,6 @@ pub struct CommandServerStatusWiredTigerLog {
pub log_writes: i64,
#[serde(rename = "records processed by log scan")]
pub records_processed_log_scan: i64,
// Unused
// #[serde(rename = "total log buffer size")]
// pub total_buffer_size: i64,
// #[serde(rename = "total size of compressed records")]
// pub total_size_compressed: i64,
}

#[derive(Debug, Deserialize)]
Expand All @@ -415,9 +405,6 @@ pub struct CommandServerStatusWiredTigerTransaction {
pub checkpoint_max_ms: i64,
#[serde(rename = "transaction checkpoint min time (msecs)")]
pub checkpoint_min_ms: i64,
// Unused
// #[serde(rename = "transaction checkpoint most recent time (msecs)")]
// pub checkpoint_last_ms: i64,
#[serde(rename = "transaction checkpoint total time (msecs)")]
pub checkpoint_total_ms: i64,
#[serde(rename = "transactions committed")]
Expand Down

0 comments on commit 31acbda

Please sign in to comment.