Merge pull request #1423 from influxdata/debug-chunk-metrics

feat: Add debug to update_chunk_state metrics
pull/24376/head
kodiakhq[bot] 2021-05-05 15:48:10 +00:00 committed by GitHub
commit c3c80f53ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -356,6 +356,12 @@ impl DbMetrics {
prev_state_size: Option<(&'static str, usize)>,
next_state_size: Option<(&'static str, usize)>,
) {
debug!(
?prev_state_size,
?next_state_size,
"updating chunk state metrics"
);
// Reduce bytes tracked metric for previous state
if let Some((state, size)) = prev_state_size {
let labels = vec![metrics::KeyValue::new("state", state)];