Skip to content

Commit

Permalink
chore: exclude events in full scrape
Browse files Browse the repository at this point in the history
We were processing the same events again and again due to having both a Watcher for events and full scrape
  • Loading branch information
yashmehrotra authored and moshloop committed Dec 4, 2024
1 parent 1e3f82e commit 9c46331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapers/kubernetes/ketall.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func updateOptions(ctx context.Context, opts *options.KetallOptions, config v1.K
opts.FieldSelector = config.FieldSelector
opts.UseCache = config.UseCache
opts.MaxInflight = config.MaxInflight
opts.Exclusions = append(config.Exclusions.List(), "componentstatuses")
opts.Exclusions = append(config.Exclusions.List(), "componentstatuses", "Event")
opts.Since = config.Since
if config.Kubeconfig != nil {
val, err := ctx.GetEnvValueFromCache(*config.Kubeconfig, ctx.GetNamespace())
Expand Down

0 comments on commit 9c46331

Please sign in to comment.