little-cui commented on code in PR #315:
URL: https://github.com/apache/servicecomb-kie/pull/315#discussion_r1464211472
##########
server/datasource/metric/prometheus.go:
##########
@@ -0,0 +1,57 @@
+package metric
+
+import (
+ "context"
+ "time"
+
+ "github.com/go-chassis/go-chassis/v2/pkg/metrics"
+ "github.com/go-chassis/openlog"
+
+ "github.com/apache/servicecomb-kie/server/config"
+ "github.com/apache/servicecomb-kie/server/datasource"
+)
+
+const ReportInterval = 15
+
+func InitMetric(m config.MetricObject) error {
Review Comment:
不应该通过定时任务来处理,而是在CRUD的svc或datasource里完成计数
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]