Graphite not displaying any data when given Absolute Time

Asked by gyre007

I am dealing with very weird issue. Graphite is not displaying ANY data when trying to render graphs by supplying date in absolute form whilst when trying to graph the data by supplying relative date it graphs the data perfectly fine.

Ie following DOES work: - renders graph from past three days

https://graphite.common.staging/render?target=aliasByNode(stats.*.*.staging.load_avg.one,1,2,3)&height=500&width=1200&from=-3days&until=now&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load

This DOES NOT display any data but renders EMPTY axis: - SHOULD be rendering graphs from past 2 days ie between 5th and 6th january

https://graphite.common.staging/render?target=aliasByNode(stats.*.*.staging.load_avg.one,1,2,3)&height=500&width=1200&from=20120105&until=20120106&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load

My data retention is very simple its set to:

[stats]
priority = 100
pattern = ^stats\..*
retentions = 10s:12h,60s:7d,10m:5y

[default]
priority = 0
pattern = ^.*
retentions = 60s:7d,5m:28d,10m:5y

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
gyre007
Solved:
Last query:
Last reply:
Revision history for this message
gyre007 (milosgajdos83) said :
#1

I forgot to mention that I'm using the following carbon version

carbon-0.9.10-py2.7.egg-info

Revision history for this message
gyre007 (milosgajdos83) said :
#2

Following render URL renders some crazy raster with few plots - this is a request to render the data from 5AM yesterday until now

https://graphite.common.staging/render?target=stats.*.*.staging.load_avg.one&height=500&width=1200&from=05:00_20120105&until=now&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load

This render URL displays the data without any problems though

https://graphite.common.staging/render?target=stats.*.*.staging.load_avg.one&height=500&width=1200&from=05:00&until=now&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load

So I think it's safe to assume that AS SOON as you supply the DATE information, you're pretty much screwed :-( Whilst just the TIME info works just fine.

Revision history for this message
rowan (rowanu) said :
#3

Hey gyre007, just to confirm: you're seeing the problem when you use
the "HH:MM_YYYYMMDD" format for the 'from' value? Have you tried (and
does it work) just using the "YYYYMMDD" (ie. withouth "HH:MM_") format?

Looking in the code (webapp/graphite/render/attime.py) it seems like it
might not be handling that case (only dates). I'll have a closer look,
but let me know if the other format works for you.

On Sun, Jan 06, 2013 at 03:25 PM, gyre007 <email address hidden> wrote:

> from: gyre007 <email address hidden>
> date: Sun, Jan 06 08:25 PM +00:00 2013
> to: <email address hidden>
> reply-to: <email address hidden>
> subject: Re: [Graphite-dev] [Question #218462]: Graphite not displaying any data when given Absolute Time
>
> Question #218462 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/218462
>
> gyre007 gave more information on the question:
> Following render URL renders some crazy raster with few plots - this is
> a request to render the data from 5AM yesterday until now
>
> https://graphite.common.staging/render?target=stats.*.*.staging.load_avg.one&height=500&width=1200&from=05:00_20120105&until=now&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load
>
> This render URL displays the data without any problems though
>
> https://graphite.common.staging/render?target=stats.*.*.staging.load_avg.one&height=500&width=1200&from=05:00&until=now&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load
>
> So I think it's safe to assume that AS SOON as you supply the DATE
> information, you're pretty much screwed :-( Whilst just the TIME info
> works just fine.
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp

Rowan

Revision history for this message
gyre007 (milosgajdos83) said :
#4

Actually I just made a complete imbecile here out of myself...in my URLs I was referring to the year 2012 when I SHOULD'VE been referring to the year 2013....we only set up this new server few months ago and started gathering data from scratch - ie with empty whisper hence there was no data from Jan 2012..
OMG...I'm sorry guys! Thanks for all the brilliant work on this awesome SW!

Btw this works just fine: -> note the change in they YYYY field to 2013 :)

https://graphite.common.staging/render?target=stats.*.*.staging.load_avg.one&height=500&width=1200&from=12:00_20130104&until=16:00_20130104&title=load_avg&lineWidth=2&fontBold=true&vtitle=Load