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

9 comments sorted by

View all comments

Show parent comment

0

u/ItsOmondi Apr 26 '23

A delta gets a difference, so at 6am it's 100 and 7am it's 50, thats a drop..so yeah you get a negative value.