I have a stacked bar chart visualization to show the number of errored instances with good instances. I currently have a group of queries following this format:
--GOOD–
sum(count_over_time({level=“INFO”} |~ “Status.*FINISHED”[$__interval])) - (sum(count_over_time({level=“INFO”} !=“OK//>” [$__interval]))
--BAD–
sum(count_over_time({level=“INFO”} !=“OK//>” [$__interval])
My interval is set to 1d and my range at the top is to show the last 7 days. I want this to include the current total from today. I know the 1d interval will not show today because of it not being past the end time.
I have messed around with using the $__range with a step of 1d but that is not providing the same data as the interval even though it is including today. Even then, I would want it to be split by day not by the last 24 hours.
I recently added a label for the day into the alloy configuration, but I cannot figure out how to utilize it to respond the way I want.
Is there any way I can manipulate the data to respond this way?
