-
Notifications
You must be signed in to change notification settings - Fork 1
Update /metrics endpoint
#89
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
Conversation
|
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
Pull Request Test Coverage Report for Build 17554658438Details
💛 - Coveralls |
|
Waiting for -- uc-cdis/cdis-python-utils#72 to be reviewed and merged |
markxiao
left a comment
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.
code look good. I did not test myself b/c my env is not up yet.
| if app.metrics.enabled: | ||
| app.mount("/metrics", app.metrics.get_asgi_app()) | ||
|
|
||
| app.include_router(s3_root_router, tags=["S3"]) |
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.
@nss10 When you have a chance could you add a comment explaining why it's not done at the same time as the other routers 🙏
Link to JIRA ticket if there is one: MIDRC-1098
This PR fixes an issue where requests to the /metrics endpoint were incorrectly falling back to s3_root_router.
NOTE: This PR depends on -- uc-cdis/cdis-python-utils#72
Bug Fixes
/metricsendpoint will be correctly routed to prometheus app, previously it was accidentally being routed tos3_root_router