# Load balancing absent on Kubernetes Metrics ActiveGate

**URL:** <https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641>\
**Category:** Container platforms\
**Tags:** activegate, dynatrace-managed, kubernetes\
**Created:** [October 8, 2025, 5:58am UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641 "2025-10-08T05:58:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik\_laddipe](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@karthik\_laddipe](https://community.dynatrace.com/u/karthik_laddipe)\
**Post date:** [October 8, 2025, 5:58am UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/1 "2025-10-08T05:58:44Z")

</div>

We have dynatrace operator deployed on our large k8 platform

Due to issues with high resource consumption, we split our dynakube configuration to two i.e., one for k8 API metrics and the other for service level monitoring metrics and traces.

On the kubernetes active gates, even though we have 4 replicas, we see that only one is actually fetching metrics from the local k8 API endpoint instead of all 4 balancing the load. This absence of load balancing is causing resource crunch on the one replica and data on the dashboard is not consistent.

Is there a way we can properly load balance to all replicas ?

Is vertical scaling the only option in this case ? if so, how do we do an optimal calculation ?

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [October 12, 2025, 11:09pm UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/2 "2025-10-12T23:09:44Z")

</div>

Agree, they don’t load balance, additional replicas are just there incase of fail over & to chew through your budget.&nbsp;  
Only Agent traffic is somewhat load balanced.

So, even if you have 3 Active Gates, only the primary will be doing all the work → I’ve raised RFE’s around this and given up.

This also leads to consistently getting OOMs. Basically the more Metric / Prometheus level data you scrape ( inc. /metrics , /cadvisor) the bigger the increase in memory on the container Active Gates, it is not uncommon to need \>8Gi \<16 Gi.

There are a couple of solutions to the OOM & getting the metrics / load balancing,  
&nbsp;&nbsp;  
1. Have multiple dynakubes split into functions, e.g. 1 for Kubernetes Monitoring, 2 for Agent Traffic …&nbsp; this will help you focus resource utilisation to the different AG Containers.&nbsp; &nbsp;- complex and more tech debt in maintaining it.

2. Implement OTEL collector(s) for Metric & Prometheus scraping components (anything outside of standard AG Kubernetes Monitoring).

Personally, I have gone done the route of OTEL Collectors and this works without issue. Collectors can also use a HPA for scaling as required.&nbsp; You can go down the tracing path as well if you like.&nbsp;  
&nbsp;  
Overall, this will significantly reduce requirements on the container active gates, resolve the OOMs, increase stability and should also address the above issue if configured correctly.&nbsp; If you do do HPA for scaling, you can implement metric sharding on the Prometheus scraping - which is the supported approach for load balancing of metrics.

Anyway, have fun.

---

<div class="post-metadata">

**Author:** ![karthik\_laddipe](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@karthik\_laddipe](https://community.dynatrace.com/u/karthik_laddipe)\
**Post date:** [November 7, 2025, 5:48pm UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/3 "2025-11-07T17:48:18Z")

</div>

We have already split dynakubes to multiple depending on its function.  
Our clusters are just so big and hence resource hungry.  
we are running 2 replicas now for k8 metrics and of-course only one of these is serving the purpose as there is no LB’ing. However, the memory is just not enough how much ever we scale it vertically. we are currently at 24 GB memory limits and still see the data getting purged. Our clusters are also very big i.e., 25k pods in a cluster. We are in a position now where we can’t go up on memory anymore because it would put other pods at risk on our infra nodes by causing scheduling related issues.

If load balancing is not possible, the only thing that can save us is having stand alone VM based active gates and just have all the compute we need on them.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [November 7, 2025, 9:12pm UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/4 "2025-11-07T21:12:32Z")

</div>

Agree, this is mandatory, I have the same issue.

---

<div class="post-metadata">

**Author:** ![alois\_mayr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alois_mayr/32/28887_2.png) [@alois\_mayr](https://community.dynatrace.com/u/alois_mayr)\
**Post date:** [November 11, 2025, 5:57am UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/5 "2025-11-11T05:57:27Z")

</div>

Hi

Thanks for sharing the request. We are aware of the situation and looking into ways to solve with horizontal scale. The proposed solution of deploying separate Dynakubes to split the responsibility of AGs is the right approach and future proof.&nbsp;This allows to scale traffice routing horizontally which typically causes the majority of the load.

We’re working on a solution to offload Prometheus scraping from the AG to further reduce the load and provide a nicely horizontally scalable solution.

Timelines arent clear yet though.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [November 25, 2025, 7:46am UTC](https://community.dynatrace.com/t/load-balancing-absent-on-kubernetes-metrics-activegate/53641/6 "2025-11-25T07:46:13Z")

</div>

Product idea in relation to this&nbsp;[https://community.dynatrace.com/t5/Product-ideas/Load-balancing-for-Kubernetes-metrics-ActiveGate/idi-p/289245](https://community.dynatrace.com/post/289245)
