issues
search
mintel
/
gcp-quota-exporter
Exports quota limits and usage for Google Compute Platform services
MIT License
7
stars
14
forks
source link
Add support for Workload Identity to the exporter
#6
Closed
primeroz
closed
4 years ago
primeroz
commented
4 years ago
BREAKING CHANGE: the credentials.json file is not defined by a cli argument but by the
standard
environment variable
GOOGLE_APPLICATION_CREDENTIALS
BREAKING CHANGE: the
project_id
is not the first positional argument anymore but a cli flag called
gcp.project_id
FEATURE: use the
"golang.org/x/oauth2/google"
package to perform Authentication to support multiple modes rather than just the credentials.json file
ENHANCEMENT: the
project_id
can be specified by an Environment Variable
GOOGLE_PROJECT_ID
ENHANCEMENT: if the project_id is not specified the exporter will try to fetch it from the compute metadata
http://metadata.google.internal/computeMetadata/v1/project/project-id
ENHANCEMENT: Add retry login on the Http Request using the
rehttp
package - mostly copied from the stackdriver exporter implementation
"golang.org/x/oauth2/google"
package to perform Authentication to support multiple modes rather than just the credentials.json file