Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElasticSearch: fixed_interval problem with long intervals #54075

Closed
alimli opened this issue Aug 23, 2022 · 1 comment · Fixed by #54202
Closed

ElasticSearch: fixed_interval problem with long intervals #54075

alimli opened this issue Aug 23, 2022 · 1 comment · Fixed by #54202

Comments

@alimli
Copy link

alimli commented Aug 23, 2022

What happened:
ES returned an error "Elasticsearch error: [1:517] [date_histogram] failed to parse field [fixed_interval]"
Screen Shot 2022-08-22 at 18 03 49

What you expected to happen:
Query result is returned without errors.
Screen Shot 2022-08-22 at 18 03 30

How to reproduce it (as minimally and precisely as possible):
When setting a "Min Interval" value less than 365days, it is working as expected.However if you sent a longer duration to "Min Interval" (e.g. 365d), the Interval is automatically converted to years. Accordingly ES returns an error because units up to days are supported for fixed_interval as explained here.

Anything else we need to know?:

Environment:

  • Grafana version: 9.1.0
  • Data source type & version: ES 7.10+
  • OS Grafana is installed on: Ubuntu 20.04
  • User OS & Browser: MacOS & Firefox
  • Grafana plugins: CompareQueries plugin but looks unrelated
  • Others:
@gabor
Copy link
Contributor

gabor commented Aug 26, 2022

hi @alimli , this is fixed now, should be available in Grafana9.1.2 .

@gabor gabor removed their assignment Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants