Commit Graph

47272 Commits

Author SHA1 Message Date
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
Adela Almasan
209619c8c1 Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
Isabel
130d45c831 Docs: style and wording fixes (#79711)
Wording fixes
2023-12-19 12:54:00 -05:00
Santiago
9945514baa Alerting: Validate configuration for the remote Alertmanager struct (#79691)
* Alerting: Validate configuration for the remote Alertmanager struct

* add TenantID to test

* add OrgID to config struct in tests
2023-12-19 18:41:48 +01:00
Ryan McKinley
33d2d0a12d K8s: Refactor authorization initialization (#79670) 2023-12-19 19:12:35 +02:00
Andreas Christou
ba69d32fa5 Chore: update latest.json to 10.2.3 (#79685) 2023-12-19 16:56:34 +00:00
Gilles De Mey
324f7d7534 Alerting: Allow linking to library panels (#79693) 2023-12-19 18:41:49 +02:00
Dan Cech
7613ab7a5b Storage: store full k8s object in body column (#79480)
store full k8s object in body column
2023-12-19 11:34:57 -05:00
Gilles De Mey
52dc425458 Test: Prevent jest from failing on accessing variable before declaration (#79705) 2023-12-19 18:30:06 +02:00
grafana-delivery-bot[bot]
26419cda7d Changelog: Updated changelog for 10.1.6 (#79707)
Co-authored-by: grafanabot <bot@grafana.com>
2023-12-19 16:29:51 +00:00
grafana-delivery-bot[bot]
f08138c94b Changelog: Updated changelog for 9.5.15 (#79701)
* Changelog: Updated changelog for 9.5.15

* fix lint

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Summer Wollin <summer.wollin@grafana.com>
2023-12-19 18:18:12 +02:00
grafana-delivery-bot[bot]
81969622af Changelog: Updated changelog for 10.0.10 (#79700)
Co-authored-by: grafanabot <bot@grafana.com>
2023-12-19 09:08:11 -07:00
João Calisto
65c3bb78a6 Feature Management: add documentation (#78108)
* Feature Management: add documentation

* lint docs

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/administration/feature-management/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* update docs

* lint

* revise docs

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2023-12-19 15:47:46 +00:00
Torkel Ödegaard
82af0d6230 PanelQueryRunner: Fix loading state (#79690) 2023-12-19 15:13:11 +01:00
Jára Benc
315dd75767 Dashboards: Skip inherited object variable names (#79567) 2023-12-19 15:08:28 +01:00
Hugo Kiyodi Oshiro
ecfc8048e1 Plugins: Disable add new data source for incomplete install (#79658) 2023-12-19 14:53:31 +01:00
Dominik Prokop
73eab8fcd6 DashboardScene: Data source and query options edit for a panel (#79267)
* Scenes bump

* Refactor query group components so that they are reusable

* Basic queries rendering and datasource change

* Store last used ds in local storage

* maxDataPoints and minInterval queries options

* Progress on query options

* Query options tests

* Allow panel inspection / queries inspection from panel edit

* Add counters to data pane tabs

* Betterer update

* Handle data source changes

* Minor fixes

* Data source change tests

* Handle scenario of data source change when transformations are in place

* Review comment

* Fix test
2023-12-19 05:51:19 -08:00
Sven Grossmann
96b5b10e20 Loki: Fix language provider's start method won't fetch labels with changed timerange (#79631)
Loki: Fix issue with timeranges in language provider
2023-12-19 14:45:33 +01:00
Torkel Ödegaard
f7429b79ba Variables: Interpolate variables used in custom variable definition (#78800)
* Variables: Interpolate variables used in custom variable definition

* Update

* Fixing tests
2023-12-19 14:23:57 +01:00
Sven Grossmann
a15681c93c Loki: Drop all errors in volume requests (#79686) 2023-12-19 14:21:08 +01:00
ismail simsek
ea079ebf0c InfluxDB: Enable SQL support by default (#79474)
* remove alpha notification

* enable the feature toggle by default

* fix
2023-12-19 14:12:36 +01:00
Galen Kistler
598a2a6fa9 Logs Panel: Table UI - Explore default state (#79653)
* save explore visualisation type in local storage
2023-12-19 07:10:27 -06:00
Gilles De Mey
d0714a5303 Alerting: Small cleanup to remove mute timing as inheritable property (#79680) 2023-12-19 14:39:31 +02:00
Matias Chomicki
c58ed41d50 Loki Logs volume: Added a query splitting loading indicator to the Logs Volume graph (#79681)
* Logs volume: distinguish annotations from time series frames

* Update unit tests

* Update unit tests

* Formatting
2023-12-19 14:33:18 +02:00
ismail simsek
8c7639738d Docs: Add InfluxDB SQL query language docs (#79591)
* update sql docs

* add note

* add macro docs

* prettier

* prettier again
2023-12-19 13:27:16 +01:00
grafana-delivery-bot[bot]
217084941d Changelog: Updated changelog for 10.2.3 (#79682)
Co-authored-by: grafanabot <bot@grafana.com>
2023-12-19 12:13:55 +00:00
Timur Olzhabayev
5c56d792d6 Chore: Upgrading go crypto to v0.17.0 (#79678)
* Bump x/crypto to 0.17.0

* go mod tidy
2023-12-19 12:38:22 +01:00
Will Browne
6ceab61bf8 Plugins: Support nested plugin signature validation on Windows (#79467)
* rework

* fix

* fix backend start

* fix tests

* fix

* print env

* enable CGO

* undo changes

* undo whitespace change
2023-12-19 11:56:40 +01:00
Agnès Toulet
fdaf6e3f2e PublicDashboards: Add setting to disable the feature (#78894)
* Replace feature toggle with configuration setting

* Fix permission alert

* Update documentation

* Add back feature toggle

* revert unwanted commited changes

* fix tests

* run prettier

* Update SharePublicDashboard.test.tsx

* fix linter and frontend tests

* Update api.go

* Apply docs edit from code review

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update index.md

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* add isPublicDashboardsEnabled + test

* fix test

* update ff description in registry

* move isPublicDashboardsEnabled

* revert getConfig() update

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-12-19 11:43:54 +01:00
Will Browne
ef60c90dfa Plugins: Make file system path handling in tests OS agnostic (#79651)
* make path handling OS agnostic

* PR feedback

* fix input for test case
2023-12-19 11:01:48 +01:00
Karl Persson
8cb351e54a Authn: Handle logout logic in auth broker (#79635)
* AuthN: Add new client extension interface that allows for custom logout logic

* AuthN: Add tests for oauth client logout

* Call authn.Logout

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-12-19 10:17:28 +01:00
Aaron Godin
eb490193b9 [IAM] - Add swagger docs for resource permissions API (#79525)
* IAM: Apply swagger-go comments for generating docs on resource permissions endpoints

* Update pkg/services/accesscontrol/resourcepermissions/api.go

Clarifies swagger note on assigning to service accounts

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-12-18 16:47:17 -06:00
Alexander Weaver
65ecde6eed Alerting: Don't record annotations for mapped NoData transitions, when NoData is mapped to OK (#77164)
* Exclude mapped nodata transitions when nodata mapped to OK

* Fix processEvalResults test

* Don't check NoDataState when filtering transition

* Add comment to explain purpose of separate function

---------

Co-authored-by: William Wernert <william.wernert@grafana.com>
2023-12-18 16:59:32 -05:00
Nathan Marrs
3fc7aa97d6 Dashboard: Track every panel type usage (count) (#79421) 2023-12-18 23:49:13 +02:00
Sven Grossmann
2165c9b3f0 Loki: Add lokiQueryHints feature flag (#78953)
* add `lokiQueryHints` feature flag

* language provider tests

* fix unwrap tests

* add feature toggle
2023-12-18 22:43:16 +02:00
Michael Mandrus
456939bac4 Feature Toggles: Remove use of boolPtr in FeatureFlag struct (#79550)
* remove bool ptr and update docs

* fix silly thing

* merge main

* maybe this time

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-12-18 13:55:21 -05:00
Isabel
9c3c49e48e Docs: rebuilt markdown file (#79660)
Rebuilt markdown file
2023-12-18 20:54:55 +02:00
Isabel
11b2f41a15 Docs: Added data source requirement for built-in annotation query (#78860)
* Docs: Added data source requirement for built-in annotation query

* Fixed wording

* Added more detailed explanation per feedback
2023-12-18 11:17:48 -05:00
Dominik Prokop
ecb5d94b2d Prometheus: Replace pre-calculated $__interval values for backend interpolation (#79645) 2023-12-18 07:52:33 -08:00
Oscar Kilhed
110a41b3db Transformations: Move moving average and cumulative sum to private preview (#79495)
* Move moving average and cumulative sum to private preview

* update docs

* rebuild docs

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2023-12-18 16:46:03 +01:00
Denis
e6f7ad143a Docs: add description for refresh and regex options in templating (#79441) 2023-12-18 10:31:33 -05:00
Tobias Skarhed
e4d5d36832 CODEOWNERS: Add canvas schemas to dataviz squad (#79643) 2023-12-18 16:28:32 +01:00
Marco Schaefer
1260451af3 Faro: Upgrade to v1.3.5 (#79559) 2023-12-18 16:20:21 +01:00
Will Browne
0b511aaace Plugins: Add backend check for app page role access (#78269)
* add backend check for roles

* tidy

* fix tests

* incorporate rbac

* fix linter

* apply PR feedback

* add tests

* fix logic

* add comment

* apply PR feedback
2023-12-18 16:12:46 +01:00
Sven Grossmann
68189cdaeb Logs: Hide filters for derived fields in table viz (#78955)
Logs: Hide filters from derived fields
2023-12-18 16:07:46 +01:00
Karl Persson
0437a74956 RBAC: Render team, service account and user list when a user can see entities but not roles attached to them (#79642)
* Render list even when user cannot list roles assigned for entities
2023-12-18 15:55:02 +01:00
Santiago
f7248efff5 Alerting: Fix panic when creating a new Alertmanager returns an error (#79641)
Alerting: Fix panic after error creating new Alertmanager
2023-12-18 15:33:07 +01:00
Ezequiel Victorero
864d91ed3e Export: Remove no-store headers in pdf and image previews (#78844) 2023-12-18 09:21:57 -03:00
Andreas Christou
10cc3321cd Chore: Update node version for bump-version workflow (#79634)
Update node version for bump-version workflow
2023-12-18 12:16:24 +00:00
Eric Leijonmarck
03f39f2167 Rolepicker: Fix remove query parameter not being used (#79629)
fix: query parameter not being used
2023-12-18 12:10:26 +01:00