[Feature]: Adding flag filter for custom-analyzer
Author: naveenthangaraj03Created Feb 12, 2025Updated Aug 20, 2026
Labelsbugenhancementgood first issue
Checklist
- I've searched for similar issues and couldn't find anything matching
- I've discussed this feature request in the K8sGPT Slack and got positive feedback
Is this feature request related to a problem?
Yes
Problem Description
- While running
k8sgpt analyze --custom-analysis
- It will get errors from all the custom analyzer and also the active filters
- If we apply flag filter for custom analyzer name (FYI: Flag filter for custom analyzer is not supported officially, but it works) it will get all the custom analyzer errors(FYI: I have two custom analyzer).
- But I applied filter for one custom analyzer but it fetches for both resources
Solution Description
- Instead can we use flag filter to get the particular custom-analyzer error
k8sgpt analyze --filter=custom-analyzer-name --custom-analysis
Benefits
So it will reduce the latency because it will get only the particular resource error.
It will get only the particular resource data so the data consumption is less
Potential Drawbacks
No response
Additional Information
No response
Source: k8sgpt-ai/k8sgpt