Making metrics with labels for embedded Infinispan the default
Closes #25935 Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
parent
d1d1d69840
commit
badf3f461d
4 changed files with 31 additions and 2 deletions
|
@ -117,3 +117,10 @@ will be shown.
|
|||
|
||||
In addition to that, a new error (`EMAIL_ALREADY_VERIFIED`) event will be fired to indicate an attempt to verify an already verified email. You can
|
||||
use this event to track possible attempts to hijack user accounts in case the link has leaked or to alert users if they do not recognize the action.
|
||||
|
||||
= Infinispan metrics use labels for cache manager and cache names
|
||||
|
||||
When enabling metrics for {project_name}'s embedded caches, the metrics now use labels for the cache manager and the cache names.
|
||||
|
||||
For more details, check the
|
||||
link:{upgradingguide_link}[{upgradingguide_name}].
|
||||
|
|
|
@ -143,3 +143,23 @@ and potentially introduce unexpected changes and behavior that should only affec
|
|||
|
||||
If you have customizations to the `login-update-profile.ftl` template to customize how users update their profiles when authenticating through a broker, make sure to move your changes
|
||||
to the new template.
|
||||
|
||||
= Infinispan metrics use labels for cache manager and cache names
|
||||
|
||||
When enabling metrics for {project_name}'s embedded caches, the metrics now use labels for the cache manager and the cache names.
|
||||
|
||||
.Old metric example without labels
|
||||
----
|
||||
vendor_cache_manager_keycloak_cache_sessions_statistics_approximate_entries_in_memory{cache="sessions",node="..."}
|
||||
----
|
||||
|
||||
.New metric example with labels
|
||||
----
|
||||
vendor_statistics_approximate_entries_in_memory{cache="sessions",cache_manager="keycloak",node="..."}
|
||||
----
|
||||
|
||||
To revert the change for an installation, use a custom Infinispan XML configuration and change the configuration as follows:
|
||||
|
||||
----
|
||||
<metrics names-as-tags="false" />
|
||||
----
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
<cache-container name="keycloak">
|
||||
<transport lock-timeout="60000"/>
|
||||
<metrics names-as-tags="true" />
|
||||
<local-cache name="realms" simple-cache="true">
|
||||
<encoding>
|
||||
<key media-type="application/x-java-object"/>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
xmlns="urn:infinispan:config:14.0">
|
||||
|
||||
<cache-container name="keycloak">
|
||||
<metrics names-as-tags="true" />
|
||||
<local-cache name="default">
|
||||
<transaction transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup"/>
|
||||
</local-cache>
|
||||
|
|
Loading…
Reference in a new issue