Hi all , Im looking for a way to turn the null/no data return to zero in logql. I
m trying to get the percent of the request just like
sum(count_over_time({app="xxx"}|="{"|json|route="POST /api/a" , status=~`200|400|401|403|429|404` [1m])) / sum(count_over_time({app="xxx"}|="{"|json|route="POST /api/a" [1m]))
But when there is no 200|400|401|403|429|404
of /api/a
the return of sum(count_over_time({app="xxx"}|="{"|json|route="POST /api/a" , status=~
200|400|401|403|429|404 [1m]))
is no data ,and i wanna turn it to zero. So the total result can be 0%