Jose Infazon
03/06/2023, 11:57 PMhttp_server_requests_seconds_count{exception="None",method="PUT",outcome="SUCCESS",status="200",uri="/api/v1/payment-orders/{id}/cancel",} 12.0
http_server_requests_seconds_sum{exception="None",method="PUT",outcome="SUCCESS",status="200",uri="/api/v1/payment-orders/{id}/cancel",} 0.919633034
But I I try to run PromQL sum(rate(http_server_requests_seconds_count{uri=~"{{.uri}}"}[1m]))
I don't get any data.
I've instrumented other services the same way and I'm getting that metric in particular.
Also I'd like to mention that I'm getting traces from that serviceSrikanth Chekuri
03/07/2023, 1:49 AM[1m]
in the query. If they are collected at same or higher interval then you will not see any data.Jose Infazon
03/07/2023, 1:59 AMSrikanth Chekuri
03/07/2023, 2:18 AMuri
is non null value that returns the results.I’ve tried with even 1 dayI day in the
[1m]
here?Ankit Nayan
03/07/2023, 10:34 AMSrikanth Chekuri
03/07/2023, 11:29 AM[1m]
selection in the promQL. If the metrics are collected every 60s or higher, then promql won’t return data. It has to be something higher. You can verify this by running sum(rate(signoz_calls_total{}[1m]))
vs sum(rate(signoz_calls_total{}[2m]))
in testbed.Ankit Nayan
03/07/2023, 11:40 AM[1m]
to [2m]
in promql?