[Alerting] Forking alert manager API (#32300)

* Alertmanager lotex ruler

* Apply suggestions from code review
This commit is contained in:
Sofia Papagiannaki
2021-03-29 18:18:25 +03:00
committed by GitHub
parent 740c5813d4
commit c4d5a67b38
8 changed files with 371 additions and 33 deletions

View File

@@ -50,7 +50,11 @@ func (api *API) RegisterAPIEndpoints() {
proxy := &AlertingProxy{
DataProxy: api.DataProxy,
}
api.RegisterAlertmanagerApiEndpoints(AlertmanagerApiMock{log: logger})
api.RegisterAlertmanagerApiEndpoints(NewForkedAM(
api.DatasourceCache,
NewLotexAM(proxy, logger),
AlertmanagerApiMock{log: logger},
))
api.RegisterPrometheusApiEndpoints(NewForkedProm(
api.DatasourceCache,
NewLotexProm(proxy, logger),