-
Notifications
You must be signed in to change notification settings - Fork 949
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
feature: change the function name about prometheus registry #2436
feature: change the function name about prometheus registry #2436
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2436 +/- ##
==========================================
+ Coverage 68.6% 68.77% +0.17%
==========================================
Files 272 272
Lines 18179 18179
==========================================
+ Hits 12471 12502 +31
+ Misses 4279 4257 -22
+ Partials 1429 1420 -9
|
@fuweid Please review it. |
@fuweid Ping :) |
pkg/utils/metrics/metrics.go
Outdated
// GetCustomPrometheusRegistry create a custom resigtry of Prometheus. | ||
func GetCustomPrometheusRegistry() *prometheus.Registry { | ||
return customPrometheusRegistry | ||
// GetPrometheusRegistry create a custom resigtry of Prometheus. |
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.
return the registry of Prometheus? How do you think
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.
Actually, I don't know your mean. Do you think that returning the resigry of prometheus is wrong ? Or the comment should be writtern as "GetPrometheusRegistry return a resigtry of Prometheus"
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.
sorry. Yes. I was saying that the comment should be changed to GetPrometheusRegistry return a resigtry of Prometheus
. 👍
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.
OK. I fix it at once.
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.
forgot to remove custom
. @fengzixu
78e89a2
to
c645035
Compare
feature: modify the function name about prometheus registry 1. change function name `GetCustomPrometheusRegistry` to `GetPrometheusRegistry` Related to: AliyunContainerService#2429
c645035
to
c1e9086
Compare
@fuweid All done. |
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
@fengzixu thank you! |
Signed-off-by: fengzixu [email protected]
Ⅰ. Describe what this PR did
GetCustomPrometheusRegistry
toGetPrometheusRegistry
Ⅱ. Does this pull request fix one issue?
#2429 (comment)
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews