[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
@@ -0,0 +1,32 @@
@lokiDatasourceID = 32
@prometheusDatasourceID = 875
@grafana = grafana
# unsupported loki backend
GET http://admin:admin@localhost:3000/alertmanager/{{lokiDatasourceID}}/config/api/v1/alerts
###
# unsupported cortex backend
GET http://admin:admin@localhost:3000/alertmanager/{{prometheusDatasourceID}}/config/api/v1/alerts
###
# grafana requests
GET http://admin:admin@localhost:3000/alertmanager/{{grafana}}/config/api/v1/alerts
###
DELETE http://admin:admin@localhost:3000/alertmanager/{{grafana}}/config/api/v1/alerts
###
POST http://admin:admin@localhost:3000/alertmanager/{{grafana}}/config/api/v1/alerts
content-type: application/json
< ./post-user-config.json
###
POST http://admin:admin@localhost:3000/alertmanager/{{grafana}}/api/v2/silences
content-type: application/json
< ./post-silence-data.json
###
GET http://admin:admin@localhost:3000/alertmanager/{{grafana}}/api/v2/silences