<p>let's say I have the following resource requests:</p>
<ul>
<li>cpu 25m</li>
<li>mem 256Mi</li>
</ul>
<p>And I have the following limits:</p>
<ul>
<li>cpu 1</li>
<li>mem 1Gi</li>
</ul>
<p>And I have the following utilization</p>
<ul>
<li>cpu 15.01%</li>
<li>mem 17.24%</li>
</ul>
<p>Question... Is utilization % of limits or % of requests?</p>
<p>My presumption is it would be % of limits. So then if I want my cpu at 75% utilization I would just have to scale it down which would get me to <code>200m</code> using the math below</p>
<pre><code>(15.01%*1000)/0.75 = 200
</code></pre>
<p>[Update]</p>
<ul>
<li>I was looking at GCP in the monitoring section of GKE pods</li>
</ul>

edmamerto
<p>you are correct. <code>kubectl top pod</code> also presents the current usage in millicores, so it can also be used to calculate a possible limit reduction.</p>
<pre><code>kubectl top pod  | grep prometheus-k8s | awk '{print $2}
405m
</code></pre>
<p>So I set my limit with.
(405 * 100) / 75 = 540m</p>
