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

Prometheus metrics period #339

Open
Najafov007 opened this issue Sep 23, 2024 · 3 comments
Open

Prometheus metrics period #339

Najafov007 opened this issue Sep 23, 2024 · 3 comments

Comments

@Najafov007
Copy link

Hi again! Wanted to ask a ques, as I've understood robusta krr shows only the last 14days of a pod resource requests and limits and gives a suggestion. Is there any way to change that number to let's say fewer days? Or it's as it is - 14 days? Thank you!)

@aantn
Copy link
Contributor

aantn commented Sep 23, 2024 via email

@Najafov007
Copy link
Author

Hi, try using --history-duration. You can see all available cli options by running krr simple --help

On Mon, Sep 23, 2024 at 8:04 AM Najafov007 @.> wrote: Hi again! Wanted to ask a ques, as I've understood robusta krr shows only the last 14days of a pod resource requests and limits and gives a suggestion. Is there any way to change that number to let's say fewer days? Or it's as it is - 14 days? Thank you!) — Reply to this email directly, view it on GitHub <#339>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYUB4U4QQOUV6ZD5FI3WDZX6OPJAVCNFSM6AAAAABOVIRWQ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DCNJYGI2TQMY . You are receiving this because you are subscribed to this thread.Message ID: @.>

Hello again! Thank you for your response, wanted to ask one more thing. Got it about history-duration, we need 7 days. Problem now is time of scratching the metrics... For example we give 7 days, is it scraping the data from prometehus for last ENTIRE 7 days? What I exactly mean, lets say our pods are actively working in between 8AM - 6PM, time before or after that interval pods are cooled down. We dont want robusta krr to take into consideration. We need it to watch only those hours and then give us a suggestion. You know why, it will be wrong from math side if we are considering not only actively working hours, and passive time. Thank you so much!!

@aantn
Copy link
Contributor

aantn commented Oct 2, 2024 via email

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

2 participants