chore: http header with metrics (#3536)

* chore: bring write cost to output

* chore: add write cost to greptimev1result

* chore: add metrics to influxdb write resp header

* chore: add metrics to prom store

* chore: add metrics to otlp

* chore: add debug log

* fix: prom remote read with output

* fix: prom queries don't output metrics header

* chore: extract header value

* chore: refactor code

* chore: fix cr issue
This commit is contained in:
shuiyisong
2024-03-18 19:21:19 +08:00
committed by GitHub
parent 343525dab8
commit 3acd5bfad0
27 changed files with 376 additions and 236 deletions

View File

@@ -64,8 +64,8 @@ mod test {
.unwrap()
.is_ok());
let resp = instance.metrics(req, ctx.clone()).await.unwrap();
assert!(resp.partial_success.is_none());
let resp = instance.metrics(req, ctx.clone()).await;
assert!(resp.is_ok());
let mut output = instance
.do_query(