By default, Applications Manager re-associates all child monitors with their respective Monitor Groups during every discovery cycle. This includes monitors that were manually removed from a group. If an auto-created Monitor Group was deleted, it is also recreated.
This behavior is controlled by the global configuration key: am.associate.existing.monitors.to.mg
| Property | Details |
|---|
| Default Value | true |
| Supported Values | true or false. Any other value is ignored, and the default (true) is applied. |
When true (default) | On every discovery poll, all child monitors - both newly discovered and already-existing ones that were manually dissociated - are queued for auto-association. If an auto-created Monitor Group was manually deleted, it will be
recreated. This ensures that discovered child monitors remain associated with their corresponding Monitor Groups. |
When false | Only newly discovered child monitors are queued for auto-association. Monitors that were manually removed from a Monitor Group are not re-added, and manually deleted Monitor Groups are only recreated if there are no newly discovered monitors to associate. |
To change this setting, update the key directly in the AM_GLOBALCONFIG table and restart Applications Manager for the change to take effect.
Step 1 - Check if the key already exists:
SELECT * FROM AM_GLOBALCONFIG WHERE NAME = 'am.associate.existing.monitors.to.mg';
Step 2a - If the key does NOT exist, insert it:
INSERT INTO AM_GLOBALCONFIG (NAME, VALUE) VALUES ('am.associate.existing.monitors.to.mg', 'false');
Step 2b - If the key already exists, update it:
UPDATE AM_GLOBALCONFIG SET VALUE = 'false' WHERE NAME = 'am.associate.existing.monitors.to.mg';
After making the change, restart Applications Manager for it to take effect.
This setting also affects the following behaviors:
- Manually dissociated monitors: If you manually remove a child monitor from an auto-created Monitor Group, it will be re-associated on the next discovery cycle when this key is
true. Set it to false to prevent this. - Manually deleted Monitor Groups: If you manually delete an auto-created Monitor Group, it will be recreated on the next discovery cycle when this key is
true. When set to false, the group is only recreated if there are newly discovered monitors to associate.
- To permanently stop Applications Manager from managing a Monitor Group, disable the Associate to Monitor Group option on the parent Azure monitor.