@since 11.1.0
Monitoring agenda is available under ``System`` - ``Monitoring`` main menu.
Agenda shows monitoring results and configured monitoring evaluators. Configured evaluators creates monitoring results about CzechIdM application state (e.g. synchronization is running, contains errors). Each evaluator provides one monitoring result. Last monitoring results (by monitoring evaluator) with warning and error level are shown in top navigation:
Monitoring evaluator can be provided from custom module.
Common monitoring evaluator configuration properties:
Custom module can define additional configuration properties, which are required by evaluator implementation.
Warning about H2 database usage ⇒ H2 database is not supposed to be used for production environment.
Warning about demo admin credentials are used.
Warning about too many records in database table.
threshold
) - Warning will be shown, when number of records in database table will be higher.service-bean-name
) - Checked database table (checked type of record).Check synchronization execution.
synchronization
) - Checked synchronization.Synchronization monitoring evaluator is created / deleted automatically after synchronization configuration is created or deleted.
# disable / enable processor idm.sec.acc.processor.acc-sync-config-monitoring-auto-configuration-processor.enabled=false
@since 11.2.0
Warning about errors in provisioning queue.
numberofdays
) - Errors not older than given number of days.@since 11.2.0
Warning about errors in event queue.
numberofdays
) - Errors not older than given number of days.@since 12.1.0
Check, that not too many threads are waiting for entity event lock. CzechIdM only allows a single thread at a time to access the entity event queue. Having too many threads waiting for this lock may indicate some problems with the environment.
numberofdays
) - Errors not older than given number of days.@since 11.2.0
Warning about errors in long running task queue.
numberofdays
) - Errors not older than given number of days.@since 12.1.0
Warning about errors in processed items in long-running tasks. This monitoring fails for tasks, that contain failed items among their processed items no matter the result of the task itself.
numberofdays
) - Errors not older than given number of days.@since 11.2.0
Warning about errors in logging events.
numberofdays
) - Errors not older than given number of days.Person can configure monitoring evaluators, read and update monitoring results.
Set the role authorization policies as follows:
Person can read monitoring results (~ read application state).
Set the role authorization policies as follows:
Examples of execute and get monitoring results. You can use swagger for run examples bellow or to find atry all available endpoints for monitoring.
Monitoring code can be configured for user frienlty rest url. Uuid monitoring identifier is required otherwise.
Examples bellow uses demo admin/admin credetials and IdM runs on localhost.
curl -X PUT "http://localhost:8080/idm-backend/api/v1/monitorings/provisioning-queue-monitoring/execute" -H "accept: */*" -H "authorization: Basic YWRtaW46YWRtaW4="
Execute monitoring synchronously and get the current result as IdmMonitoringResultDto in json.
curl -X GET "http://localhost:8080/idm-backend/api/v1/monitorings/provisioning-queue-monitoring/last-result" -H "accept: */*" -H "authorization: Basic YWRtaW46YWRtaW4="
Get the last result as IdmMonitoringResultDto in json.
curl -X GET "http://localhost:8080/idm-backend/api/v1/monitoring-results?lastResult=true&size=500" -H "accept: */*" -H "authorization: Basic YWRtaW46YWRtaW4="