Commit Graph

48117 Commits

Author SHA1 Message Date
Alex Khomenko
f154b2b855
Grafana/ui: Add Space component (#81145)
* Grafana/ui: Add Space component

* Add responsive styles and prop docs

* Use the Box component

* Docs

* Replace the component from grafana/experimental

* Update story

* Tweak docs

* Adjust docs
2024-01-25 08:59:24 +02:00
Torkel Ödegaard
05eb4fcd7f
Drawer: Resizable via draggable edge (#80796)
* Drawer: POC of draggable resizable drawer side

* Cleaner solution

* refinements

* refinements

* Add touch support
2024-01-25 07:54:32 +01:00
Torkel Ödegaard
e08700c1b5
Dashboard: New EmbeddedDashboard runtime component (#78916)
* Embedding dashboards exploratino

* Update

* Update

* Added e2e test

* Update

* initial state, and onStateChange, only explore panel menu action and other fixes and tests

* fix e2e spec

* Fix url

* fixing test
2024-01-25 07:32:07 +01:00
Adela Almasan
9da3db1ddf
Annotations: Prevent creating on unsaved dashboard (#81200) 2024-01-24 19:24:52 -06:00
Kim Nylander
1d25039674
[DOC] Fix broken link tempo data source (#81126)
* Fix broken link tempo data source

* Use docs/reference shortcode

* Update docs/sources/datasources/tempo/_index.md

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

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-24 16:47:35 -06:00
William Wernert
2203bc2a3d
Alerting: Refactor provisioning tests/fakes (#81205)
* Fix up test Alertmanager config JSON

* Move fake AM config and provisioning stores to fakes package
2024-01-24 17:15:55 -05:00
Matthew Jacobson
e45f664ca4
Alerting: Replace index role_id, action, scope with action, scope, role_id on permission table (#80336)
* Alerting: Add action, scope, role_id to permission table

The existing role_id, action, scope index has the wrong ordering to be most
effectively used in dashboard/folder permission requests.

On a large tests set, the slow database calls were on the order of ~30-40ms, so
when performed individually they don't have that large of a latency impact.
However, when done in bulk in the migration this adds up to some very slow
requests.

After the index is added these same database calls are reduced to ~4-5ms

* Change index to action, scope, role_id

* Make new index unique and drop [role_id, action, scope] index
2024-01-24 16:18:14 -05:00
Matthew Jacobson
71e70c424f
Alerting: During legacy migration reduce the number of created silences (#78505)
* Alerting: During legacy migration reduce the number of created silences

During legacy migration every migrated rule was given a label rule_uid=<uid>.
This was used to silence DatasourceError/DatasourceNoData alerts for
migrated rules that had either ExecutionErrorState/NoDataState set to
keep_state, respectively.

This could potentially create a large amount of silences and a high cardinality
label. Both of these scenarios have poor outcomes for CPU load and latency in
unified alerting.

Instead, this change creates one label per ExecutionErrorState/NoDataState when
they are set to keep_state as well as two silence rules, if rules with said
labels were created during migration. These silence rules are:

- __legacy_silence_error_keep_state__ = true
- __legacy_silence_nodata_keep_state__ = true

This will drastically reduce the number of created silence rules in most cases
as well as not create the potentially high cardinality label `rule_uid`.
2024-01-24 15:56:19 -05:00
Santiago
fbbda6c05e
Alerting: Retry readiness check to the remote Alertmanager on 5xx status code responses (#81174) 2024-01-24 21:39:06 +01:00
Ryan McKinley
c9ff6a9ab9
Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
Galen Kistler
a81d3b1d22
Table: Cell inspector auto-detecting JSON (#81152)
* set inspect mode to json if no errors parsing json
2024-01-24 12:08:18 -06:00
Josh Hunt
a138ce668d
I18n: Remove unneeded i18n:compile script (#81184) 2024-01-24 17:24:24 +00:00
renovate[bot]
b4ae711825
Update Yarn to v4 (#81176)
* Update Yarn to v4

* add back bundled yarn

* properly

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-24 18:48:34 +02:00
renovate[bot]
1090d55b54
Update visx to v3.5.0 (#81175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:18:02 +00:00
Adela Almasan
dd9a503dd0
VizTooltip: No width limit on anchored tooltip (#81017) 2024-01-24 18:16:15 +02:00
Matías González
bbe74e4b03
Currency: Added Paraguayan Guaraní (PYG) currency (#81007) 2024-01-24 16:08:03 +00:00
github-actions[bot]
6fd8898cde
Update make docs procedure (#81170)
Co-authored-by: grafanabot <bot@grafana.com>
2024-01-24 16:03:38 +00:00
Marcus Efraimsson
20fe0eb173
Chore: Extract DatabaseConfig parsing from SQLStore (#81157)
Extract the parsing/creating of database config/connectiong from SQLStore string 
to a separate DatabaseConfig struct.
2024-01-24 16:49:49 +01:00
Andres Martinez Gotor
3b96eb854a
Chore: Replace config with datasource in names (#81098) 2024-01-24 16:44:40 +01:00
renovate[bot]
3ea84e1b7f
Update typescript-eslint monorepo to v6.19.1 (#81162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 15:40:06 +00:00
renovate[bot]
7dd89134dc
Update dependency typescript to v5.3.3 (#81096)
* Update dependency typescript to v5.3.3

* update ApiKeysPage

* fix remaining conflict in lockfile

* update sdk

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-24 15:33:54 +00:00
Jack Baldry
57c550778e
Stop README being built into website (#81171) 2024-01-24 15:30:42 +00:00
Fabrizio
0434f191fe
Tempo: Fix NaN value using fallback (#81150) 2024-01-24 16:21:36 +01:00
Kevin J Gao
f726ea1e52
Added Descope as an OAuth2 provider (#80050)
* added Descope as an OAuth2 provider

Added docs for customers of ours that have asked us how to use Descope with Grafana. We wanted to make sure they can easily find these docs on both our website and Grafana's.

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

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

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

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

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Changed note to use admonition

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-24 08:56:44 -06:00
Alex Khomenko
c8f450c851
Revert "Grafana/ui: Enable removing values in multiselect opened state" (#81161) 2024-01-24 16:52:50 +02:00
Misi
c47b55ae10
Auth: Add SSO settings usage stats (#81143)
* Add usage stats

* UsageStats test + svc rename

* Fix test
2024-01-24 15:39:50 +01:00
renovate[bot]
c44594d6b3
Update dependency webpack to v5.90.0 (#81158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:31:19 +02:00
Alex Khomenko
41de0b4311
Grafana/ui: Add deprecation notice to the Form component (#81068)
* Grafana/ui: Add deprecation notice to the Form component

* Fix notice

* Deprecate types
2024-01-24 16:13:24 +02:00
renovate[bot]
d528d93b02
Update dependency @testing-library/jest-dom to v6.3.0 (#81154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:10:39 +02:00
Jack Baldry
9e01156b28
Update last three versions for backporting make docs workflow (#81141) 2024-01-24 14:02:32 +00:00
kay delaney
b2f2864628
Scenes: Add panel frame options and visualization options to panel editor (#80884) 2024-01-24 14:01:00 +00:00
Ida Štambuk
7218e11e23
Cloudwatch: Move getNextRefIdChar util from app/core/utils to @grafana/data (#80471)
---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-01-24 14:51:51 +01:00
renovate[bot]
1e85d65ce0 Update dependency @grafana/experimental to v1.7.7 2024-01-24 15:45:58 +02:00
renovate[bot]
3656657afc
Update dependency @types/node to v20.11.6 (#81133)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 13:27:02 +00:00
Ashley Harrison
3f1e97cb07
NestedFolderPicker: Add clearable prop (#81114)
* add clearable prop to NestedFolderPicker

* update types
2024-01-24 13:18:01 +00:00
Alexander Zobnin
7872a128a2
Folders: Add metric for listing subfolders duration (#81144) 2024-01-24 14:15:32 +01:00
Oscar Kilhed
57ba8dc75d
Scenes: Add transformation flow for panel edit (#80738)
* Adding transformations works

* Use source data as data input for transformation settings, add search box suffix

* remove useCallback that are probably not needed, fix tests

* remove unused import

* add tests for adding and removing transformations

* use view all constant

* Add reordering functionality

* Fix removing one transformation removes all consecutive transformations

* use closeDrawer function

* Add tests for changing transformations

* Remove any

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-24 14:14:48 +01:00
Andres Martinez Gotor
a06197188f
Chore: Fix plugins magefile (#81146) 2024-01-24 14:01:15 +01:00
Karl Persson
28bb6979f5
IDForwading: cache based on expires in (#81136)
* IDFowarding: Cache based on expires in

* IDFowarding: Change default expires in

---------

Co-authored-by: Victor Cinaglia <victor@grafana.com>
2024-01-24 13:56:44 +01:00
Andres Martinez Gotor
1c02220916
Chore: Fix plugins magefile for Azure (#81138) 2024-01-24 14:18:18 +02:00
Ashley Harrison
e84ee33c8b
NestedFolderPicker: Debounce search correctly (#80956)
* debounce nested folder picker search

* readd logic when no search string
2024-01-24 11:41:25 +00:00
Joey
5b4a984b78
Tempo: Add warning message when scope missing in TraceQL (#80472)
* Add warning message when scope missing in TraceQL

* Check for warnings in nodes

* Update formattiing

* Tidy up logic

* Tests

* Rename files and move tests for highlighting queries with errors
2024-01-24 11:41:13 +00:00
idafurjes
6b4eaa0d18
Add MFolderIDsAPICount metric to count FolderIDs in api package (#80866)
* Add MFolderIDsAPICount metric to cound FolderIDs in api package

* Change counter to counter vector with method names as string values
2024-01-24 12:39:11 +01:00
Damian Szczepanik
5576731332
Docs: Update variables-label-annotation.md (#81134)
Update variables-label-annotation.md

Additional closing bracket was removed
2024-01-24 12:36:50 +02:00
renovate[bot]
ad755421f8
Update react-router monorepo (#81118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 09:22:40 +00:00
Gabriel MABILLE
63679813b0
RBAC: prevent seeding oncall access (#80862)
* RBAC: prevent seeding oncall access

* Add comments and an early exit

* Test SeedAssignmentOnCallAccessMigrator

* imports

* Comment rework

* Check error

* Nit.
2024-01-24 09:23:40 +01:00
Gábor Farkas
fd73b75ef7
SQL datasources: Consistent interval handling (#78517)
sql: apply the received interval-value
2024-01-24 08:47:07 +01:00
Kyle Cunningham
6484f4a2ac
Transformations: Focus search input on drawer open (#80859)
* Focus search input on drawer open

* Prettier
2024-01-23 22:19:33 -06:00
Nathan Marrs
cd2abce914
Table: Fix case where undefined data crashes the visualization (#80498) 2024-01-23 13:59:22 -08:00
Yuri Kotov
a7b58a7cdb
Prometheus plugin: Use new labels endpoint, for LabelEditor (#80774)
Prometheus plugin: use new labels endpoint, if supported, for LabelEditor

Before this change LabelEditor always use old '/series' endpoint to get labels.
Now new '/labels' endpoint would be used in case datasource supports it.
2024-01-23 15:00:43 -06:00