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

Unified Diff: go/src/infra/tools/cloudtail/client.go

Issue 2125943003: Updated moniroting/proxy and cloudtail/client with tsmon's unit annotation supports. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Update DEPS with the revision of luci-go with crrev.com/2123853002 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 | « go/src/infra/monitoring/proxy/pubsub.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/tools/cloudtail/client.go
diff --git a/go/src/infra/tools/cloudtail/client.go b/go/src/infra/tools/cloudtail/client.go
index ffbb6d3647d17fa61560f74c0dc14e035c6eb098..2cd8c481ee2f6aeb45cf17538ca37004f502ad1f 100644
--- a/go/src/infra/tools/cloudtail/client.go
+++ b/go/src/infra/tools/cloudtail/client.go
@@ -14,6 +14,7 @@ import (
"github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/tsmon/field"
"github.com/luci/luci-go/common/tsmon/metric"
+ "github.com/luci/luci-go/common/tsmon/types"
"golang.org/x/net/context"
cloudlog "google.golang.org/api/logging/v1beta3"
)
@@ -77,12 +78,14 @@ type ClientOptions struct {
var (
entriesCounter = metric.NewCounter("cloudtail/log_entries",
"Log entries processed",
+ types.MetricMetadata{},
field.String("log"),
field.String("resource_type"),
field.String("resource_id"),
field.String("severity"))
writesCounter = metric.NewCounter("cloudtail/api_writes",
"Writes to Cloud Logging API",
+ types.MetricMetadata{},
field.String("log"),
field.String("resource_type"),
field.String("resource_id"),
« no previous file with comments | « go/src/infra/monitoring/proxy/pubsub.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698