pyr / cyanite

cyanite stores your metrics
http://cyanite.io
Other
446 stars 79 forks source link

Cyanite does not return absolute time range when it out of first resolution #281

Open avneradania opened 7 years ago

avneradania commented 7 years ago

When zooming graph in Grafana, from day 29 and later, there are no data points returned and see an empty graph. Relative time "Last X days/hours" working fine. Absolute time inside range of first resolution, which in our case is 1m:4w, working fine. When trying to get data from absolute time later than last 4 weeks, we get no data points and seeing empty graph. Are you familiar with such behavior?

cyanite.yaml:

engine:
 rules: 
  cyanite.*: ['10s:1d', '1m:4w', '1h:1y']
  default: ['1m:4w', '1h:1y']

Examples: Working POST /render(older 4 weeks): target=AIO.DIAG.diag2.cpu.cpu.idle&from=1503888311&until=1504007603&format=json&maxDataPoints=640

Non working POST /render(later than 4 weeks): target=AIO.DIAG.diag2.cpu.cpu.idle&from=1501626994&until=1501686700&format=json&maxDataPoints=640

avneradania commented 7 years ago

Is there anyone with any assumption regarding the above? It's working as expected with Graphite, but not with Cyanite.

ifesdjeen commented 7 years ago

It has to work, you are absolutely right here.

Unfortunately, I have a lot of things going on at work at the moment, and was contributing to cyanite only during my free time, so I can't really help quickly. Sorry about that.

avneradania commented 6 years ago

Hi @pyr, is there any chance this one will be checked?

ifesdjeen commented 6 years ago

@avneradania if you could help me to reproduce it, I can fix it

avneradania commented 6 years ago

Sure, how would you like to do it?

ifesdjeen commented 6 years ago

@avneradania I assume you're using grafana not in a proxy mode or something similar, just describe your setup, if I have more questions I'll ask how more

avneradania commented 6 years ago

Our setup works as follows: Grafana uses Graphite data soutce, proxy mode with the address of Graphite-api, which configured with Cyanite port. So, all seems to work when trying to get graph with a range till last 28 days(retrntion is 1m:4w, 1h:1y). When trying to generate graph with a range older than 28 days, nothing is shown.

ifesdjeen commented 6 years ago

Just wondering, why do you need graphite-api in this case?.. you could just use it directly...

avneradania commented 6 years ago

Nit sure I understood your meaning... Im not familiar with a direct data source for Cyanite in Grafana, but through Graphite data source.

ifesdjeen commented 6 years ago

Cyanite exposes 100% compatible Grafana API, just try it in Proxy mode

avneradania commented 6 years ago

Thanks for the advice. Though, issue happens both with Graphite-API and Cyanite directly.

avneradania commented 6 years ago

@ifesdjeen, @pyr, have a chance to check this out?