[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
+2
View File
@@ -49,6 +49,8 @@ func backendType(ctx *models.ReqContext, cache datasources.CacheService) (apimod
switch ds.Type {
case "loki", "prometheus":
return apimodels.LoTexRulerBackend, nil
case "grafana-alertmanager-datasource":
return apimodels.AlertmanagerBackend, nil
default:
return 0, fmt.Errorf("unexpected backend type (%v)", ds.Type)
}