-
Notifications
You must be signed in to change notification settings - Fork 689
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
Enable admin route for stats/prometheus
#6503
Enable admin route for stats/prometheus
#6503
Conversation
19c153c
to
aea336b
Compare
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.
thanks!
Signed-off-by: Clayton Gonsalves <clayton.gonsalves@reddit.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6503 +/- ##
=======================================
Coverage 81.63% 81.64%
=======================================
Files 133 133
Lines 15869 15873 +4
=======================================
+ Hits 12955 12959 +4
Misses 2620 2620
Partials 294 294
|
aea336b
to
64c8646
Compare
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! 👍
Just for completeness:
(1) The alternative form GET /stats?format=prometheus
for fetching prometheus metrics worked but this change is required for /stats/prometheus
.
(2) We intentionally keep blocking GET /stats/recentlookups
which was allowed before #6447.
Thank you @clayton-gonsalves! |
Signed-off-by: Clayton Gonsalves <clayton.gonsalves@reddit.com> Signed-off-by: Saman Mahdanian <saman@mahdanian.xyz>
As part of the changes made in #6447
the admin endpoint was tightened to only allow
GET
requests with path matches asexact
.This change blocked the
stats/prometheus
endpoint which is used by prometheus to scrape metrics.Note: If not fixed, this will lead to loss of all prometheus based metrics.