Skip to content

Commit 9748a94

Browse files
committed
stackdriver: merge commit"
2 parents 31ddcdb + d11f67e commit 9748a94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/api/pluginproxy/access_token_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (provider *accessTokenProvider) getJwtAccessToken(ctx context.Context, data
111111
defer oauthJwtTokenCache.Unlock()
112112
if cachedToken, found := oauthJwtTokenCache.cache[provider.getAccessTokenCacheKey()]; found {
113113
if cachedToken.Expiry.After(time.Now().Add(time.Second * 10)) {
114-
logger.Info("Using token from cache")
114+
logger.Debug("Using token from cache")
115115
return cachedToken.AccessToken, nil
116116
}
117117
}

pkg/tsdb/stackdriver/annotation_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func formatAnnotationText(annotationText string, pointValue string, metricType s
9797
return metricPart
9898
}
9999

100-
if metaPartName == "value" {
100+
if metaPartName == "metric.value" {
101101
return []byte(pointValue)
102102
}
103103

pkg/tsdb/stackdriver/annotation_query_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestStackdriverAnnotationQuery(t *testing.T) {
1919

2020
res := &tsdb.QueryResult{Meta: simplejson.New(), RefId: "annotationQuery"}
2121
query := &StackdriverQuery{}
22-
err = executor.parseToAnnotations(res, data, query, "atitle {{metric.label.instance_name}} {{value}}", "atext {{resource.label.zone}}", "atag")
22+
err = executor.parseToAnnotations(res, data, query, "atitle {{metric.label.instance_name}} {{metric.value}}", "atext {{resource.label.zone}}", "atag")
2323
So(err, ShouldBeNil)
2424

2525
Convey("Should return annotations table", func() {

0 commit comments

Comments
 (0)