-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ratelimitmetrics inside pkg/exporter
Tetragon exposes a counter of events rate limited on export. Let's move this metric inside the exporter package, so that it's clear what it measures. Considering possible future development: * If there are multiple exporters, rate limits from all of them will be included in the same counter (no change) * If there are rate limiters not belonging to any exporter, their drops won't be counted (this changes here - before all drops by all rate limiters would be included in the metric) Mixing together drops from different exporters/rate limiters might be misleading, but not exposing some drops at all is problematic too. If this becomes an issue, a better solution would be probably exposing a counter per rate limiter (e.g. reuse existing RateLimiter.dropped field), labeled with a rate limiter identifier. But for now it seems a premature optimization. Signed-off-by: Anna Kapuscinska <anna@isovalent.com>
- Loading branch information
Showing
5 changed files
with
14 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters