Skip to content

Conversation

@tornado-ssy
Copy link
Contributor

No description provided.


type MetricObject struct {
Domain string `yaml:"domain"`
Project string `yaml:"project"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要配置,这些通过环境变量控制即可

"github.com/apache/servicecomb-kie/server/datasource"
)

const ReportInterval = 15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个需要可配置

if m.Project == "" {
m.Project = "default"
}
ReportTicker := time.NewTicker(ReportInterval * time.Second)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

局部变量命名大写开头不规范

@@ -0,0 +1,57 @@
package metric
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该是server/metrics包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants