-
Notifications
You must be signed in to change notification settings - Fork 0
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
add k8s events logging to alloy #263
base: main
Are you sure you want to change the base?
Conversation
I still need to find a way to enable the operator to switch between alloy or grafana-agent for k8s events logging based on which logging agent is deployed. |
Still need to handle the usage of a new |
You're missing the toggle as well logging-operator/pkg/resource/logging-agents-toggle/observability_bundle_configmap.go Line 42 in ac4008c
|
Oh indeed ! My bad |
Created a separate PR for events-logger toggle : #270 |
I think I can't go further in terms of splitting this PR into smaller ones as now all files are intertwined between each other. |
1dd2cad
to
25c8cb4
Compare
Do not forget to test it when doing an upgrade to observability bundle 1.9.0 and when creating a new cluster with that version as well :) |
Testing this on
So the error is at the observability-bundle configmap creation. The weird thing is that it doesn't print an actual events-logger name, only : The
|
pkg/resource/events-logger-config/alloy/events-logger-config.alloy.yaml.template
Outdated
Show resolved
Hide resolved
pkg/resource/events-logger-config/grafana-agent/events-logger-config.grafanaagent.yaml.template
Outdated
Show resolved
Hide resolved
pkg/resource/events-logger-config/grafana-agent/events-logger-config.grafanaagent.yaml.template
Outdated
Show resolved
Hide resolved
pkg/resource/events-logger-config/alloy/events-logger.alloy.template
Outdated
Show resolved
Hide resolved
@QuantumEnigmaa you forgot to configure it here Line 179 in cf254e6
|
Let me know how the test goes :) |
|
Can you set grafana-agent as the default event agent and check that this still works? |
Expected tests
|
|
I think this is where is issue is in the templated config:
|
Yeah, it shouldn't be rendered as this |
What this PR does / why we need it
Towards giantswarm/roadmap#3750
Checklist