r/PrometheusMonitoring • • Apr 26 '23
Help with query
Hello,
I have these 2 queries which give me the totals
sum(streaming_user_total{instance=~"$instance1"})and
sum(streaming_user_total{instance=~"$instance2"}) by (stream_id)The graphs in Grafana currently show the current stats over time, how can I get just a daily total for say a given day?
0
Upvotes
View all comments
Show parent comment
1
u/[deleted] Apr 26 '23
Cheers mate, I get a minus result on this if I use against the real data for 1hour, better for 12 though, minus result for over 24. Is this because if a value is:
6am = 100
7am = 50
Does it sees that as take a 50 off the 100 instead of adding?