-
Notifications
You must be signed in to change notification settings - Fork 257
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
fits the quantile value metric for the distribution class metric in googlecloud #627
Conversation
…e googlecloud.default is p50/75/90/95/99/999/mean
@@ -7,10 +7,10 @@ import ( | |||
"time" | |||
|
|||
"cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" | |||
"flashcat.cloud/categraf/inputs/googlecloud/internal" |
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.
import 顺序一般是系统库 、第三方库 、自己的库
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.
got it. 这块应该是idea没format好
inputs/googlecloud/connection.go
Outdated
// append mean quantile to slice | ||
for i, qt := range append( | ||
quantile.GetQuantiles(), | ||
point.GetValue().GetDistributionValue().Mean, |
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.
Mean 这里应该是GetMean()
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.
GetMean() 和 Mean 我看了下都可以,但是为了保持一致性,我这里后续会统一调整为方法调用。晚上我统一再调整下代码
@kongfei605 import 顺序已经调整;Mean 已经调整为 GetMean()。 |
Thank you @resurgence72 |
为 googlecloud 中的 distribution 类指标适配分位值指标;当前看只记录了 xxx_sum 的 count 值。
PS: 当前开发环境暂无gcp账号,需要 categraf maintainers 验证 + review下。