Skip to content

astronomer/gcc_metric_extracts

Repository files navigation

Overview

Extract Cloud Composer utilization metrics and map them to expected Astronomer resources

Setup

Authentication

Ensure that you are authenticated with Google Cloud and that the Monitoring API is enabled

Virtual Environent

Requires python >= 3.11. Create a virtual environment, activate it and install the requirements

Linux/Mac

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Windows

Usage

Run the extract_metrics.py file with the command line options corresponding to your GCC environment. To view required args, run

python extract_metrics.py --help

IMPORTANT: If using with GCC 3, please include the gcc3 flag in your command line arguments and omit the -c argument.

Example Usage

python extract_metrics.py -p {PROJECT_ID} -e {ENVIRONMENT_NAME} -c {CLUSTER_NAME} -l {LOCATION} --gcc3

About

Extract google cloud composer metrics and map to Astronomer resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages