- This repo helps you to create custommetric in gcloud which can be used for scaling up the pods.Basically code is return in Golang.
- Things that you need to be aware is the gcloud_project id and cluster where you want to use it.Please follow the specific commands below
go build custommetric.go
go run custommetric.go ${Cluster_name} ${Project_id}
Initially uncommenyt the delete method line in main func and comment the create method.
go build custommetric.go
go run custommetric.go ${Cluster_name} ${Project_id}
- You can change the metric type to be anything, basically based on your way of work.