grafana/pkg/services
Matthew Jacobson 0424d44b39
Alerting: In migration, create one label per channel (#76527)
* In migration, create one label per channel

This PR changes how routing is done by the legacy alerting migration.

Previously, we created a single label on each alert rule that contained an array of contact point names. Ex: __contact__="slack legacy testing","slack legacy testing2"

This label was then routed against a series of regex-matching policies with continue=true. Ex: __contacts__ =~ .*"slack legacy testing".*

In the case of many contact points, this array could quickly become difficult to manage and difficult to grok at-a-glance.

This PR replaces the single __contact__ label with multiple __legacy_c_{contactname}__ labels and simple equality-matching policies. These channel-specific policies are nested in a single route under the top-level route which matches against __legacy_use_channels__ = true for ease of organization.

This should improve the experience for users wanting to keep the default migrated routing strategy but who also want to modify which contact points an alert sends to.
2023-12-19 13:25:13 -05:00
..
accesscontrol [IAM] - Add swagger docs for resource permissions API (#79525) 2023-12-18 16:47:17 -06:00
alerting Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
annotations Annotations/Alerting: Add Loki historian store stub (#78363) 2023-12-12 17:43:09 -05:00
anonymous Anon: Small fixes to anon service structure (#79566) 2023-12-15 15:15:04 +01:00
apikey Swagger: Rename API Key AddCommand (#78491) 2023-11-21 11:25:21 -05:00
auth Auth: Add more context to logs around token rotation, revocation (#78600) 2023-11-23 16:48:54 +01:00
authn Authn: Handle logout logic in auth broker (#79635) 2023-12-19 10:17:28 +01:00
caching Fixing typos (#70487) 2023-06-22 09:43:38 +01:00
cleanup Tracing: Standardize on otel tracing (#75528) 2023-10-03 14:54:20 +02:00
contexthandler Auth: id response header (#77871) 2023-11-29 15:51:13 +01:00
correlations Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface (#76113) 2023-10-09 10:40:19 +02:00
dashboardimport Chore: Deprecate ID from Folder (#78281) 2023-11-20 15:44:51 -05:00
dashboards Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder (#78465) 2023-12-05 16:13:31 +01:00
dashboardsnapshots Snapshots: Do not return internal database ids (#77672) 2023-11-06 06:53:52 -08:00
dashboardversion Chore: Deprecate FolderID from SaveDashboardCommand (#77813) 2023-11-15 11:21:02 -05:00
datasourceproxy Errors: Make errors the same in dev as prod (#77366) 2023-10-30 14:06:26 -04:00
datasources Plugins: Add option to disable TLS in the socks proxy (#79246) 2023-12-14 12:16:32 -03:00
encryption Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
extsvcauth Chore: Fix flaky test by removing the extsvcauth background service (#79044) 2023-12-04 22:26:55 +01:00
featuremgmt InfluxDB: Enable SQL support by default (#79474) 2023-12-19 14:12:36 +01:00
folder Nested Folders: Fix /api/folders pagination (#79447) 2023-12-15 19:34:08 +02:00
grafana-apiserver K8s: Refactor authorization initialization (#79670) 2023-12-19 19:12:35 +02:00
grpcserver FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
guardian Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder (#78465) 2023-12-05 16:13:31 +01:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks (#73227) 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible (#67307) 2023-06-19 23:44:01 +02:00
ldap Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
libraryelements Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder (#78465) 2023-12-05 16:13:31 +01:00
librarypanels Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder (#78465) 2023-12-05 16:13:31 +01:00
licensing Chore: Clean up old navigation (#66287) 2023-04-14 09:43:11 +01:00
live Live: Default to local engine if redis is unavailable (#77467) 2023-11-08 12:22:26 +00:00
login Chore: Configure SkipOrgRoleSync from OAuthInfo for OAuth connectors (#79443) 2023-12-15 10:58:08 +01:00
loginattempt Chore: capitalise log message for auth packages (#74332) 2023-09-04 18:49:47 +02:00
navtree PublicDashboards: Add setting to disable the feature (#78894) 2023-12-19 11:43:54 +01:00
ngalert Alerting: In migration, create one label per channel (#76527) 2023-12-19 13:25:13 -05:00
notifications Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00
oauthtoken Auth: Use SSO settings service to load social connectors + refactor (#79005) 2023-12-08 11:20:42 +01:00
org Chore: delete team related entries for an org after the org gets deleted (#76706) 2023-10-18 10:40:26 +01:00
playlist K8s: Implement playlist api with k8s client (#77405) 2023-10-31 10:26:39 -07:00
plugindashboards Chore: Remove FolderID from Dashboard Import (#78832) 2023-12-13 12:03:23 +01:00
pluginsintegration Plugins: Add backend check for app page role access (#78269) 2023-12-18 16:12:46 +01:00
preference Preferences: Remove SQLX backing store (#78015) 2023-11-13 06:22:22 -08:00
provisioning Chore: Remove folderID from dashboardIdentity tests (#79195) 2023-12-13 10:50:46 +01:00
publicdashboards PublicDashboards: Add setting to disable the feature (#78894) 2023-12-19 11:43:54 +01:00
query Chore: Upgrade Go to 1.21.3 (#77304) 2023-11-01 09:17:38 -07:00
queryhistory Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
quota Alerting: Fix deleting rules in a folder with matching UID in another organization (#78258) 2023-12-04 11:34:38 +02:00
rendering Plugins: Make renderer service load renderer plugin (#77854) 2023-12-14 17:33:29 +01:00
screenshot Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
search Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
searchusers Team: Support sort query param for teams search endpoint (#75622) 2023-09-28 18:20:51 +03:00
searchV2 Chore: Deprecate FolderID from Dashboard (#77823) 2023-11-15 10:28:50 -05:00
secrets Auth: encrypt secrets for oauth providers in SSO settings API service (#79081) 2023-12-06 14:37:10 +02:00
serviceaccounts ExtSvcAuth: Assign roles locally (#78669) 2023-11-29 12:12:30 +01:00
shorturls Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
signingkeys Siningkeys: Fix test setup (#76333) 2023-10-11 13:50:38 +02:00
sqlstore Chore: Move folder sync logic into one-shot migration (#78985) 2023-12-12 17:13:47 +01:00
ssosettings Auth: Add swagger metadata for the update SSO Settings endpoint (#79580) 2023-12-18 11:18:19 +02:00
star Stars: Remove sqlx storage implementation (#77766) 2023-11-07 06:55:24 -08:00
stats Usagestats: Add stat group for alert rule groups (#78825) 2023-11-29 14:37:36 -06:00
store Chore: Update readme for entity store (#79586) 2023-12-17 13:12:17 +02:00
supportbundles Auth: Remove oAuthProviders from Social service (#78732) 2023-11-30 09:30:35 +01:00
tag FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled (#78014) 2023-11-13 07:55:15 -08:00
team Authz: Remove use of SignedInUser copy for permission evaluation (#78448) 2023-11-22 14:20:22 +01:00
temp_user Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
updatechecker Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
user Chore: Remove unused CacheService dependency from sqlstore (#78507) 2023-12-04 10:00:45 -05:00
validations chore: move validations model into the validations service (#61953) 2023-01-23 15:10:14 -05:00