Exports limits and usage for metrics available through the GCP APIs (currently only supports Compute Engine).
GOOGLE_APPLICATION_CREDENTIALS=path-to-credentials.json
--gcp.project_id
GOOGLE_PROJECT_ID
http://metadata.google.internal/computeMetadata/v1/project/project-id
docker-compose up
and you'll have a prometheus instance running at http://localhost:9090 and a gcp-quota-exporter instance running at http://localhost:9592.docker build -t gcp-quota-exporter .
docker run -it --rm -v $(pwd)/credentials.json:/app/credentials.json -e GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json -e GOOGLE_PROJECT_ID=project_id gcp-quota-exporter
docker run -it --rm -v $(pwd)/credentials.json:/app/credentials.json -e GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json -e GOOGLE_PROJECT_ID=project_id mintel/gcp-quota-exporter