grafana/pkg/setting
Matthew Jacobson 3228b64fe6
Alerting: Resend resolved notifications for ResolvedRetention duration (#88938)
* Simple replace of State.Resolved with State.ResolvedAt

* Retain ResolvedAt time between Normal->Normal transition

* Introduce ResolvedRetention to keep sending recently resolved alerts

* Make ResolvedRetention configurable with resolved_alert_retention

* Tick-based LastSentAt for testing of ResendDelay and ResolvedRetention

* Do not reset ResolvedAt during Normal->Pending transition

Initially this was done to be inline with Prom ruler. However, Prom ruler
doesn't keep track of Inactive->Pending/Alerting using the same alert instance,
so it's more understandable that they choose not to retain ResolvedAt. In our
case, since we use the same cached instance to represent the transition, it
makes more sense to retain it.

This should help alleviate some odd situations where temporarily entering
Pending will stop future resolved notifications that would have happened
because of ResolvedRetention.

* Pointers for ResolvedAt & LastSentAt

To avoid awkward time.Time{}.Unix() defaults on persist
2024-06-20 16:33:03 -04:00
..
testdata Config: Show user-friendly error message instead of stack trace (#16564) 2019-04-25 08:29:07 +02:00
date_formats_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
date_formats.go Prometheus: Support 1ms resolution intervals (#44707) 2022-06-29 07:39:50 +02:00
dynamic_settings_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
expanders_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
expanders.go imagestorage: fix templating of public_url option for webdav (#74885) 2023-09-28 00:35:10 +03:00
provider.go samlsettings: api integration (#84300) 2024-03-25 10:54:45 +01:00
setting_auth_proxy.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
setting_azure_test.go Azure: Fix for username assertion (#87853) 2024-05-16 11:50:02 -05:00
setting_azure.go Azure: Load custom clouds from ini file (#87667) 2024-05-24 17:40:04 +01:00
setting_cloud_migration.go Cloud migrations: create route to delete token (#88297) 2024-05-31 10:03:43 -03:00
setting_data_proxy.go Docs: Aligning fallback values with documentation (#83617) 2024-03-13 11:19:04 +02:00
setting_feature_toggles_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
setting_feature_toggles.go Settings: Actually deprecate access to feature flags (#78073) 2023-11-13 11:39:01 -08:00
setting_featuremgmt.go Feature Toggles API: Trigger webhook call when updating (#75254) 2023-09-25 19:11:24 +01:00
setting_grafana_javascript_agent.go Unify frontend monitoring (#80075) 2024-02-01 15:08:40 +01:00
setting_jwt.go ext_jwt: streamline expected aud in access tokens and id tokens (#87401) 2024-05-07 11:20:16 -07:00
setting_plugins_test.go Plugins: Add forward_host_env_vars setting (#79333) 2023-12-13 11:25:17 +02:00
setting_plugins.go Plugins: Add forward_host_env_vars setting (#79333) 2023-12-13 11:25:17 +02:00
setting_quota.go Alerting: Guided legacy alerting upgrade dry-run (#80071) 2024-01-05 18:19:12 -05:00
setting_search.go Search: Add search index configuration options (#55525) 2022-09-20 19:09:55 -04:00
setting_secure_socks_proxy_test.go Plugins: Pass PDC file contents in requests (#84783) 2024-03-22 13:52:24 +01:00
setting_secure_socks_proxy.go chore(perf): Pre-allocate where possible (enable prealloc linter) (#88952) 2024-06-14 14:16:36 -04:00
setting_session_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
setting_smtp_test.go Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00
setting_smtp.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
setting_storage.go Storage: externalize allow_unsanitized_svg_upload (#52703) 2022-07-25 21:11:17 +04:00
setting_test.go Alerting: Disable legacy alerting for ever (#83651) 2024-03-07 16:01:11 -05:00
setting_unified_alerting_test.go Alerting: Add ha_reconnect_timeout configuration option (#88823) 2024-06-11 13:25:48 -04:00
setting_unified_alerting.go Alerting: Resend resolved notifications for ResolvedRetention duration (#88938) 2024-06-20 16:33:03 -04:00
setting.go E2E: Add SMTP tester (#88392) 2024-06-18 14:32:19 +02:00
settings_zanzana.go Zanzana: Initial work to run openFGA as embedded or standalone service (#89211) 2024-06-18 10:04:18 +02:00