[v10.0.x] CloudMonitoring: Improve parsing of GCM labels (#69812)

CloudMonitoring: Improve parsing of GCM labels (#69800)

Update parsing of GCM labels

- Include parsing of metadata labels

(cherry picked from commit 9fc1de62d5)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2023-06-08 19:41:21 +03:00
committed by GitHub
co-authored by Andreas Christou
parent 5dacbb97e0
commit c90c8d88dc
3 changed files with 8 additions and 1 deletions
@@ -110,6 +110,7 @@ func TestTimeSeriesQuery(t *testing.T) {
labels, ok := custom["labels"].(gdata.Labels)
require.True(t, ok)
assert.Equal(t, "6724404429462225363", labels["resource.label.instance_id"])
assert.Equal(t, "test-app", labels["metadata.label.app"])
})
t.Run("includes time interval", func(t *testing.T) {