# Add support for keycloak\_user\_events\_total metric in the Keycloak extension

**URL:** <https://community.dynatrace.com/t/add-support-for-keycloak-user-events-total-metric-in-the-keycloak-extension/53981>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [November 4, 2025, 11:50am UTC](https://community.dynatrace.com/t/add-support-for-keycloak-user-events-total-metric-in-the-keycloak-extension/53981 "2025-11-04T11:50:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andruccioli50](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@andruccioli50](https://community.dynatrace.com/u/andruccioli50)\
**Post date:** [November 4, 2025, 11:50am UTC](https://community.dynatrace.com/t/add-support-for-keycloak-user-events-total-metric-in-the-keycloak-extension/53981/1 "2025-11-04T11:50:44Z")

</div>

Hi community and Dynatrace team,

Currently, the Dynatrace Keycloak extension does not collect the metric keycloak\_user\_events\_total, even though it is exposed by the Prometheus endpoint.

This metric is particularly valuable for monitoring user-related activities such as logins, registrations, and other user events — which are essential for both security auditing and usage analytics.

It would be very helpful if the Keycloak extension could include keycloak\_user\_events\_total in its default metric list, so that teams can gain deeper visibility into user behavior without needing to develop and maintain a custom Prometheus extension.

**Use case example:**

- Track user login frequency and anomalies
- Correlate authentication events with application performance
- Detect spikes in failed logins for security monitoring

Adding this metric would make the Keycloak extension more complete and reduce the need for custom instrumentation.

The link to the extension we are using is this one:

> **[Keycloak extension](https://docs.dynatrace.com/docs/observe/infrastructure-observability/extensions/keycloak)**
>
> Monitor your identity management tool with a Prometheus-based extension.

Hope that this product idea will be integrated in future release,

Best regards,

Matteo

---

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [November 12, 2025, 11:16am UTC](https://community.dynatrace.com/t/add-support-for-keycloak-user-events-total-metric-in-the-keycloak-extension/53981/2 "2025-11-12T11:16:43Z")

</div>

Hi&nbsp;[@andruccioli50](https://community.dynatrace.com/user/74144)

Great idea, Matteo! To maximize its impact, I recommend submitting this suggestion in the **Product Ideas** section on the Dynatrace Community:  
[https://community.dynatrace.com/t5/Product-ideas/idb-p/DynatraceProductIdeas](https://community.dynatrace.com/category/DynatraceProductIdeas)

There, you can:

- Describe your request to include keycloak\_user\_events\_total
- Outline your use cases (login tracking, performance correlation, security monitoring)
- Invite other users to vote and comment

This will put your idea directly in front of Dynatrace Product Management and increase its chances of being prioritized in a future release.

Best regards,
