grafana/pkg/services/ngalert/notifier
Matthew Jacobson 0ce1ccd6f9
Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655)
AM config applied via API would use the PostableUserConfig as the AM raw
config and also the hash used to decide when the AM config has changed.
However, when applied via the periodic sync the PostableApiAlertingConfig would
be used instead.

This leads to two issues:
- Inconsistent hash comparisons when modifying the AM causing redundant applies.
- GetStatus assumed the raw config was PostableUserConfig causing the endpoint
to return correctly after a new config is applied via API and then nothing once
 the periodic sync runs.

Note: Technically, the upstream GrafanaAlertamanger GetStatus shouldn't be
returning PostableUserConfig or PostableApiAlertingConfig, but instead
GettableStatus. However, this issue required changes elsewhere and is out of
scope.
2024-01-31 21:05:30 +02:00
..
alertmanager_mock Alerting: Add methods for silences to the forked Alertmanager (#77805) 2023-11-08 12:03:40 +01:00
channels_config Alerting: Add support for responders to Opsgenie integration (#77159) 2023-10-27 13:06:46 -04:00
alertmanager_config.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
alertmanager_test.go Alerting: Use the forked Alertmanager for remote secondary mode (#79646) 2023-12-21 15:26:31 +01:00
alertmanager.go Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655) 2024-01-31 21:05:30 +02:00
alerts.go Alerting: Fetch alerts from a remote Alertmanager (#75844) 2023-10-19 11:27:37 +02:00
compat_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
compat.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
config_test.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
config.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
crypto.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
email_test.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
file_store_test.go Alerting: Add GetFullState method to FileStore (#78701) 2023-11-28 15:34:45 +01:00
file_store.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
images_test.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
images.go Alerting: Bump grafana/alerting and refactor the ImageStore/Provider to provide image URL/bytes (#70182) 2023-06-21 20:53:30 -03:00
log.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
multiorg_alertmanager_remote_test.go Alerting: Refactor provisioning tests/fakes (#81205) 2024-01-24 17:15:55 -05:00
multiorg_alertmanager_test.go Alerting: Refactor provisioning tests/fakes (#81205) 2024-01-24 17:15:55 -05:00
multiorg_alertmanager.go Alerting: Use the forked Alertmanager for remote secondary mode (#79646) 2023-12-21 15:26:31 +01:00
receivers_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
receivers.go Alerting: Fetch receivers from remote Alertmanager (#76841) 2023-10-20 11:34:17 +02:00
redis_channel_test.go Alerting: Add support for running HA using Redis (#65267) 2023-04-19 17:05:26 +02:00
redis_channel.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
redis_peer.go Alerting: Update alerting package and imports from cluster and clusterpb (#79786) 2023-12-21 12:34:48 +01:00
sender.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
silences.go Alerting: Manage remote Alertmanager silences (#75452) 2023-10-02 07:36:11 -03:00
status.go Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655) 2024-01-31 21:05:30 +02:00
templates_test.go Alerting: Template Testing API (#67450) 2023-04-28 15:56:59 +01:00
templates.go Alerting: Use interfaces for the Alertmanager (#73900) 2023-09-06 07:59:29 -03:00
testing.go Alerting: Test MOA in remote secondary mode (#79828) 2024-01-05 11:05:27 +01:00