'How to calculate kubernetes pod CPU and memory usage in percentage by using only metric server In golang

How can we get/ calculate pod cpu usage and memory usage in percentage



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source