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

Issue with fetching metrics - WARNING - Was not able to get history range for cluster #350

Closed
ashliakhov opened this issue Oct 24, 2024 · 2 comments

Comments

@ashliakhov
Copy link

Hey team, I'm executing krr simple --namespace dev --history_duration 48 against one of my clusters, but it returns this warning regarding history fetch failure

What am I doing wrong?

...
INFO     Victoria Metrics found                                                                                                                                                                                                                                                                loader.py:74
INFO     Victoria Metrics connected successfully for arn:aws:eks:eu-east-1:123456:cluster/dev-cluster cluster                                                                                                                                                                           loader.py:47
WARNING  Was not able to get history range for cluster arn:aws:eks:eu-east-1:123456:cluster/dev-cluster. This is not critical, will try continue.
...

In the end it returns recommendations successfully, but I guess they are not respecting historical metrics :(

Thanks!

@arikalon1
Copy link
Contributor

hi @ashliakhov

The error message might be misleading
KRR tries to run a query, to check if there's enough history in the cluster to run a scan (the minimum is 5 hours)
If this check fails, this warning is printed, and KRR continues as usual.

The recommendations you get should be valid

@aantn
Copy link
Contributor

aantn commented Oct 25, 2024

I've created a PR #351 to make the message more clear.

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

No branches or pull requests

3 participants