Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

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

Open
avneradania opened this issue Aug 27, 2017 · 12 comments

Comments

@avneradania
Copy link

avneradania commented Aug 27, 2017

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
Copy link
Author

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

@ifesdjeen
Copy link
Collaborator

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
Copy link
Author

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

@ifesdjeen
Copy link
Collaborator

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

@avneradania
Copy link
Author

Sure, how would you like to do it?

@ifesdjeen
Copy link
Collaborator

@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
Copy link
Author

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
Copy link
Collaborator

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

@avneradania
Copy link
Author

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

@ifesdjeen
Copy link
Collaborator

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

@avneradania
Copy link
Author

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

@avneradania
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants