Skip to content
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

Merged
merged 6 commits into from
Mar 2, 2024
Merged

Conversation

zirain
Copy link
Contributor

@zirain zirain commented Feb 29, 2024

Right now, envoy-gateway controller and proxy support metric in prometheus, this patch will make ratelimit as same as the other components.

@zirain zirain requested a review from a team as a code owner February 29, 2024 02:23
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 96.34146% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 63.53%. Comparing base (8751461) to head (186e6d3).

Files Patch % Lines
...tructure/kubernetes/ratelimit/resource_provider.go 90.90% 2 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

Signed-off-by: zirain <[email protected]>
@zirain
Copy link
Contributor Author

zirain commented Feb 29, 2024

/retest

arkodg
arkodg previously approved these changes Mar 1, 2024
Copy link
Contributor

@arkodg arkodg left a 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 !

@arkodg arkodg requested review from a team March 1, 2024 01:41
Xunzhuo
Xunzhuo previously approved these changes Mar 1, 2024
@zirain zirain enabled auto-merge (squash) March 1, 2024 07:23
@zirain zirain dismissed stale reviews from Xunzhuo and arkodg via 186e6d3 March 1, 2024 07:26

type RateLimitMetricsPrometheusProvider struct {
// Disable the Prometheus endpoint.
Disable bool `json:"disable,omitempty"`
Copy link
Member

@zhaohuabing zhaohuabing Mar 1, 2024

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep same as others

@zirain zirain merged commit 4816db4 into envoyproxy:main Mar 2, 2024
20 checks passed
@zirain zirain deleted the ratelimit-prometheus branch March 2, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants