Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746)
* Remove `ngalert` feature toggle * Update frontend Remove all references of ngalert feature toggle * Update docs * Disable unified alerting for specific orgs * Add backend tests * Apply suggestions from code review Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Disabled unified alerting by default * Ensure backward compatibility with old ngalert feature toggle * Apply suggestions from code review Co-authored-by: gotjosh <josue@grafana.com>
This commit is contained in:
committed by
GitHub
parent
2dedbcd3c3
commit
012d4f0905
@@ -0,0 +1,28 @@
|
||||
###
|
||||
# set external Alertmanager
|
||||
POST http://admin:admin@localhost:3000/api/v1/ngalert/admin_config
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"alertmanagers": ["http://localhost:9093"]
|
||||
}
|
||||
|
||||
###
|
||||
GET http://admin:admin@localhost:3000/api/v1/ngalert/admin_config
|
||||
|
||||
###
|
||||
# after a few minutes it should be discovered
|
||||
GET http://admin:admin@localhost:3000/api/v1/ngalert/alertmanagers
|
||||
|
||||
###
|
||||
# remove it
|
||||
POST http://admin:admin@localhost:3000/api/v1/ngalert/admin_config
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"alertmanagers": []
|
||||
}
|
||||
|
||||
###
|
||||
# check again
|
||||
GET http://admin:admin@localhost:3000/api/v1/ngalert/alertmanagers
|
||||
Reference in New Issue
Block a user