cyanite icon indicating copy to clipboard operation
cyanite copied to clipboard

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

Open avneradania opened this issue 8 years ago • 12 comments

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 avatar Aug 27 '17 14:08 avneradania

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

avneradania avatar Sep 07 '17 07:09 avneradania

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.

ifesdjeen avatar Sep 07 '17 08:09 ifesdjeen

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

avneradania avatar Oct 31 '17 13:10 avneradania

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

ifesdjeen avatar Nov 02 '17 15:11 ifesdjeen

Sure, how would you like to do it?

avneradania avatar Nov 02 '17 15:11 avneradania

@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

ifesdjeen avatar Nov 02 '17 16:11 ifesdjeen

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.

avneradania avatar Nov 02 '17 19:11 avneradania

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

ifesdjeen avatar Nov 06 '17 07:11 ifesdjeen

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

avneradania avatar Nov 06 '17 11:11 avneradania

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

ifesdjeen avatar Nov 07 '17 10:11 ifesdjeen

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

avneradania avatar Nov 07 '17 11:11 avneradania

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

avneradania avatar Dec 21 '17 09:12 avneradania