ruby code custom metrics -- 2

Job ID: 31732949

Budget: $10 – $30 USD

Need the piece of code which is in go to be altered and written in ruby
https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#custom-metric_3

the code should be tested to see if custom metrics really work and also based on some improvisation,
some back and forth changes(subtle changes) will be needed.
Related categories: Golang Ruby Kubernetes