JanssenProject / jans

An open source enterprise digital identity platform for CIAM or workforce... Janssen is a distribution of standards-based, developer friendly, components that are engineered to work together in any cloud. #OAuth #OpenID #FIDO
https://docs.jans.io
Apache License 2.0
477 stars 75 forks source link

docs(scim): create documentation for SCIM monitoring #4891

Open ossdhaval opened 1 year ago

ossdhaval commented 1 year ago

General Guidelines

Document Location

https://docs.jans.io/head/admin/scim/monitoring/

Suggested sections

Gluu documentation has SCIM related content. Search for SCIM to find relevant content for this document.

nynymike commented 1 year ago

I guess we need to know if the service is healthy, and in order to do that, just checking to see if the service is listening is probably not enough. A good monitoring service would excercise the database for at least a READ operation, and possible for a WRITE/DELETE operation.

Most monitoring systems can make HTTPS calls to services. But to call the SCIM endpoints, an OAuth token is needed. Perhaps we could provide a shell script that uses curl to show what is needed? And then people can figure out how to use that script or to implement something similar in their monitoring system.

ossdhaval commented 1 year ago

@jgomer2001 for comments.

I have seen monitoring services of two types primarily:

So, what @nynymike is proposing is somewhere in the middle. A heartbeat but which checks DB health as well.

We should keep in mind the usage pattern of a monitoring service when considering adding database interaction to it. The monitoring service may get called by a UI tool on a frequent basis. For example, to show a green-dot. Here they are expecting a heartbeat service with a quick response. Adding DB interaction may:

Net-net, I would suggest having two different services for each purpose.