Example showing restriction usage in the monitoring module

fixes #4108