Skip to content

Monitoring and health

What RealmSSO records about your account, the API that reads it, and the two health endpoints.

What this page covers

The status page runs a live check from your browser.

This page covers two other things. It covers what RealmSSO records about your account. It also covers the health endpoints of the API.

Two kinds of record

RealmSSO keeps two kinds of record for each account. Do not mix them up. An observability event says what happened, how long it took and whether it failed.

The audit log says who changed what through the RealmSSO API. This page covers events. See Audit log for the audit log.

Observability events

Each event has an eventType, a status and an optional duration in milliseconds. A failed event can also carry an errorMessage. Each event belongs to one accountId. It can also name a connectionId.

RealmSSO writes these event types today.

eventTypeRecorded when
connection.health_checkSomeone runs a connection check with POST /api/v1/connections/:id/test, in the dashboard or the API.
scim.provisioned, scim.updated, scim.deprovisionedA SCIM client creates, updates or deletes a directory user. Deactivating a user records scim.updated.
scim.group_provisioned, scim.group_updated, scim.group_deprovisionedA SCIM client creates, updates or deletes a directory group.
login.successA user signs in through one of the account’s connections, and RealmSSO reads the sign-in from the realm. An IT admin who opens the Admin Portal with an invite link also records one.
login.failureA sign-in through one of the account’s connections fails, and RealmSSO reads it from the realm. An invite link that is used or expired, presented without a portal session, also records one.

SCIM writes record events. SCIM reads do not. RealmSSO writes each event in the background. It never fails or delays the request that the event describes.

Sign-in events come from two writers

The Admin Portal records login.success and login.failure when an IT admin uses an invite link. RealmSSO also reads sign-in events from each account's realm. It does this about every 60 seconds.

So an event can be about a minute behind the sign-in. RealmSSO is not on the browser login path, so it reads these events after the sign-in.

Dashboard totals are account-wide. The read routes filter by accountId, eventType, status and since. loginRate is null, not a percentage, when the window holds no login events.

Connection checks

A connection check runs when someone asks for it. It confirms that the connection's identity provider exists and is enabled. For a connection set up from a metadata URL, it reads the metadata again.

You run a check in the dashboard or the API. The IT admin can run a connection test in the Admin Portal. That test includes this check and a sign-in test. A check records healthy or down.

For a SAML connection, a check shows when its certificate has expired or expires within 30 days. The flag uses the certificate RealmSSO stored when the connection was last saved. Update the connection after the IdP rotates its certificate.

Dashboard API

Four read routes accept a dashboard session or an API key. Each call reads one account, set by the accountId query parameter. No route shows more than one account.

A dashboard session needs a membership on that account. The viewer role is enough, because all four routes only read. An API key must belong to that account and carry the scope observability:read or *. Without either, the call returns 403. See Access control.

GET/api/v1/observability/stats

Counts for a window, with a loginRate. The default window is the last 24 hours.

GET/api/v1/observability/events

A paged feed of raw events. You can filter by eventType and status. A page holds up to 200 events.

GET/api/v1/observability/timeline

Counts in hourly or daily buckets for one eventType, for charts. Read it through the API.

GET/api/v1/observability/connection-health

Every connection in the account, with a count of healthy, degraded, down and unknown.

The dashboard shows one account at a time. For the account you pick, it shows sign-in counts, SCIM counts, a health summary and the 50 latest events.

Events are kept 90 days by default

RealmSSO purges events older than 90 days from its own database. The purge runs each time the sign-in event poll runs. The sign-in service expires its own event store on the same window.

Retention does not purge the audit log. Audit rows are deleted with the account. Events carry an email address and an IP address. They outlast the account until the purge, up to 90 days.

Health endpoints

Two endpoints exist at the server root, not under /api/v1. They have different jobs.

EndpointWhat it checksPurpose
GET /healthNothing. It shows only that the process is up.Liveness
GET /readyzThe services the API depends on. If one is down, it returns 503.Whether the API can serve requests

The /readyz endpoint answers without authentication on api.realmsso.com. The status page reads it from your browser.