087cf5a877
* Alerting: During legacy migration do not create one silence per rule During legacy migration every migrated rule is given a label rule_uid=<uid>. This is used to silence migrated alerts if they were: - Paused in legacy alerting. - Had Error state set to keep last state. - Had NoData state set to keep last state. This can potentially create a large amount of silences and a high cardinality label. Both of these scenarios have poor outcomes for CPU load and latency in unified alerting. Instead, this change opts to create one or more of three labels on each migrated alert rule as well as three silence rules: - migration_paused = true - migration_keep_last_state_error = true - migration_keep_last_state_nodata = true This will drastically reduce the number of created silence rules in most cases as well as not create the potentially high cardinalty label `rule_uid`.