Example - alert when number of sessions waiting to be indexed grows too large
About this task
When sessions are closed, they are moved from the Short-Term Canister to the Long-Term Canister, where they are queued for indexing. If the session indexer is unable to index the queued sessions fast enough, the queue can grow and grow. This unhealthy situation should be investigated.
In the following example, you can configure a canister alert to issue an alert when the number of queued sessions exceeds 1,000.
Note: For testing purposes, you may want to set
this to a low value that you know is exceeded. Remember to reset the
alert to appropriate threshold values after you tested it.