mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
stackdriver: change pattern for annotation to metric.value
This commit is contained in:
parent
189f89a9e4
commit
41060d24d5
@ -97,7 +97,7 @@ func formatAnnotationText(annotationText string, pointValue string, metricType s
|
||||
return metricPart
|
||||
}
|
||||
|
||||
if metaPartName == "value" {
|
||||
if metaPartName == "metric.value" {
|
||||
return []byte(pointValue)
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ func TestStackdriverAnnotationQuery(t *testing.T) {
|
||||
|
||||
res := &tsdb.QueryResult{Meta: simplejson.New(), RefId: "annotationQuery"}
|
||||
query := &StackdriverQuery{}
|
||||
err = executor.parseToAnnotations(res, data, query, "atitle {{metric.label.instance_name}} {{value}}", "atext {{resource.label.zone}}", "atag")
|
||||
err = executor.parseToAnnotations(res, data, query, "atitle {{metric.label.instance_name}} {{metric.value}}", "atext {{resource.label.zone}}", "atag")
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Convey("Should return annotations table", func() {
|
||||
|
Loading…
Reference in New Issue
Block a user