Hi Morten,
First of all, you are right, I am now adding nav-users on copy.
I have read the documentation http://graphite.readthedocs.io/en/latest/render_api.html#from-until, but as I am not so expert, it is a bit hard to understand. But I am trying again...
In the meanwhile, could you please give me some more precise advice to write the correct code that will allow me to get the right graph ?
Here is the current graph URL that show only the last 24 hours stats (while I would like to get the stat of the last hour with automatic refresh) : /graphite/render?from=-1day&target=alias%28scaleToSeconds%28nonNegativeDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_net.ports.Gi1_0_1.ifInOctets%2C8%29%29%2C1%29%2C%22In%22%29&target=alias%28scaleToSeconds%28nonNegativeDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_net.ports.Gi1_0_1.ifOutOctets%2C8%29%29%2C1%29%2C%22Out%22%29&title=Traffic+on+swfrgp01.eu.barilla.net%3AGi1%2F0%2F1+%28Internet%29&height=250&width=0&template=nav&vtitle=bits%2Fs&until=now
Thanks. CĂ©dric.
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 13 gennaio 2017 07:13 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Subject: Re: Graph in Dashboard
On Thu, 12 Jan 2017 13:44:30 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
I have a question. I have added an activity graph in the dashboard (interface usage of a Cisco switch, in bits/s). That works great.
Now, I would like to set the graph to have a different scale : this is one-day scale, and I would like to set 1 or 2 hours (always with an automatic refresh).
Is that possible ? If yes, how can I proceed ?
Hi Cedric,
it would normally be possible, but due to a bug [1], it won't be possible again until the next bugfix release (unless you manually apply the bugfix patch from [2]).
The "normal" way of customizing your graph would be to alther the graph URL from the widget's edit panel. You'll want to look at the from/until arguments, as described in Graphite's own docs at [3].
In closing, I ask that you please post these kinds of questions on the nav-users mailing list in the future, so the information/discussion can be of benefit to everyone :-)
[1] https://bugs.launchpad.net/nav/+bug/1647664 [2] https://nav.uninett.no/hg/nav/rev/59196ae30fe7 [3] http://graphite.readthedocs.io/en/latest/render_api.html#from-until
-- mvh Morten Brekkevold UNINETT