diff --git a/lading/src/blackhole/splunk_hec.rs b/lading/src/blackhole/splunk_hec.rs index abee12179..a9b9ce707 100644 --- a/lading/src/blackhole/splunk_hec.rs +++ b/lading/src/blackhole/splunk_hec.rs @@ -96,11 +96,12 @@ async fn srv( let (parts, body) = req.into_parts(); let bytes = body.collect().await?.to_bytes(); + counter!("bytes_received", &metric_labels).increment(bytes.len() as u64); match crate::codec::decode(parts.headers.get(hyper::header::CONTENT_ENCODING), bytes) { Err(response) => Ok(response), Ok(body) => { - counter!("bytes_received", &*labels).increment(body.len() as u64); + counter!("decoded_bytes_received", &metric_labels).increment(body.len() as u64); let mut okay = Response::default(); *okay.status_mut() = StatusCode::OK;