Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Allow exporting metrics with resource gae_instance. #253

Merged
merged 3 commits into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add gae_instance resources to testdata for metrics_proto_api_test.
  • Loading branch information
imccarten1 committed Feb 20, 2020
commit cb016a822b623321bebe494c3d02667d64967f7d
18 changes: 18 additions & 0 deletions testdata/Resources/in.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,21 @@ labels: <
key: "k8s.pod.name"
value: "pod1"
>
---
type: "gae_instance"
labels: <
key: "appengine.service.id"
value: "default"
>
labels: <
key: "appengine.version.id"
value: "version1"
>
labels: <
key: "appengine.instance.id"
value: "inst1"
>
labels: <
key: "cloud.region"
value: "region1"
>
19 changes: 18 additions & 1 deletion testdata/Resources/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,21 @@ labels: <
>
---
type: "global"

---
type: "gae_instance"
labels: <
key: "module_id"
value: "default"
>
labels: <
key: "version_id"
value: "version1"
>
labels: <
key: "instance_id"
value: "inst1"
>
labels: <
key: "location"
value: "region1"
>
19 changes: 19 additions & 0 deletions testdata/ResourcesWithMissingFields/in.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,22 @@ labels: <
key: "k8s.pod.name"
value: "pod1"
>
---
type: "gae_instance"
#labels: <
# key: "appengine.service.id"
# value: "default"
#>
labels: <
key: "appengine.version.id"
value: "version1"
>
labels: <
key: "appengine.instance.id"
value: "inst1"
>
labels: <
key: "cloud.region"
value: "region1"
>

3 changes: 2 additions & 1 deletion testdata/ResourcesWithMissingFields/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ type: "global"
type: "global"
---
type: "global"

---
type: "global"