VictoriaMetrics/app/vmalert/notifier
Roman Khavronenko 0157566fdb vmalert: cleanup and restructure of code to improve maintainability (#471)
The change introduces new entity `manager` which replaces
`watchdog`, decouples requestHandler and groups. Manager
supposed to control life cycle of groups, rules and
config reloads.

Groups export an ID method which returns a hash
from filename and group name. ID supposed to be unique
identifier across all loaded groups.

Some tests were added to improve coverage.

Bug with wrong annotation value if $value is used in
 templates after metrics being restored fixed.

Notifier interface was extended to accept context.

New set of metrics was introduced for config reload.
2020-05-11 14:35:55 +03:00
..
alert_test.go app/vmalert: sync with master branch 2020-04-28 00:19:42 +03:00
alert.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
alertmanager_request.qtpl vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
alertmanager_request.qtpl.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
alertmanager_test.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
alertmanager.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
notifier.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
template_func.go app/vmalert: sync with master branch 2020-04-28 00:19:42 +03:00
utils.go app/vmalert: sync with master branch 2020-04-28 00:19:42 +03:00