You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
One might have a huge cluster and want to focus on optimizing just a particular workload.
Prometheus queries while analysing all worklaods in a cluster/namespace might take too long otherwise.
Describe the solution you'd like
Introduce a new command line argument as kubectl has:
-l, --selector='':
Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching
objects must satisfy all of the specified label constraints.
Now I hit an issue when Prometheus is unable to give me the results and the request fails with 431. I don't understand the details krr, but would implementation of feature above help as well?
PrometheusApiClientException: HTTP Status Code 431 (b'431 Request Header Fields Too Large')
Now I hit an issue when Prometheus is unable to give me the results and the request fails with 431. I don't understand the details krr, but would implementation of feature above help as well?
PrometheusApiClientException: HTTP Status Code 431 (b'431 Request Header Fields Too Large')
Hey, sorry for long time waiting :)
It looks like your issue could be handled by #96
Can you check that?
If it does not, please provide logs after running with -v flag
Activity
dohnto-s1 commentedon Jun 5, 2023
Now I hit an issue when Prometheus is unable to give me the results and the request fails with 431. I don't understand the details
krr, but would implementation of feature above help as well?arikalon1 commentedon Jun 5, 2023
Thanks for reporting it @dohnto-s1
I think this issue is similar to #60
Does limiting
krrto a specific namespace usingkrr simple -n defaultcan be a workaround until we fix it?dohnto-s1 commentedon Jun 5, 2023
This unfortunately happens when running with
-n.arikalon1 commentedon Jun 5, 2023
Thanks for the update.
We'll try to fix it soon.
We're also open for PRs
LeaveMyYard commentedon Jul 5, 2023
Hey, sorry for long time waiting :)
It looks like your issue could be handled by #96
Can you check that?
If it does not, please provide logs after running with
-vflagLeaveMyYard commentedon Jul 5, 2023
And I really like your proposal for selector flag, we should 100% implement it
dohnto-s1 commentedon Jul 12, 2023
@LeaveMyYard Looks awesome, thanks!
EDIT: Let me test it first on some of my use-cases.
EDIT2: Works!