Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1669)

Unified Diff: appengine/cmd/milo/buildbot/pubsub.go

Issue 2123853002: Added unit annotation supports onto tsmon in go. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Specify the unit of logdog/collector/subscription/processing_time_ms with types.Milliseconds Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/tsmon/global_callback_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cmd/milo/buildbot/pubsub.go
diff --git a/appengine/cmd/milo/buildbot/pubsub.go b/appengine/cmd/milo/buildbot/pubsub.go
index 47d7ad88b4f0e16f5c0b64459c09a56acce42bb7..3a21affb3512ed1949cb54160210f0897df5a67a 100644
--- a/appengine/cmd/milo/buildbot/pubsub.go
+++ b/appengine/cmd/milo/buildbot/pubsub.go
@@ -22,6 +22,7 @@ import (
"github.com/luci/luci-go/common/tsmon/field"
"github.com/luci/luci-go/common/tsmon/metric"
+ "github.com/luci/luci-go/common/tsmon/types"
)
var (
@@ -33,6 +34,7 @@ var (
buildCounter = metric.NewCounter(
"luci/milo/buildbot_pubsub/builds",
"The number of buildbot builds received by Milo from PubSub",
+ types.MetricMetadata{},
field.Bool("internal"),
field.String("master"),
field.String("builder"),
« no previous file with comments | « no previous file | appengine/tsmon/global_callback_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698