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

feat: adds support for ratelimit metrics monitoring in grafana #4083

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

MdSahil-oss
Copy link
Contributor

What type of PR is this?

feat: adds support for ratelimit metrics monitoring in grafana

What this PR does / why we need it:
Adds new visualization panels in grafana dashboard Envoy Gateway Global

Which issue(s) this PR fixes:

Fixes #3871

This PR depends on #4073

@MdSahil-oss MdSahil-oss requested a review from a team as a code owner August 19, 2024 16:41
@MdSahil-oss
Copy link
Contributor Author

@arkodg @zirain Please review this PR, Let me know if any more changes need to be made :)

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.98%. Comparing base (a9f740a) to head (fc37cb1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4083      +/-   ##
==========================================
- Coverage   66.01%   65.98%   -0.03%     
==========================================
  Files         197      197              
  Lines       23971    23971              
==========================================
- Hits        15825    15818       -7     
- Misses       7021     7026       +5     
- Partials     1125     1127       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"disableTextWrap": false,
"editorMode": "builder",
"exemplar": false,
"expr": "ratelimit_service_rate_limit_total_hits{domain=\"default/eg/http\", key1=\"httproute/default/http-ratelimit/rule/0/match/0/ratelimit_example_httproute/default/http-ratelimit/rule/0/match/0/ratelimit_example\", key2=\"rule-0-match-0_rule-0-match-0\"}",
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be a variable and read from a drop down ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created a variable DefaultDomain for domain value default/eg/http and kept key1 & key2 as it is because I think key1 & key2 values change according to HTTPRoute configuration and other configs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arkodg Should I create variables for key1 & key2 as well ?

"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "ratelimit_service_rate_limit_near_limit{domain=\"default/eg/http\",key1=\"httproute/default/http-ratelimit/rule/0/match/0/ratelimit_example_httproute/default/http-ratelimit/rule/0/match/0/ratelimit_example\",key2=\"rule-0-match-0_rule-0-match-0\"}",
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above

@MdSahil-oss MdSahil-oss force-pushed the grafana-dashboard branch 2 times, most recently from 3dd81d3 to b2ad4a3 Compare August 21, 2024 07:28
@MdSahil-oss MdSahil-oss requested a review from arkodg August 21, 2024 07:29
@MdSahil-oss MdSahil-oss force-pushed the grafana-dashboard branch 2 times, most recently from efa81ab to fff1a75 Compare August 25, 2024 17:56
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is the right place for the global ratelimit dashboard, can you move this into a new dashboard, probably with name global-ratelimit.json ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍🏽

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Sep 27, 2024
@zirain zirain requested a review from shawnh2 September 27, 2024 12:23
@github-actions github-actions bot removed the stale label Sep 27, 2024
Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

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

image

Looking Good ! Thanks for adding this!

@zirain zirain merged commit cbd92e2 into envoyproxy:main Sep 28, 2024
23 checks passed
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.

Add metrics from the Ratelimiting service in the Grafana dashboard
4 participants