<p>Are the metrics for vertical and horizontal scaling in kubernetes the same.
So does the cpu,memory and custom metrics work with both concepts?</p>

<p>Yes,
Both use the CPU or Memory metrics provided by the metrics server.</p>

<p>For CPU or Memory metrics you can use either VPA or HPA, not both together. Using both together will have undesirable behaviour, because they will be competing to scale up/down/in/out at same time.</p>

<p>Using custom metrics is possible to have both enabled, one can be activated by the CPU or Memory, the other by custom metrics (like number of messages in a queue, active connections)</p>
