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
On Fri, 13 Jan 2017 08:38:56 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
First of all, you are right, I am now adding nav-users on copy.
Thank you :)
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
Just change "from=-1day" into "from=-1hours".
This is what I tried but it still show the last 24 hours, even if I have well clicked on "Save changes".
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 13 gennaio 2017 09:49 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 08:38:56 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
First of all, you are right, I am now adding nav-users on copy.
Thank you :)
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%28nonNegativ eDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_net.ports.Gi1_0_ 1.ifInOctets%2C8%29%29%2C1%29%2C%22In%22%29&target=alias%28scaleToSeco nds%28nonNegativeDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_ net.ports.Gi1_0_1.ifOutOctets%2C8%29%29%2C1%29%2C%22Out%22%29&title=Tr affic+on+swfrgp01.eu.barilla.net%3AGi1%2F0%2F1+%28Internet%29&height=2 50&width=0&template=nav&vtitle=bits%2Fs&until=now
Just change "from=-1day" into "from=-1hours".
-- Morten Brekkevold UNINETT
I have just figured out that there is a strange behaviour, let me try to explain.
From the dashboard web page, I have modified the URL putting "1hour" instead of "1day", and it does not change the result, from the dashboard it continues to show me 1 day stats (same result if I reload the web page or if I close and restart my web browser).
Instead, if I copy the URL of the last one hour graph stats in a new tab, I correctly get what I want. It looks like an issue related to the dashboard page.
An idea ?
Thank you :-)
Cédric.
-----Original Message----- From: Orzakiewicz Cedric Sent: venerdì 13 gennaio 2017 09:52 To: 'Morten Brekkevold' morten.brekkevold@uninett.no Cc: nav-users@uninett.no Subject: RE: Graph in Dashboard
This is what I tried but it still show the last 24 hours, even if I have well clicked on "Save changes".
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 13 gennaio 2017 09:49 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 08:38:56 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
First of all, you are right, I am now adding nav-users on copy.
Thank you :)
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%28nonNegativ eDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_net.ports.Gi1_0_ 1.ifInOctets%2C8%29%29%2C1%29%2C%22In%22%29&target=alias%28scaleToSeco nds%28nonNegativeDerivative%28scale%28nav.devices.swfrgp01_eu_barilla_ net.ports.Gi1_0_1.ifOutOctets%2C8%29%29%2C1%29%2C%22Out%22%29&title=Tr affic+on+swfrgp01.eu.barilla.net%3AGi1%2F0%2F1+%28Internet%29&height=2 50&width=0&template=nav&vtitle=bits%2Fs&until=now
Just change "from=-1day" into "from=-1hours".
-- Morten Brekkevold UNINETT
On Fri, 13 Jan 2017 09:16:38 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
Instead, if I copy the URL of the last one hour graph stats in a new tab, I correctly get what I want. It looks like an issue related to the dashboard page.
An idea ?
Yes, Cedric. Please read my original e-mail again. There is a bug in NAV 4.6.0, preventing you from doing this. There will be a fix in NAV 4.6.1. If you understand how, you can patch your existing NAV version using the patch I referred to in my original e-mail.
As wrote in my previous mails, I have already applied the patch. I have made other tests, and I think it is related to my browser Chrome. Because it seems to work great with Internet Explorer 11.
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 13 gennaio 2017 10:37 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 09:16:38 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
Instead, if I copy the URL of the last one hour graph stats in a new tab, I correctly get what I want. It looks like an issue related to the dashboard page.
An idea ?
Yes, Cedric. Please read my original e-mail again. There is a bug in NAV 4.6.0, preventing you from doing this. There will be a fix in NAV 4.6.1. If you understand how, you can patch your existing NAV version using the patch I referred to in my original e-mail.
-- Morten Brekkevold UNINETT
On Fri, 13 Jan 2017 09:39:07 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
As wrote in my previous mails, I have already applied the patch. I have made other tests, and I think it is related to my browser Chrome. Because it seems to work great with Internet Explorer 11.
You may need to clear your browser cache after applying the patch, or the browser could still be running the old Javascript code.
I have done this and it does not change anything. Any other idea ?
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 13 gennaio 2017 10:44 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 09:39:07 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
As wrote in my previous mails, I have already applied the patch. I have made other tests, and I think it is related to my browser Chrome. Because it seems to work great with Internet Explorer 11.
You may need to clear your browser cache after applying the patch, or the browser could still be running the old Javascript code.
-- Morten Brekkevold UNINETT
To be precise, at first logon now I get the right graph :
[cid:image001.jpg@01D26DAD.C1153CD0]
But at the first auto-refresh, I get this error :
[cid:image002.jpg@01D26DAD.C1153CD0]
-----Original Message----- From: Orzakiewicz Cedric Sent: venerdì 13 gennaio 2017 14:50 To: 'Morten Brekkevold' morten.brekkevold@uninett.no Cc: nav-users@uninett.no Subject: RE: Graph in Dashboard
I have done this and it does not change anything.
Any other idea ?
-----Original Message-----
From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no]
Sent: venerdì 13 gennaio 2017 10:44
To: Orzakiewicz Cedric <cedric.orzakiewicz@barilla.commailto:cedric.orzakiewicz@barilla.com>
Cc: nav-users@uninett.nomailto:nav-users@uninett.no
Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 09:39:07 +0000 Orzakiewicz Cedric <cedric.orzakiewicz@barilla.commailto:cedric.orzakiewicz@barilla.com> wrote:
As wrote in my previous mails, I have already applied the patch.
I have made other tests, and I think it is related to my browser Chrome.
Because it seems to work great with Internet Explorer 11.
You may need to clear your browser cache after applying the patch, or the browser could still be running the old Javascript code.
--
Morten Brekkevold
UNINETT
On Fri, 13 Jan 2017 14:00:20 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
To be precise, at first logon now I get the right graph :
[cid:image001.jpg@01D26DAD.C1153CD0]
Well, this does look like the patch actually *did* work.
But at the first auto-refresh, I get this error :
[cid:image002.jpg@01D26DAD.C1153CD0]
That, however, is not reproducible for us.
Can you open the Chrome web developer tools (typically F12)? It can assist in figuring out what the real problem is here. Either there will be an error in the Console, or you can see the resource that failed to load under the Network tab (you need to open the the web developer tools before the error occurs). What URL is being attempted retrieved, and what is the error message from the server?
Hi Morten,
Actually, I am now able to get the last hours stat graph in the dashboard. I have just an issue when the auto-refresh is running. The page does not refresh, instead I have got a message "Error loading image" at the position where the graph should be. Then, I have to log in again into NAV because I am log off.
Chrome developer tool give information but I don't know which one is useful. One that could be interesting is that one :
The request URL is : http://10.163.10.250/index/login/?origin=/graphite/render%3Ffrom%3D-1hour%26...
Thanks. Cédric.
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: lunedì 16 gennaio 2017 09:04 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Fri, 13 Jan 2017 14:00:20 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
To be precise, at first logon now I get the right graph :
[cid:image001.jpg@01D26DAD.C1153CD0]
Well, this does look like the patch actually *did* work.
But at the first auto-refresh, I get this error :
[cid:image002.jpg@01D26DAD.C1153CD0]
That, however, is not reproducible for us.
Can you open the Chrome web developer tools (typically F12)? It can assist in figuring out what the real problem is here. Either there will be an error in the Console, or you can see the resource that failed to load under the Network tab (you need to open the the web developer tools before the error occurs). What URL is being attempted retrieved, and what is the error message from the server?
-- Morten Brekkevold UNINETT
On Wed, 18 Jan 2017 14:57:08 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
I have just an issue when the auto-refresh is running. The page does not refresh, instead I have got a message "Error loading image" at the position where the graph should be. Then, I have to log in again into NAV because I am log off.
Chrome developer tool give information but I don't know which one is useful. One that could be interesting is that one :
The request URL is : http://10.163.10.250/index/login/?origin=/graphite/render ...
This is a URL to NAV's login page, so I am not surprised this would not be rendered as a graph ;-)
You might think your session expired in the background, causing the image load to fail due to being redirected to the login page, but since you have refreshing widgets on the dashboard, your session should never expire...
What is the URL actually configured into this graph widget?
Hi Morten,
I dont't know why but it works correctly now without changing anything. I am still trying to understand, so if I let you know as soon I find something.
Thanks again for your help.
Cédric.
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: venerdì 20 gennaio 2017 11:34 To: Orzakiewicz Cedric cedric.orzakiewicz@barilla.com Cc: nav-users@uninett.no Subject: Re: Graph in Dashboard
On Wed, 18 Jan 2017 14:57:08 +0000 Orzakiewicz Cedric cedric.orzakiewicz@barilla.com wrote:
I have just an issue when the auto-refresh is running. The page does not refresh, instead I have got a message "Error loading image" at the position where the graph should be. Then, I have to log in again into NAV because I am log off.
Chrome developer tool give information but I don't know which one is useful. One that could be interesting is that one :
The request URL is : http://10.163.10.250/index/login/?origin=/graphite/render ...
This is a URL to NAV's login page, so I am not surprised this would not be rendered as a graph ;-)
You might think your session expired in the background, causing the image load to fail due to being redirected to the login page, but since you have refreshing widgets on the dashboard, your session should never expire...
What is the URL actually configured into this graph widget?
-- Morten Brekkevold UNINETT