# Hivemq-prometheus extension

**URL:** <https://community.hivemq.com/t/hivemq-prometheus-extension/2037>\
**Category:** HiveMQ Extensions\
**Created:** [May 4, 2023, 12:12pm UTC](https://community.hivemq.com/t/hivemq-prometheus-extension/2037 "2023-05-04T12:12:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowtham](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gowtham](https://community.hivemq.com/u/gowtham)\
**Post date:** [May 4, 2023, 12:12pm UTC](https://community.hivemq.com/t/hivemq-prometheus-extension/2037/1 "2023-05-04T12:12:23Z")

</div>

Hello @hivemq-support ,

Good Afternoon,

i have a question about prometheus extension for the hivemq broker deployed as pod in kuberetes.  
Currently i am running community broker with file-rbac, prometheus extensions and now my goal is to get metrics in my promethus server running on kubernetes. I am getting metrics like “com\_hivemq” but my question if suppose my pod dies and it come up with new ip and everytime i should manually update the ‘target’ in promethus.yml file. i dont want to repeat this , how to fix for one endpoint in the target in promethus ui.  
I am not deploying as a docker-compose .

can someone help me how to acheive or move forward.  
i would appericiate if someone provide any source or ideas, please let me know.  
I woulld like to hear from you soon.

Best,  
Gowtham Reddy Eeda

---

<div class="post-metadata">

**Author:** ![AaronTLFranz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/aarontlfranz/32/638_2.png) [@AaronTLFranz](https://community.hivemq.com/u/AaronTLFranz)\
**Post date:** [May 4, 2023, 12:33pm UTC](https://community.hivemq.com/t/hivemq-prometheus-extension/2037/2 "2023-05-04T12:33:30Z")

</div>

Hello @gowtham,

Thank you for the interest in HiveMQ!

Typically in Kubernetes deployments, when a static address is needed for external requests, a load balancer service is implemented. This will allow static address assignment for this service, rather than having to utilize dynamic pod addresses. If a load balancer is outside of the scope of this deployment, an ingress service can be utilized as well.

Some details regarding load balancers are available [here](https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/).

Best,  
Aaron from HiveMQ Team
