Open apstndb opened 6 years ago
cc @kawych
Agreed, when you have a PR I'm happy to review. Note that custom-metrics-stackdriver-adapter still uses Metadata Server to filter relevant timeseries from Stackdriver, so this will still only work on GCP, but this is a step in the right direction.
The next step should be to use Stackdriver Metadata Agent instead of Metadata Server for cluster metadata.
The PR is merged. This issue's root reason is to support multi-cloud and hybrid deployment. So, it may be better to renamed if it is right direction.
Sorry, I have currently no time to finish it.
Although Stackdriver Monitoring is not support only GCP but also multi-cloud and hybrid-cloud deployment,
custom-metrics-stackdriver-adapter
is strongly tied with GCE/GKE because it useComputeTokenSource
.DefaultTokenSource
should be more widely useful option because it allows to useGOOGLE_APPLICATION_CREDENTIALS
.I am not testing it yet but it will be a small patch like below. https://github.com/apstndb/k8s-stackdriver/commit/5cc3399c0225ea527e7b9bed6ab27b47b435a45b