├── .gitignore ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── apis ├── k8s │ ├── builder_hpa.go │ ├── builder_hpa_test.go │ ├── builder_vpa.go │ ├── builder_vpa_test.go │ ├── decoder.go │ ├── testdata │ │ ├── hpa-v1.yaml │ │ ├── hpa-v2beta1.yaml │ │ ├── hpa-v2beta2.yaml │ │ └── vpa-v1.yaml │ └── types.go └── mon │ ├── builder_hpa_timeseries.go │ ├── builder_hpa_timeseries_test.go │ ├── builder_vpa_timeseries.go │ ├── builder_vpa_timeseries_test.go │ └── cloud_monitoring.go ├── go.mod ├── go.sum ├── k8s └── templates │ ├── cpu-hpa.gtpl │ ├── hpa-metrics-exporter.yaml │ ├── memory-hpa.gtpl │ ├── metrics-exporter.yaml │ └── vpa.gtpl ├── main.go ├── metrics-exporter ├── .dockerignore ├── Dockerfile ├── README.md ├── bigquery_recommendation_schema.json ├── bigquery_schema.json ├── cloudbuild.yaml ├── config-template.py ├── deploy_pipeline.sh ├── images │ ├── 1.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 14.png │ ├── 15.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ └── 9.png ├── kubernetes │ └── online-shop.yaml ├── main.py ├── metric_record_flat.proto ├── metric_record_flat_pb2.py ├── recommendation-template.sql ├── requirements.txt └── setup.sh └── monitoring ├── dashboards └── templates │ ├── app-rightsizing.gtpl │ └── binpacking.yaml └── policies └── templates ├── binpacking ├── nodepools-binpacking-cpu-overprovisioning-alert.yaml └── nodepools-binpacking-memory-overprovisioning-alert.yaml └── rightsizing ├── app-rightsizing-cpu-overprovisioning-alert.yaml ├── app-rightsizing-cpu-underprovisioning-alert.yaml ├── app-rightsizing-memory-overprovisioning-alert.yaml └── app-rightsizing-memory-underprovisioning-alert.yaml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/README.md -------------------------------------------------------------------------------- /apis/k8s/builder_hpa.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/builder_hpa.go -------------------------------------------------------------------------------- /apis/k8s/builder_hpa_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/builder_hpa_test.go -------------------------------------------------------------------------------- /apis/k8s/builder_vpa.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/builder_vpa.go -------------------------------------------------------------------------------- /apis/k8s/builder_vpa_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/builder_vpa_test.go -------------------------------------------------------------------------------- /apis/k8s/decoder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/decoder.go -------------------------------------------------------------------------------- /apis/k8s/testdata/hpa-v1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/testdata/hpa-v1.yaml -------------------------------------------------------------------------------- /apis/k8s/testdata/hpa-v2beta1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/testdata/hpa-v2beta1.yaml -------------------------------------------------------------------------------- /apis/k8s/testdata/hpa-v2beta2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/testdata/hpa-v2beta2.yaml -------------------------------------------------------------------------------- /apis/k8s/testdata/vpa-v1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/testdata/vpa-v1.yaml -------------------------------------------------------------------------------- /apis/k8s/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/k8s/types.go -------------------------------------------------------------------------------- /apis/mon/builder_hpa_timeseries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/mon/builder_hpa_timeseries.go -------------------------------------------------------------------------------- /apis/mon/builder_hpa_timeseries_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/mon/builder_hpa_timeseries_test.go -------------------------------------------------------------------------------- /apis/mon/builder_vpa_timeseries.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/mon/builder_vpa_timeseries.go -------------------------------------------------------------------------------- /apis/mon/builder_vpa_timeseries_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/mon/builder_vpa_timeseries_test.go -------------------------------------------------------------------------------- /apis/mon/cloud_monitoring.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/apis/mon/cloud_monitoring.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/go.sum -------------------------------------------------------------------------------- /k8s/templates/cpu-hpa.gtpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/k8s/templates/cpu-hpa.gtpl -------------------------------------------------------------------------------- /k8s/templates/hpa-metrics-exporter.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/k8s/templates/hpa-metrics-exporter.yaml -------------------------------------------------------------------------------- /k8s/templates/memory-hpa.gtpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/k8s/templates/memory-hpa.gtpl -------------------------------------------------------------------------------- /k8s/templates/metrics-exporter.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/k8s/templates/metrics-exporter.yaml -------------------------------------------------------------------------------- /k8s/templates/vpa.gtpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/k8s/templates/vpa.gtpl -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/main.go -------------------------------------------------------------------------------- /metrics-exporter/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/.dockerignore -------------------------------------------------------------------------------- /metrics-exporter/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/Dockerfile -------------------------------------------------------------------------------- /metrics-exporter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/README.md -------------------------------------------------------------------------------- /metrics-exporter/bigquery_recommendation_schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/bigquery_recommendation_schema.json -------------------------------------------------------------------------------- /metrics-exporter/bigquery_schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/bigquery_schema.json -------------------------------------------------------------------------------- /metrics-exporter/cloudbuild.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/cloudbuild.yaml -------------------------------------------------------------------------------- /metrics-exporter/config-template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/config-template.py -------------------------------------------------------------------------------- /metrics-exporter/deploy_pipeline.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/deploy_pipeline.sh -------------------------------------------------------------------------------- /metrics-exporter/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/1.png -------------------------------------------------------------------------------- /metrics-exporter/images/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/10.png -------------------------------------------------------------------------------- /metrics-exporter/images/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/11.png -------------------------------------------------------------------------------- /metrics-exporter/images/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/12.png -------------------------------------------------------------------------------- /metrics-exporter/images/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/13.png -------------------------------------------------------------------------------- /metrics-exporter/images/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/14.png -------------------------------------------------------------------------------- /metrics-exporter/images/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/15.png -------------------------------------------------------------------------------- /metrics-exporter/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/2.png -------------------------------------------------------------------------------- /metrics-exporter/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/3.png -------------------------------------------------------------------------------- /metrics-exporter/images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/4.png -------------------------------------------------------------------------------- /metrics-exporter/images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/5.png -------------------------------------------------------------------------------- /metrics-exporter/images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/6.png -------------------------------------------------------------------------------- /metrics-exporter/images/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/7.png -------------------------------------------------------------------------------- /metrics-exporter/images/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/8.png -------------------------------------------------------------------------------- /metrics-exporter/images/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/images/9.png -------------------------------------------------------------------------------- /metrics-exporter/kubernetes/online-shop.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/kubernetes/online-shop.yaml -------------------------------------------------------------------------------- /metrics-exporter/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/main.py -------------------------------------------------------------------------------- /metrics-exporter/metric_record_flat.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/metric_record_flat.proto -------------------------------------------------------------------------------- /metrics-exporter/metric_record_flat_pb2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/metric_record_flat_pb2.py -------------------------------------------------------------------------------- /metrics-exporter/recommendation-template.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/recommendation-template.sql -------------------------------------------------------------------------------- /metrics-exporter/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/requirements.txt -------------------------------------------------------------------------------- /metrics-exporter/setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/metrics-exporter/setup.sh -------------------------------------------------------------------------------- /monitoring/dashboards/templates/app-rightsizing.gtpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/dashboards/templates/app-rightsizing.gtpl -------------------------------------------------------------------------------- /monitoring/dashboards/templates/binpacking.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/dashboards/templates/binpacking.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/binpacking/nodepools-binpacking-cpu-overprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/binpacking/nodepools-binpacking-cpu-overprovisioning-alert.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/binpacking/nodepools-binpacking-memory-overprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/binpacking/nodepools-binpacking-memory-overprovisioning-alert.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/rightsizing/app-rightsizing-cpu-overprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/rightsizing/app-rightsizing-cpu-overprovisioning-alert.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/rightsizing/app-rightsizing-cpu-underprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/rightsizing/app-rightsizing-cpu-underprovisioning-alert.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/rightsizing/app-rightsizing-memory-overprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/rightsizing/app-rightsizing-memory-overprovisioning-alert.yaml -------------------------------------------------------------------------------- /monitoring/policies/templates/rightsizing/app-rightsizing-memory-underprovisioning-alert.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/gke-cost-optimization-monitoring/HEAD/monitoring/policies/templates/rightsizing/app-rightsizing-memory-underprovisioning-alert.yaml --------------------------------------------------------------------------------