open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3k stars 2.32k forks source link

Implement alternative authorization for Stackdriver #688

Closed serathius closed 3 years ago

serathius commented 4 years ago

Is your feature request related to a problem? Please describe. Stackdriver exporter allows for using exporting to selected project, but only can use GCE default token.

This is a problem in tenant setups monitoring data is sent do different projects. In such case GCE default service account would need to be authorized to write to different project, which is not great due security.

Describe the solution you'd like My exact case is that tokens can be created from HTTP server via POST request with custom URL and Body.

Alternatives Have a generic way to inject authorization tokens to exporters.

james-bebbington commented 3 years ago

@nilebox can this be closed now?

nilebox commented 3 years ago

We have used #1010 as a workaround, so this issue can be closed.