Skip to content

Commit f0fe3a9

Browse files
committed
fix(sherlock): logged missing metrics
1 parent a46a587 commit f0fe3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sherlock/src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async fn query_prometheus(query: &str, time: DateTime<Local>) -> Result<f64, Bo
3232

3333
let response = CLIENT.query(v, Some(time.timestamp()), None).await?;
3434

35-
let value = response.as_instant().ok_or("query was empty")?.get(0).ok_or("metric not found")?.sample().value();
35+
let value = response.as_instant().ok_or("query was empty")?.get(0).ok_or(format!("metric {} not found", query))?.sample().value();
3636

3737
Ok(value)
3838
}

0 commit comments

Comments
 (0)