32 lines
901 B
HTTP
32 lines
901 B
HTTP
@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 |