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

[Question]: Is it possible to scrape the Result resources through a log aggregator #1348

Open
3 of 4 tasks
abindg opened this issue Dec 13, 2024 · 6 comments
Open
3 of 4 tasks

Comments

@abindg
Copy link

abindg commented Dec 13, 2024

Checklist

  • I've searched for similar issues and couldn't find anything matching
  • I've included steps to reproduce the behavior

Affected Components

  • K8sGPT (CLI)
  • K8sGPT Operator

K8sGPT Version

v0.3.48

Kubernetes Version

1.30.6

Host OS and its Version

No response

Steps to reproduce

  1. When an SRE person sees the result counts on Grafana , instead of logging to k8s and running kubectl get result -n -o json | jq . , is it possible for him to access the solution part of the results in grafana itself through something like loki , which scrapes the results dynamically

Expected behaviour

The SRE should not be required to run through hundreds of results in kubernetes , but see them on grafana

Actual behaviour

The SRE person when he sees the result count in grafana , needs to login and check resuts manually

Additional Information

No response

@AlexsJones
Copy link
Member

@abindg there is a service monitor that exists already for prometheus. This will do exactly what you want.

I will take an action to document this better.

@abindg
Copy link
Author

abindg commented Dec 17, 2024

The default dashboard, shows the count of reaults and the type of results using the service monitor. The contents of the results are not scrapped

@AlexsJones
Copy link
Member

That's quite true, and somewhat intentional, we could emit the results content back into the operator on read, that would let you filter for it in Loki. How does something like that sound?

@abindg
Copy link
Author

abindg commented Dec 19, 2024 via email

@AlexsJones
Copy link
Member

That sounds good. As long as I can get the contents of results on Grafana, and the SRE doesnot need to go through running kubectl desctibe on the results - then we have a strong use case Yahoo Mail: Search, Organize, Conquer On Wed, Dec 18, 2024 at 1:56 AM, Alex @.> wrote: That's quite true, and somewhat intentional, we could emit the results content back into the operator on read, that would let you filter for it in Loki. How does something like that sound? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

Okay, I believe my proposal would work. I'd like it to be opt-in functionality though as in the first version of this I think we'd need to be careful about what is exposed through the operator logs.

@AlexsJones
Copy link
Member

how does this fit your need? k8sgpt-ai/k8sgpt-operator#589

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

When branches are created from issues, their pull requests are automatically linked.

2 participants