--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ef74c945-19d4-4909-a7cd-54ec72017529%40googlegroups.com.
You can use the increase() query function to evaluate the increase of your counter over a given time frame (increase(node_network_receive_bytes[24h])), however as you're looking to see the increase from a specific time this doesn't really solve your problem.
I think you may be better off re-evaluating why you're trying to do this. Could you explain your use case?It's normally better to take the rate of increase of a counter to get the per hour increase etc.
On 12 October 2017 at 09:49, <robu...@gmail.com> wrote:
Anybody???
On Wednesday, October 11, 2017 at 1:08:47 PM UTC+2, robu...@gmail.com wrote:Hi,new to prometheus I struggle to figure outhow do I querry for the sum of a counter value SINCE a given time, such as "today 00:00"let's take the counter "node_network_receive_bytes" from node-exporter as an example here:node_network_receive_bytes{instance="mybox", device="eth0"}gives me the total amount of bytes received on "eth0" since instance "mybox" started.But we want graphs that show the total amount of bytes received SINCE LAST MIDNIGHT,meaning each day at 00:00 our graphs should start with value 0 again and going up only until 23:59:59any hint is appreciated!TIA
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ef74c945-19d4-4909-a7cd-54ec72017529%40googlegroups.com.
Are you using Grafana?
It supports showing graphs of "today".
Nicholas
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/85c25557-0a47-42b4-9849-813471dcfb7f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/85c25557-0a47-42b4-9849-813471dcfb7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAKA4%2B6qy%3DySORC%3D%3DeHEqHNiZfj7MB-%3D1dpDLdYatn1rgp_TDFQ%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
thnx Conortrue, "increase" doesn't help as you see.Use case here is "the boss" who want's nice graphs over the usage of our printers.How many pages, when, on which printer.
(node_network_receive_bytes was only an example to make the question more common)Since in this special case total accuracy on the offset time wouldn't be important (since nobody uses the printers between 00:00 and 01:00)I would be happy with a simple "... offset hour()"even better though would be an "... offset (hour()*60+minute())m"value_now - value offset (hour()*60+minute())mwould be the amount since last 00:00puzzling that nobody seems to need a "value since a given point in time" ...
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/85c25557-0a47-42b4-9849-813471dcfb7f%40googlegroups.com.