Skip to content

Commit

Permalink
updated TargetV2 labels (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
googKamaljit authored May 5, 2021
1 parent d859837 commit 3662cb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions retrieval/resource_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ var TargetV2ResourceMap = ResourceMap{
"org": constValue("org"),
"env": constValue("env"),
"proxy_name": constValue("proxy_name"),
"target_type": constValue("target_type"),
"target_endpoint": constValue("target_endpoint"),
"type": constValue("type"),
"endpoint": constValue("endpoint"),
"runtime_version": constValue("runtime_version"),
"instance_id": constValue("instance_id"),
},
Expand Down
8 changes: 4 additions & 4 deletions retrieval/resource_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ func TestTranslateTargetV2(t *testing.T) {
}
metricLabels := labels.Labels{
{"proxy_name", "my-name"},
{"target_type", "my-target"},
{"target_endpoint", "my-endpoint"},
{"type", "my-type"},
{"endpoint", "my-endpoint"},
{"org", "my-org"},
{"env", "my-env"},
{"runtime_version", "my-revision"},
Expand All @@ -227,8 +227,8 @@ func TestTranslateTargetV2(t *testing.T) {
"org": "my-org",
"env": "my-env",
"proxy_name": "my-name",
"target_type": "my-target",
"target_endpoint": "my-endpoint",
"type": "my-type",
"endpoint": "my-endpoint",
"runtime_version": "my-revision",
"instance_id": "my-instance",
}
Expand Down

0 comments on commit 3662cb2

Please sign in to comment.