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

Kubernetes operator support #118

Open
mwuertinger opened this issue Mar 26, 2019 · 3 comments
Open

Kubernetes operator support #118

mwuertinger opened this issue Mar 26, 2019 · 3 comments

Comments

@mwuertinger
Copy link

The OpenCensus Kubernetes Operator sets the environment variables OC_RESOURCE_TYPE and OC_RESOURCE_LABELS. The function monitoredresource.Autodetect() should use those values if present.

@mwuertinger mwuertinger changed the title Kubernetes operator OC_RESOURCE_LABELS support Kubernetes operator support Mar 26, 2019
@songy23
Copy link
Contributor

songy23 commented Mar 26, 2019

Stackdriver exporter will be migrated to use the Resource APIs (https://github.com/census-instrumentation/opencensus-go/tree/master/resource) once they're released. Resource APIs support reading the resource types and labels:
https://github.com/census-instrumentation/opencensus-go/blob/master/resource/resource.go#L29-L33

@mwuertinger
Copy link
Author

Does this mean that monitoredresource.Autodetect() will be deprecated then?

@songy23
Copy link
Contributor

songy23 commented Mar 29, 2019

Yes, monitoredresource will be deprecated and generic resource will be used instead, similar to what happened in Java: census-instrumentation/opencensus-java#1744 and census-instrumentation/opencensus-java#1745.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants