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

transform resources for metrics exported via ExportMetricsProto api #158

Merged
merged 2 commits into from
May 31, 2019

Conversation

rghetia
Copy link
Contributor

@rghetia rghetia commented May 30, 2019

fixes #157

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

"github.com/golang/protobuf/ptypes/wrappers"
"github.com/google/go-cmp/cmp"
)

func TestProtoResourceToMonitoringResource(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a test where proto metrics are exported with different resources, e.g metric1 with GCE resource, then metric2 with K8S resource.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. It uncovered an issue. So thanks for asking to add this test.

@rghetia
Copy link
Contributor Author

rghetia commented May 30, 2019

@songy23 PTAL.

@rghetia rghetia merged commit 5d4eb99 into census-ecosystem:master May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generic monitored resource not transformed to SD specific k8s resource for metricsproto
3 participants