mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
71e70c424f
* Alerting: During legacy migration reduce the number of created silences During legacy migration every migrated rule was given a label rule_uid=<uid>. This was used to silence DatasourceError/DatasourceNoData alerts for migrated rules that had either ExecutionErrorState/NoDataState set to keep_state, respectively. This could 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 creates one label per ExecutionErrorState/NoDataState when they are set to keep_state as well as two silence rules, if rules with said labels were created during migration. These silence rules are: - __legacy_silence_error_keep_state__ = true - __legacy_silence_nodata_keep_state__ = true This will drastically reduce the number of created silence rules in most cases as well as not create the potentially high cardinality label `rule_uid`. |
||
---|---|---|
.. | ||
models | ||
store | ||
alert_rule_test.go | ||
alert_rule.go | ||
channel_test.go | ||
channel.go | ||
cond_trans_test.go | ||
cond_trans.go | ||
migration_test.go | ||
models.go | ||
permissions_test.go | ||
permissions.go | ||
persist.go | ||
securejsondata.go | ||
service_test.go | ||
service.go | ||
silences_test.go | ||
silences.go | ||
template_test.go | ||
template.go | ||
testing.go | ||
ualert_test.go | ||
ualert.go |