feat: Add more logs to shed light on the curious incident with missing metrics in the nighttime

pull/24376/head
Marko Mikulicic 2021-05-06 14:42:48 +02:00
parent 10f89a3e8d
commit 578dc0db25
No known key found for this signature in database
GPG Key ID: D02A41F91A687DB3
1 changed files with 3 additions and 0 deletions

View File

@ -362,6 +362,7 @@ impl DbMetrics {
let labels = vec![metrics::KeyValue::new("state", state)];
self.catalog_chunk_bytes
.sub_with_labels(size as f64, labels.as_slice());
debug!(?size, ?labels, "called catalog_chunk_bytes.sub_with_labels");
}
// Increase next metric for next chunk state
@ -369,9 +370,11 @@ impl DbMetrics {
let labels = vec![metrics::KeyValue::new("state", state)];
self.catalog_chunk_bytes
.add_with_labels(size as f64, labels.as_slice());
debug!(size, ?labels, "called catalog_chunk_bytes.add_with_labels");
// New chunk in new state
self.catalog_chunks.inc_with_labels(labels.as_slice());
debug!(?labels, "called catalog_chunks.inc_with_labels");
}
}
}