title: Monitoring Keycloak user federation
body: <p>I am using LDAP as User federation for my Keycloak instance. Is there a supported way to monitor LDAP events like syncErrors/successfulImports, userUpdates and etc? Preferably
  through Prometheus metrics endpoint. Im aware of &quot;aerogear/keycloak-metrics-spi&quot; extension, but looks like it doesnt expose any metrics related to user federation.</p>
  <p>If I understand Keycloak monitoring innerworks correctly, Keycloak should be issuing user federation related &quot;events&quot;. When I inspect available events at <a href="https://www.keycloak.org/docs-api/11.0/javadocs/org/keycloak/events/EventType.html" rel="nofollow noreferrer">documentation</a> there seems to be only 4 events that resemblence what Im looking for (see image attached). But even these events are not enough for me. <a href="https://i.stack.imgur.com/tKuv3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tKuv3.png" alt="enter image description here" /></a></p>