# Accessing metrics using prometheus

**URL:** <https://forum.keycloak.org/t/accessing-metrics-using-prometheus/19534>\
**Category:** Configuring the server\
**Created:** [January 11, 2023, 2:22pm UTC](https://forum.keycloak.org/t/accessing-metrics-using-prometheus/19534 "2023-01-11T14:22:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TafkaMax](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/tafkamax/32/6796_2.png) [@TafkaMax](https://forum.keycloak.org/u/TafkaMax)\
**Post date:** [January 11, 2023, 2:22pm UTC](https://forum.keycloak.org/t/accessing-metrics-using-prometheus/19534/1 "2023-01-11T14:22:34Z")

</div>

Hi

I have setup a keycloak instance with:

KC\_METRICS\_ENABLED=True  
KC\_HEALTH\_ENABLED=True

and [GitHub - aerogear/keycloak-metrics-spi: Adds a Metrics Endpoint to Keycloak](https://github.com/aerogear/keycloak-metrics-spi) is included in the [quay.io](http://quay.io)

The problem is that how do I access that ?

> Events in other Realms can be enabled by manually adding the ‘metrics-listener’ in Events → Config.

But there is not metrics-listener?!

[https://issues.redhat.com/browse/AEROGEAR-3074](https://issues.redhat.com/browse/AEROGEAR-3074)

[https://www.keycloak.org/docs/latest/server\_admin/index.html#configuring-auditing-to-track-events](https://www.keycloak.org/docs/latest/server_admin/index.html#configuring-auditing-to-track-events)

Events in server\_admin never mention anything about metrics-listener.

---

<div class="post-metadata">

**Author:** ![timotheos](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/timotheos/32/10071_2.png) [@timotheos](https://forum.keycloak.org/u/timotheos)\
**Post date:** [June 19, 2023, 9:27am UTC](https://forum.keycloak.org/t/accessing-metrics-using-prometheus/19534/2 "2023-06-19T09:27:30Z")

</div>

Hello!

Didi you manage to find the efficient way for using metrics with Prometheus?
