# Keycloak 13/14: custom metrics with smallrye not working

**URL:** <https://forum.keycloak.org/t/keycloak-13-14-custom-metrics-with-smallrye-not-working/10257>\
**Category:** Getting advice\
**Created:** [July 28, 2021, 10:41am UTC](https://forum.keycloak.org/t/keycloak-13-14-custom-metrics-with-smallrye-not-working/10257 "2021-07-28T10:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvanderboom](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rvanderboom/32/1463_2.png) [@rvanderboom](https://forum.keycloak.org/u/rvanderboom)\
**Post date:** [July 28, 2021, 10:41am UTC](https://forum.keycloak.org/t/keycloak-13-14-custom-metrics-with-smallrye-not-working/10257/1 "2021-07-28T10:41:57Z")

</div>

Hey,

untill keycloak 12 we have used smallrye metrics (microprofile eclipse) to expose custom metrics.  
Since we upgraded to keycloak14 only the basic metrics are there (cpu)…

I found some post about that i have to add extensions etc, but noting works.  
Our environment is kubernetes…

What is the roadmap for metrics, doe we have to switch to some other component, we are stuck in getting our custom metrics back, one way or another…

Thanks

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [July 28, 2021, 11:21am UTC](https://forum.keycloak.org/t/keycloak-13-14-custom-metrics-with-smallrye-not-working/10257/2 "2021-07-28T11:21:19Z")

</div>

There’s a ticket for this and a workaround:

- [https://issues.redhat.com/browse/KEYCLOAK-18033](https://issues.redhat.com/browse/KEYCLOAK-18033)
- [GitHub - thomasdarimont/keycloak-13.0.1-docker-microprofile-workaround: Workaround for removed Smallrye / Microprofile components for Keycloak 13.0.x](https://github.com/thomasdarimont/keycloak-13.0.1-docker-microprofile-workaround)

---

<div class="post-metadata">

**Author:** ![rvanderboom](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rvanderboom/32/1463_2.png) [@rvanderboom](https://forum.keycloak.org/u/rvanderboom)\
**Post date:** [July 29, 2021, 11:53am UTC](https://forum.keycloak.org/t/keycloak-13-14-custom-metrics-with-smallrye-not-working/10257/3 "2021-07-29T11:53:18Z")

</div>

ok thanks,

so you mean i have to add the same workarround changes to our keycloak 14 container one ?

I wil give it a try… 😉

thanks
