grafana/pkg/setting
Joe Blubaugh 687e79538b
Alerting: Add a general screenshot service and alerting-specific image service. (#49293)
This commit adds a pkg/services/screenshot package for taking and uploading screenshots of Grafana dashboards. It supports taking screenshots of both dashboards and individual panels within a dashboard, using the rendering service.

The screenshot package has the following services, most of which can be composed:

BrowserScreenshotService (Takes screenshots with headless Chrome)
CachableScreenshotService (Caches screenshots taken with another service such as BrowserScreenshotService)
NoopScreenshotService (A no-op screenshot service for tests)
SingleFlightScreenshotService (Prevents duplicate screenshots when taking screenshots of the same dashboard or panel in parallel)
ScreenshotUnavailableService (A screenshot service that returns ErrScreenshotsUnavailable)
UploadingScreenshotService (A screenshot service that uploads taken screenshots)

The screenshot package does not support wire dependency injection yet. ngalert constructs its own version of the service. See https://github.com/grafana/grafana/issues/49296

This PR also adds an ImageScreenshotService to ngAlert. This is used to take screenshots with a screenshotservice and then store their location reference for use by alert instances and notifiers.
2022-05-22 22:33:49 +08:00
..
testdata
date_formats.go Dashboard: Add week start option to global and dashboard preferences (#40010) 2021-10-18 10:27:14 -03:00
date_formats_test.go
dynamic_settings_test.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
expanders.go SAML: Implement Name Templates for assertion_attribute_name option (#48022) 2022-04-27 16:29:15 -04:00
expanders_test.go
provider.go FeatureToggls: remove IsFeatureToggleEnabled from SettingsProvider (#44574) 2022-02-01 10:24:59 -08:00
setting.go Access Control: Remove built-in role assignment by default (#49058) 2022-05-19 09:29:36 +02:00
setting_azure.go Migrate to Grafana Azure SDK (#47232) 2022-04-04 11:23:13 +02:00
setting_azure_test.go Migrate to Grafana Azure SDK (#47232) 2022-04-04 11:23:13 +02:00
setting_dashboard_previews.go Previews: refactor (#47728) 2022-04-25 01:55:10 +04:00
setting_data_proxy.go Postgres/MySQL/MSSQL: Add setting to limit maximum amount of rows processed (#38986) 2021-09-13 15:27:51 +02:00
setting_feature_toggles.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
setting_feature_toggles_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
setting_plugins.go PluginsCatalog: Add backend support for hiding plugins in plugins catalog (#41563) 2021-11-15 10:53:35 +01:00
setting_plugins_test.go
setting_quota.go Alerting: Make Unified Alerting enabled by default for those who do not use legacy alerting (#42200) 2021-11-24 14:56:07 -05:00
setting_sentry.go
setting_session_test.go Logging: Unify logging fakes (#48822) 2022-05-06 17:44:22 +02:00
setting_smtp.go
setting_test.go Alerting: Disable unified alerting by default in Enterprise Grafana (#42476) 2021-11-29 20:51:15 +01:00
setting_unified_alerting.go Alerting: Add a general screenshot service and alerting-specific image service. (#49293) 2022-05-22 22:33:49 +08:00
setting_unified_alerting_test.go Alerting: Rename setting AlertForDuration to DefaultRuleEvaluationInterval (#45569) 2022-02-18 10:05:06 -05:00