Performing real-time updates to tags for cloud resources
You can set up cloud events processing and map a tag policy to update tags for cloud resources in real time.
Prerequisites
- Cloud events table [sn_cmp_cloud_events] table does not have any records in the processed state.
- CIs impacted by tag change events are identified by either CAPI or Discovery and Service Mapping patterns.
- Configured at least one tag policy.
- Select the Run on cloud events check box in the tag policy you create.
Instructions depend on the cloud provider
Process cloud events related to changes in tags and execute tag audits on the events in real time.
Unlike regular tag audits, where the audit is performed on all CIs in the CMDB that the tag policy applies to, tag events are processed per CI. Based on the prerequisites, tag event processing occurs on events that are identified with a tag change. The impacted CI is identified and, if the associated policy is applicable to the CI, the tag policy is run on the identified CI.
If the Run on cloud events check box is selected during policy creation, the policy is selected to run an audit on tag change events. If the check box is cleared, the audit is not run on the CI even if there are tag change cloud events.
View the change type that applies to the tag (the change that triggered the audit) in the Tag Change Log [sn_itom_tag_change_log] table. The records in the table are stored for 90 days by default. The change log records appear whether a remediation run or an event triggered the change on the CI. You can also view tags that were added or updated as part of the change.
Optimizing performance
- [sn_itom_tag.azure_window_size] - This system property is configurable (in minutes).
- [sn_itom_tag.max_audit_lag_ratio] - Specify the lag between tag audits that are already running, before the audit triggers on the records ready for audit.
- [sn_itom_tag.policy_batch_size] - Batch size on which the tag audit is run.
- [sn_itom_tag.event_batch_size] - Event batch size to be processed.