-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[bitnami/kubernetes-event-exporter] fix: kubernetes-event-exporter default config layout shows empty logs #35193
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
[bitnami/kubernetes-event-exporter] fix: kubernetes-event-exporter default config layout shows empty logs #35193
Conversation
Hi @paulfouquet, Thanks for taking the time on checking this issue and for creating a pull request. Your contribution is highly appreciated! I have been checking this and I have been able to reproduce your issue. However, I found out that instead of removing the parameter from the What do you think about updating the default value from $ cat custom.yaml
config:
kubeQPS: 60
kubeBurst: 60
logLevel: debug
logFormat: pretty
receivers:
- name: dump
file:
path: /dev/stdout
layout: null
route:
routes:
- match:
- receiver: dump
(...)
$ helm install -f ./custom.yaml (...)
$ k -n kubernetes-event-exporter logs -f k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp
{"level":"info","time":"2025-07-29T15:49:38Z","message":"Reading config file /data/config.yaml"}
2025-07-29T15:49:38Z DBG setting config.cacheSize=1024 (default)
2025-07-29T15:49:38Z INF Starting with config: exporter.Config{LogLevel:"debug", LogFormat:"pretty", ThrottlePeriod:0, MaxEventAgeSeconds:0, ClusterName:"", Namespace:"", LeaderElection:kube.LeaderElectionConfig{Enabled:false, LeaderElectionID:""}, Route:exporter.Route{Drop:[]expor
ter.Rule(nil), Match:[]exporter.Rule(nil), Routes:[]exporter.Route{exporter.Route{Drop:[]exporter.Rule(nil), Match:[]exporter.Rule{exporter.Rule{Labels:map[string]string(nil), Annotations:map[string]string(nil), Message:"", APIVersion:"", Kind:"", Namespace:"", Reason:"", Type:"",
MinCount:0, Component:"", Host:"", Receiver:"dump"}}, Routes:[]exporter.Route(nil)}}}, Receivers:[]sinks.ReceiverConfig{sinks.ReceiverConfig{Name:"dump", InMemory:(*sinks.InMemoryConfig)(nil), Webhook:(*sinks.WebhookConfig)(nil), File:(*sinks.FileConfig)(0x4000532e80), Syslog:(*sin
ks.SyslogConfig)(nil), Stdout:(*sinks.StdoutConfig)(nil), Elasticsearch:(*sinks.ElasticsearchConfig)(nil), Kinesis:(*sinks.KinesisConfig)(nil), Firehose:(*sinks.FirehoseConfig)(nil), OpenSearch:(*sinks.OpenSearchConfig)(nil), Opsgenie:(*sinks.OpsgenieConfig)(nil), Loki:(*sinks.Loki
Config)(nil), SQS:(*sinks.SQSConfig)(nil), SNS:(*sinks.SNSConfig)(nil), Slack:(*sinks.SlackConfig)(nil), Kafka:(*sinks.KafkaConfig)(nil), Pubsub:(*sinks.PubsubConfig)(nil), Opscenter:(*sinks.OpsCenterConfig)(nil), Teams:(*sinks.TeamsConfig)(nil), BigQuery:(*sinks.BigQueryConfig)(ni
l), EventBridge:(*sinks.EventBridgeConfig)(nil), Pipe:(*sinks.PipeConfig)(nil)}}, KubeQPS:60, KubeBurst:60, MetricsNamePrefix:"", OmitLookup:false, CacheSize:1024}
2025-07-29T15:49:38Z INF setting config.maxEventAgeSeconds=5 (default)
2025-07-29T15:49:38Z WRN metrics name prefix is empty, setting config.metricsNamePrefix='event_exporter_' is recommended
2025-07-29T15:49:38Z INF Registering sink name=dump type=*sinks.File
2025-07-29T15:49:38Z INF levelinfomsgListening onaddress[::]:2112
2025-07-29T15:49:38Z INF levelinfomsgTLS is disabled.http2falseaddress[::]:2112
2025-07-29T15:49:38Z INF leader election disabled
2025-07-29T15:49:38Z DBG Received event involvedObject=k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp msg="Successfully assigned kubernetes-event-exporter/k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp to orbstack" namespace=kubernetes-event-exporter reason=Scheduled
2025-07-29T15:49:38Z DBG Received event involvedObject=k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp msg="Container image \"docker.io/bitnami/kubernetes-event-exporter:1.7.0-debian-12-r43\" already present on machine" namespace=kubernetes-event-exporter reason=Pulled
2025-07-29T15:49:38Z DBG sending event to sink event="Successfully assigned kubernetes-event-exporter/k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp to orbstack" sink=dump
{"metadata":{"name":"k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp.1856c39b820097fe","namespace":"kubernetes-event-exporter","uid":"8984bc1a-a544-4fdf-ac5c-e80a62966d04","resourceVersion":"790323","creationTimestamp":"2025-07-29T15:49:37Z"},"reason":"Scheduled","message":"Successf
ully assigned kubernetes-event-exporter/k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp to orbstack","source":{},"firstTimestamp":null,"lastTimestamp":null,"type":"Normal","eventTime":"2025-07-29T15:49:37.575808Z","action":"Binding","reportingComponent":"default-scheduler","reportin
gInstance":"default-scheduler-orbstack","clusterName":"","involvedObject":{"kind":"Pod","namespace":"kubernetes-event-exporter","name":"k8s-kubernetes-event-exporter-575d9ccbfc-wrtjp","uid":"89daf650-5cce-4b17-9457-f5efe78dbfdf","apiVersion":"v1","resourceVersion":"790317","labels"
:{"app.kubernetes.io/component":"kubernetes-event-exporter","app.kubernetes.io/instance":"k8s","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/name":"kubernetes-event-exporter","app.kubernetes.io/version":"1.7.0","helm.sh/chart":"kubernetes-event-exporter-3.6.1","pod-templ
ate-hash":"575d9ccbfc"},"annotations":{"checksum/config":"be2fc8522a0354c3f8a301f16ef88d149cc4738c7b01cb5e566c99ac8df59102"},"ownerReferences":[{"apiVersion":"apps/v1","kind":"ReplicaSet","name":"k8s-kubernetes-event-exporter-575d9ccbfc","uid":"26201809-9679-471e-ba52-9a99c79607b7"
,"controller":true,"blockOwnerDeletion":true}],"deleted":false}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comment about setting a different default value instead of removing the parameter from the values.yaml
file.
@paulfouquet did you have any chance to check my proposal? |
Hi @gongomgra sorry for the delay, I'll make some changes today! |
bitnami#35692) Signed-off-by: Paul Fouquet <[email protected]>
…tnami#35693) Signed-off-by: Paul Fouquet <[email protected]>
…ay affinity (bitnami#35440) * fix(thanos): correct labelSelector with shard key for storegateway affinity Signed-off-by: fe80 <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: fe80 <[email protected]> Signed-off-by: Bitnami Bot <[email protected]> Co-authored-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/tomcat] Release 12.0.5 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
…itnami#35694) Signed-off-by: Paul Fouquet <[email protected]>
…ami#35697) * [bitnami/clickhouse-operator] Release 0.2.28 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * Update CRDs automatically Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
…5698) * [bitnami/mariadb-galera] Release 15.0.5 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/valkey] Release 3.0.27 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/argo-cd] Release 9.0.39 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/redis] Release 22.0.0 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
) * [bitnami/redis-cluster] Release 13.0.0 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/mariadb] Release 21.0.7 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/nginx] Release 21.1.9 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/aspnet-core] Release 7.0.21 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/deepspeed] Release 2.3.35 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/drupal] Release 22.0.16 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/pytorch] Release 4.3.24 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/pytorch] Release 4.3.24 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/pytorch] Release 4.3.24 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/pytorch] Release 4.3.24 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/wordpress] Release 25.0.12 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/wordpress] Release 25.0.12 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
) * [bitnami/grafana-mimir] Release 3.0.18 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/moodle] Release 27.0.12 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/moodle] Release 27.0.12 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/drupal] Release 22.0.17 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/drupal] Release 22.0.17 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/matomo] Release 10.0.10 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/matomo] Release 10.0.10 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/deepspeed] Release 2.3.36 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/deepspeed] Release 2.3.36 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/aspnet-core] Release 7.0.22 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/aspnet-core] Release 7.0.22 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/apache] Release 11.4.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/apache] Release 11.4.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/apache] Release 11.4.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/apache] Release 11.4.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/nginx] Release 21.1.10 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/nginx] Release 21.1.10 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/phpmyadmin] Release 19.0.9 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/phpmyadmin] Release 19.0.9 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/phpmyadmin] Release 19.0.9 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/wordpress] Release 25.0.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/wordpress] Release 25.0.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/drupal] Release 22.0.18 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/drupal] Release 22.0.18 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/apache] Release 11.4.14 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/apache] Release 11.4.14 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/moodle] Release 27.0.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/moodle] Release 27.0.13 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/matomo] Release 10.0.11 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/matomo] Release 10.0.11 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/phpmyadmin] Release 19.0.10 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
* [bitnami/wordpress] Release 25.0.14 updating components versions Signed-off-by: Bitnami Bot <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * [bitnami/wordpress] Release 25.0.14 updating components versions Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Bitnami Bot <[email protected]> Signed-off-by: Paul Fouquet <[email protected]>
Signed-off-by: Paul Fouquet <[email protected]>
Signed-off-by: Paul Fouquet <[email protected]>
fad8b64
to
0ecfd3f
Compare
Sorry I totally messed up this PR... I've created a new one #35983 |
Description of the change
Remove the default log
layout
in the event-exporterconfig.receivers.file
default values.Benefits
When using this Helm chart without overwriting
config.receivers.file
, the default loglayout
being empty ({}
):The config above will cause the logs to be empty.
The workaround to avoid this issue is to specify a
config.receivers.file
while using the helm chart. For example:{"receivers": [{"name": "dump", "file": {"path": "/dev/stdout"}}}
, which will generate the followingconfig.receiver
:This change avoid using the workaround above and let the user not overwriting the
config
to use the default one.Possible drawbacks
Applicable issues
Additional information
See #34880 for more information about the issue that this PR fixes.
Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm