-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Prometheus endpoint #5256
Prometheus endpoint #5256
Conversation
At first sight, I would say yes to all the question. For the deps, does |
Codecov Report
@@ Coverage Diff @@
## master #5256 +/- ##
==========================================
- Coverage 37.6% 37.37% -0.23%
==========================================
Files 310 312 +2
Lines 46054 46327 +273
==========================================
- Hits 17320 17317 -3
- Misses 26254 26527 +273
- Partials 2480 2483 +3
Continue to review full report at Codecov.
|
Yes it helped. thank |
Bad idea to put metrics handler in a separate file? By default metrics are disabled. If enable metrics will be available /metrics without authorization. But you can also add a token, then access to /metrics will be available only with a token. |
I think having it in separate file is best, because it is a unique area (just like how the api is split off into different files). |
Maintainers note: Dismissing @lunny's review as requested change has been made, and there are 4 other positive reviews. |
change has been made (see my comment above)
I want to try to finish the task #2751, initial commits are based on #678
I need help on several issues:1. How can l make an authorization token?It is necessary to use a token in app.ini and make it accessible from the section /admin?
Is need to make token in modules/gererate and save in configuration,If the token doesn't exist in configuration?
2. Do I need to add "metrics" in a reservedUsernames?3. How can l correct dependencies?This PR is build successfully just if update it manually github.com/golang/protobuf
sorry for my bad english :)