Sliding window in graph views
![](https://secure.gravatar.com/avatar/8f1abbebfccca89beabcc58bda7887c1.jpg?s=120&d=mm&r=g)
Good day, all
When viewing graphs, I often find that we want to keep a specific graph open for a long period - days or weeks even, and preferably to view the most recent information.
A minor issue is that when clicking on the pre-provided thumbnails for the "6 Hours", "24 Hours", et al. graphs, it opens a specific time window. If the page is refreshed after a while, it shows old data rather than current data. A sliding window works already - just that probably very few people know about the "feature".
Two minor changes are required to have the thumbnail links refer to the sliding window: Exclude the to= parameter - it appears this defaults to now() Set the from= parameter to an offset
The following is an example of a 6-hour sliding window: https://<observium_host>/graphs/device=<devid>/type=device_processor/from=-14400
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
We actually don't do this on purpose :)
It always used to irritate me that if I was looking at something and walked away for 6 hours, when I came back the time periods had changed.
I also don't like sending people URLs with relative timestamps in and having them look at a different graph. :D
adam.
------ Original Message ------ From: "Brendan Hide" brendan@swiftspirit.co.za To: observium@observium.org Sent: 12/19/2014 2:47:52 AM Subject: [Observium] Sliding window in graph views
Good day, all
When viewing graphs, I often find that we want to keep a specific graph open for a long period - days or weeks even, and preferably to view the most recent information.
A minor issue is that when clicking on the pre-provided thumbnails for the "6 Hours", "24 Hours", et al. graphs, it opens a specific time window. If the page is refreshed after a while, it shows old data rather than current data. A sliding window works already - just that probably very few people know about the "feature".
Two minor changes are required to have the thumbnail links refer to the sliding window: Exclude the to= parameter - it appears this defaults to now() Set the from= parameter to an offset
The following is an example of a 6-hour sliding window: https://<observium_host>/graphs/device=<devid>/type=device_processor/from=-14400
-- __________ Brendan Hide http://swiftspirit.co.za/ http://www.webafrica.co.za/?AFF1E97
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
I got somewhat used to clicking twice.. but it's a bit annoying. I do understand the rationale behind not doing it though. But it is probably weird to most people, especially if they didn't expect it to not show new data.
On 12/19/2014 09:49 AM, Adam Armstrong wrote:
We actually don't do this on purpose :)
It always used to irritate me that if I was looking at something and walked away for 6 hours, when I came back the time periods had changed.
I also don't like sending people URLs with relative timestamps in and having them look at a different graph. :D
adam.
------ Original Message ------ From: "Brendan Hide" brendan@swiftspirit.co.za To: observium@observium.org Sent: 12/19/2014 2:47:52 AM Subject: [Observium] Sliding window in graph views
Good day, all
When viewing graphs, I often find that we want to keep a specific graph open for a long period - days or weeks even, and preferably to view the most recent information.
A minor issue is that when clicking on the pre-provided thumbnails for the "6 Hours", "24 Hours", et al. graphs, it opens a specific time window. If the page is refreshed after a while, it shows old data rather than current data. A sliding window works already - just that probably very few people know about the "feature".
Two minor changes are required to have the thumbnail links refer to the sliding window: Exclude the to= parameter - it appears this defaults to now() Set the from= parameter to an offset
The following is an example of a 6-hour sliding window: https://<observium_host>/graphs/device=<devid>/type=device_processor/from=-14400
-- __________ Brendan Hide http://swiftspirit.co.za/ http://www.webafrica.co.za/?AFF1E97
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/8f1abbebfccca89beabcc58bda7887c1.jpg?s=120&d=mm&r=g)
Thank you, guys.
Certainly, Adam, the rationale makes sense for the other way as well. A minor annoyance, certainly - but annoying enough that I felt the need to mention it. ;)
If there is interest, there are probably a couple of ways to tackle it. I could be wrong - but I figure the simplest is an option on the page itself: Options [ Show Legend | Graph Previous | Graph Trend | Graph Maximum | *Sliding Window* ]
I leave it to you. Thanks. :)
On 2014/12/19 13:37, Tom Laermans wrote:
I got somewhat used to clicking twice.. but it's a bit annoying. I do understand the rationale behind not doing it though. But it is probably weird to most people, especially if they didn't expect it to not show new data.
On 12/19/2014 09:49 AM, Adam Armstrong wrote:
We actually don't do this on purpose :)
It always used to irritate me that if I was looking at something and walked away for 6 hours, when I came back the time periods had changed.
I also don't like sending people URLs with relative timestamps in and having them look at a different graph. :D
adam.
------ Original Message ------ From: "Brendan Hide" brendan@swiftspirit.co.za To: observium@observium.org Sent: 12/19/2014 2:47:52 AM Subject: [Observium] Sliding window in graph views
Good day, all
When viewing graphs, I often find that we want to keep a specific graph open for a long period - days or weeks even, and preferably to view the most recent information.
A minor issue is that when clicking on the pre-provided thumbnails for the "6 Hours", "24 Hours", et al. graphs, it opens a specific time window. If the page is refreshed after a while, it shows old data rather than current data. A sliding window works already - just that probably very few people know about the "feature".
Two minor changes are required to have the thumbnail links refer to the sliding window: Exclude the to= parameter - it appears this defaults to now() Set the from= parameter to an offset
The following is an example of a 6-hour sliding window: https://<observium_host>/graphs/device=<devid>/type=device_processor/from=-14400
-- __________ Brendan Hide http://swiftspirit.co.za/ http://www.webafrica.co.za/?AFF1E97
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
Brendan Hide
-
Tom Laermans