-
Notifications
You must be signed in to change notification settings - Fork 361
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
ratelimit support prometheus #2729
Conversation
Signed-off-by: zirain <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2729 +/- ##
==========================================
+ Coverage 63.41% 63.53% +0.11%
==========================================
Files 123 123
Lines 20092 20169 +77
==========================================
+ Hits 12741 12814 +73
- Misses 6531 6533 +2
- Partials 820 822 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: zirain <[email protected]>
/retest |
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.
LGTM thanks for adding this enhancement !
Signed-off-by: zirain <[email protected]>
|
||
type RateLimitMetricsPrometheusProvider struct { | ||
// Disable the Prometheus endpoint. | ||
Disable bool `json:"disable,omitempty"` |
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.
Does this need to be there level of nesting? Can it be simplified?
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.
keep same as others
Right now, envoy-gateway controller and proxy support metric in prometheus, this patch will make ratelimit as same as the other components.