grafana/pkg/services/ngalert/api
Alex Moreno 45facbba11
Alerting: Remove url based external alertmanagers config (#57918)
* Remove URL-based alertmanagers from endpoint config

* WIP

* Add migration and alertmanagers from admin_configuration

* Empty comment removed

* set BasicAuth true when user is present in url

* Remove Alertmanagers from GET /admin_config payload

* Remove URL-based alertmanager configuration from UI

* Fix new uid generation in external alertmanagers migration

* Fix tests for URL-based external alertmanagers

* Fix API tests

* Add more tests, move migration code to separate file, and remove possible am duplicate urls

* Fix edge cases in migration

* Fix imports

* Remove useless fields and fix created_at/updated_at retrieval

Co-authored-by: George Robinson <george.robinson@grafana.com>
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
2022-11-10 16:34:13 +01:00
..
test-data Alerting: Modify endpoint for testing a datasource rule using the UID (#48070) 2022-05-17 14:10:20 +03:00
tooling Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
api_alertmanager_guards_test.go Alerting: Add provenance guard to config api (#50147) 2022-06-04 14:55:46 +02:00
api_alertmanager_guards.go Alerting: Add provenance guard to config api (#50147) 2022-06-04 14:55:46 +02:00
api_alertmanager_test.go Chore: Add user service method SetUsingOrg and GetSignedInUserWithCacheCtx (#53343) 2022-08-11 13:28:55 +02:00
api_alertmanager.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
api_configuration_test.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
api_configuration.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
api_prometheus_test_fixtures.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules (#45969) 2022-03-14 10:39:20 +00:00
api_prometheus_test.go Alerting: Move fake rule store to the test utilities package (#56062) 2022-09-30 14:36:51 -05:00
api_prometheus.go Alerting: Persist annotations from multidimensional rules in batches (#56575) 2022-11-04 10:39:26 -05:00
api_provisioning_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
api_provisioning.go Alerting: Fix response is not returned for invalid Duration in Provisioning API (#58046) 2022-11-02 08:21:23 -04:00
api_ruler_test.go Alerting: Move fake rule store to the test utilities package (#56062) 2022-09-30 14:36:51 -05:00
api_ruler_validation_test.go Rename Acl to ACL (#52342) 2022-07-18 15:14:58 +02:00
api_ruler_validation.go Alerting: Refactor rule interval validation to be reusable (#57792) 2022-10-28 14:40:11 +00:00
api_ruler.go Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02:00
api_testing_test.go Alerting: Condition evaluator with cached pipeline (#57479) 2022-11-02 10:13:39 -04:00
api_testing.go Alerting: Condition evaluator with cached pipeline (#57479) 2022-11-02 10:13:39 -04:00
api.go Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02:00
authorization_test.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
authorization.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
configuration.go Alerting: New API endpoint GET /api/v1/ngalert (#55134) 2022-09-14 14:03:10 -04:00
errors.go Alerting: Update forking request handlers to use the same errors (#52965) 2022-08-02 09:33:59 -04:00
forking_alertmanager.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
forking_prometheus.go Alerting: Update forking request handlers to use the same errors (#52965) 2022-08-02 09:33:59 -04:00
forking_ruler.go Alerting: Update forking request handlers to use the same errors (#52965) 2022-08-02 09:33:59 -04:00
generated_base_api_alertmanager.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
generated_base_api_configuration.go Alerting: New API endpoint GET /api/v1/ngalert (#55134) 2022-09-14 14:03:10 -04:00
generated_base_api_prometheus.go Alerting: Refactor API types generation with different names. (#51785) 2022-07-18 03:08:08 -04:00
generated_base_api_provisioning.go Alerting: Extend PUT rule-group route to write the entire rule group rather than top-level fields only (#53078) 2022-08-10 12:33:41 -05:00
generated_base_api_ruler.go Alerting: Refactor API types generation with different names. (#51785) 2022-07-18 03:08:08 -04:00
generated_base_api_testing.go Alerting: Refactor API types generation with different names. (#51785) 2022-07-18 03:08:08 -04:00
lotex_am.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00
lotex_prom.go Alerting: modify prometheus endpoints for proxying using the datasource UID (#48052) 2022-05-06 15:05:02 -04:00
lotex_ruler_test.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
lotex_ruler.go Alerting: Fix feedback (#57922) 2022-11-02 22:36:14 +00:00
persist.go Revert "Chore: Refactor quota service (#57586)" (#58394) 2022-11-08 11:52:07 +02:00
promql_compat_test.go Alerting/testing promql extraction (#34665) 2021-05-25 11:54:50 -04:00
promql_compat.go Alerting: check upstream response content type in lotex proxy (#34760) 2021-05-27 14:12:29 +03:00
provisioning.go Alerting: Extend PUT rule-group route to write the entire rule group rather than top-level fields only (#53078) 2022-08-10 12:33:41 -05:00
testing_api.go Alerting: Refactor API types generation with different names. (#51785) 2022-07-18 03:08:08 -04:00
testing.go Alerting: Remove mis-behaving fake and fix masked test failure in AM config API (#47747) 2022-04-13 19:31:57 -05:00
util_test.go Alerting: Update rules delete endpoint to handle rules in group (#53790) 2022-08-24 15:33:33 -04:00
util.go Alerting: Fix "Not Implemented" responses (#57710) 2022-10-26 23:35:52 -03:00