Commit Graph

20695 Commits

Author SHA1 Message Date
Dominik Prokop
9fb6cbf683
DashboardScene: Use query options for relative time range calculation of the panel embed url (#79220) 2023-12-07 05:46:03 -08:00
Kat Yang
31fb38723d
Chore: Remove FolderID from DTO Folder (#78420)
* Chore: Remove FolderID from DTO Folder

* chore: add OrgID field to an instance of SaveDashboardCommand

* chore: add another OrgID to pair with the FolderUID:

* chore: add OrgId to Folder struct and expectedParentOrgIDs to testCase struct, unsure if last part is necessary

* Fix folder test, add expected orgID

* chore: regen specs

---------

Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
2023-12-07 13:56:04 +01:00
idafurjes
550746be71
Fix capitalising Folder structs (#79207)
* Fix capitalising Folder structs

* Add swagger and fix api dashboard test

* Add swagger files with bingo installed
2023-12-07 13:15:58 +01:00
Josh Hunt
8ce4faf5ea
Chore: Deprecate FieldConfigEditorProps in favor of StandardEditorProps (#78319)
* Deprecate FieldConfigEditorProps in favor of StandardEditorProps

* update editors to no longer use FieldOverrideEditorProps
2023-12-07 13:03:18 +02:00
Ashley Harrison
4a0c89a8fd
Snapshots: Add loading skeleton (#79134)
* add snapshot skeleton

* add some unit tests
2023-12-07 10:48:06 +00:00
Levente Balogh
ebdffe21e6
Plugins: Suppress 403 preloading errors (#79154)
* fix: stop displaying error alerts when plugins cannot be loaded

* fix: only hide the error if it is a 403 error

* fix: revert unnecessary object spreading
2023-12-07 11:47:12 +01:00
Josh Hunt
42ce9bd9f0
BrowseDashboards: Fix alerts folder view cards not stacking correctly (#79162) 2023-12-07 10:32:43 +00:00
Ashley Harrison
6a02863cc9
Library panels: Add loading skeleton (#79087)
* add library panel card skeleton

* lineHeight: 1 instead of 0
2023-12-07 09:56:12 +00:00
Dominik Prokop
f6bd390bc1
DashboardScene: Skeleton for Panel edit data tabs (#79130) 2023-12-07 01:25:06 -08:00
Dominik Prokop
dfc139b2ff
DashboardScene: Add support for showing notices in panel header (#79146) 2023-12-07 01:24:22 -08:00
Leon Sorokin
393711c3a1
Transformations: Add (base field name) to Join transformer (#79192) 2023-12-06 19:17:01 -06:00
Yuri Tseretyan
7e331c8507
Alerting: Support for condition field in /api/v1/eval (#79032)
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2023-12-06 11:28:43 -05:00
kay delaney
7a38a2e48b
Scenes: Add ability to change panel viz type (#78477)
* Scenes: Add ability to change panel viz type

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-12-06 16:14:54 +00:00
Ashley Harrison
9ab8292949
Orgs: Add skeleton loader (#79141)
add skeleton for orgs list
2023-12-06 16:07:32 +00:00
Ashley Harrison
74cb1423c1
Teams: Add skeleton for teamlist (#79132)
add skeleton for teamlist
2023-12-06 16:07:02 +00:00
Ashley Harrison
30ead91d38
Server Stats: Add skeleton loader (#79138)
* add server stat skeleton loader

* prevent flicker
2023-12-06 16:06:30 +00:00
Dominik Prokop
bfde6f2c8a
Dashboard interactions reporting refactor, DashboardScene interactions handling (#79078)
* Refactor dashboard interactions tracking

* Local scenes tmp

* Use latest scenes

* Review refactor

* Fix enterprise tests

* Reporting parity for panel description
2023-12-06 07:24:15 -08:00
Yasir Ekinci
399d0708da
Prometheus: Fix PromQail health check + add test (#77259)
promQail: fix health check + add test
2023-12-06 07:51:33 -06:00
Alexa V
e8b2e85966
Dashboard: Scene Migration: Add variable definition prop to serialization (#79022)
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2023-12-06 11:33:54 +01:00
Zoltán Bedi
d85ac7cea7
Chore: Add comments to RAQB config (#79075) 2023-12-06 08:33:04 +01:00
Ezequiel Victorero
66df17869d
Chore: Use dashboard service to retrieve dashboards (#79020) 2023-12-05 18:09:21 -03:00
Ashley Harrison
7cdddb2790
PluginList: Add plugin list loading skeleton (#79012)
* add plugin skeleton

* lineHeight: 1 instead of 0
2023-12-05 16:39:23 +00:00
Jo
5efa85e634
Plugins: Use org role to separate unauthed from anon (#79082)
use org role to separate unauthed from anon
2023-12-05 16:40:19 +01:00
Dominik Prokop
c30098e772
QueryVariable: Always run queries with dashboard time range (#79056) 2023-12-05 06:06:26 -08:00
Joey
f51ad749ab
Pyroscope: Decouple config editor (#79027)
Decouple config editor
2023-12-05 10:57:49 +00:00
Ashley Harrison
568d979dd5
Chore: Improve typings (#78940)
* improve typings

* transformations typings improvements

* add bootData to window

* more grafana-data fixes

* undo window.grafanaBootData typings
2023-12-05 10:26:23 +00:00
Torkel Ödegaard
ed128ea964
Frontend: Foundations for multi tenant frontend (#78815)
* Frontend: Foundations for multi tenant frontend

* improve manifest parsing for multi-tenant frontend (#78876)

* add test

* add test

* ??

* Updates

* Added cache

* test cleanup

* lint

* fix test

* fix error templates

* cleanup

* remove copy

* revert changes to list testdata

* comment cleanup

* prepare integration tests

* Remove integrety

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-12-05 08:34:22 +01:00
Julien Duchesne
cd584e9261
Swagger: Fix getLibraryElementByName response (#78221)
It returns an array of library elements, not a single one. This has been tested by generating the OpenAPI client and using it in Terraform
2023-12-04 11:20:13 -05:00
Julien Duchesne
3c51190392
ngalert make: Support GNU install on Darwin (#78482)
* ngalert `make`: Support GNU install on Darwin
Currently, the Makefile assumes that Darwin is using the Mac version of `sed`
I have the GNU version, so it failed. With this PR, it checks which version is installed
I also called `make` and there are some changes that came out of it

* swagger-gen
2023-12-04 10:11:39 -05:00
Darren Janeczek
ac1b9e44a2
data-trails: ability to (de)serialize parents and current index (#78782)
fix: ability to (de)serialize parents and current index

- refactored so only history stores parent relations and current index

- rounded indirect parent links
2023-12-04 10:04:58 -05:00
Julien Duchesne
637cfa89be
Swagger: Rename Spec to Preferences (#78226)
The definition for preferences is globally named `Spec` because that's the type that cue outputs
This adds a swagger annotation to rename the definition in the swagger schema to `Preferences`
This will be easier to use in generated clients
2023-12-04 09:51:09 -05:00
Julien Duchesne
2fb207ba13
Generate latest OpenAPI spec (#79017)
Following https://github.com/grafana/grafana-enterprise/pull/6003
Also, some other pending changes aren't reflected in the spec it seems
2023-12-04 09:16:33 -05:00
Marcus Efraimsson
0825b63b79
Plugins: Only preload plugins if user is authenticated (#78805)
Fixes #75941
2023-12-04 11:53:05 +01:00
Torkel Ödegaard
4e2201ffeb
DataTrails: Fixes filters taking metric into account (#78786)
* DataTrails: Fixes filters taking metric into account

* fix merge
2023-12-04 09:42:34 +01:00
Kyle Cunningham
b42d652106
Transformations: Move transformation addition into drawer (#78299)
* Start splitting out code

* Use flag

* A bit of rocket surgery

* Prettify

* Cleanup behavior

* Work through behaviors

* Move empty message from other PR

* Import fixes and prettier

* Clean things up

* Add selector for tests

* Cleanups

* Working with transformation redesign

* Some more tweaks to make sure of correct behavior

* Update betterer/eslint exceptions

* Localization

* Remove unecessary fragments

* Spacing and prettier

* Update tests for new UI

* Update e2e tests

* One more e2e test fix

* Update selectors

* Fix one test and break another
2023-12-01 14:08:54 -06:00
Isabella Siu
d894f4cc79
CloudWatch: Correctly quote metric names with special characters (#78958) 2023-12-01 14:37:09 -05:00
Sven Grossmann
af05fdc806
Transformations: Fill array with undefined to prevent mismatching length (#78911)
* fill array with `undefined` to prevent matching length

* update unit test to include sortBy transformation

---------

Co-authored-by: Galen <galen.kistler@grafana.com>
2023-12-01 13:33:05 -06:00
Piotr Jamróz
b64802ed3b
Correlations: Add error logging (#78272)
* Add error logging when parsing correlations

* Make orgId optional

* Add module property and move source and target to context for better readability
2023-12-01 20:26:05 +01:00
Gilles De Mey
58d0c51cf4
Alerting: Add note to the docs that GMA rules are evaluated concurrently (#78902) 2023-12-01 18:32:48 +01:00
Joey Orlando
ea7a179f2a
Plugins: Add grafana/user/profile/tab plugin extension point (#77863)
* add grafana/user/profile/settings
plugin extension point

* changes to support plugins having their
own settings tabs

* WIP

* add comment

* add unit tests

* allow setting open tab based on tab query param

* update name of extension point

* add some more unit tests

* address PR comments

* PR comments
2023-12-01 15:18:27 +00:00
Ivan Ortega Alba
e56a252158
GeneralSettings: Edit general dashboards settings to scenes (#78492) 2023-12-01 17:04:56 +02:00
ismail simsek
46044efdf8
Fix: Use dashboard time range in prometheus variable editor (#78950)
Use dashboard time range in variable editor
2023-12-01 15:30:47 +01:00
Fabrizio
ae3f1506df
Tempo: Fix read-only access error (#78801) 2023-12-01 13:55:48 +01:00
Ivan Ortega Alba
8d7314bb9a
DeleteDashboard: Redirect to home after deleting a dashboard (#78918) 2023-12-01 10:15:41 +01:00
Dominik Prokop
303c3ddc24
DashboardScene: Pass hashed panelId to query runner if a panel is a clone (#78820)
* DashboardScene: Pass hashed panelId  to query runner if a panel is a clone

* Test

* Nit
2023-12-01 01:07:55 -08:00
Gilles De Mey
69e1046ed3
Alerting: Hide error messages for failing HTTP calls to Grafana OnCall (#78919) 2023-11-30 22:30:24 +01:00
Galen Kistler
243c7583c9
Logs Panel: Table UI - Logs.tsx clean up mutation in react lifecycle (#78925)
* remove prop mutation in componentWillUnmount
2023-11-30 20:04:42 +00:00
Virginia Cepeda
148e1c1588
Alerting: Change create/update permissions for silences (#78920)
* Change create/update permissions for silences

* Add comment
2023-11-30 20:28:37 +02:00
Domas
b40e61d935
Timeseries to table transformation: Fix misaligned table field values if some frames are missing a label (#78909)
* fix bug with time series table transform when a frame is missing a label

* prettier format
2023-11-30 19:09:52 +02:00
Adela Almasan
e361839261
Tooltip: Improved Heatmap tooltip (#75712)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-11-30 11:04:56 -06:00
Ashley Harrison
329d0e79ec
Navigation: Rearrange IA based on tree test (#78804)
* rearrange IA

* add landing page routes and subtitles

* Translate menu items

* add frontend-observability icon

* proper frontend-observability icon

---------

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
2023-11-30 15:18:05 +00:00
Gilles De Mey
7ccdea6f67
Alerting: Fixes combination of multiple predicates for rule search (#78910) 2023-11-30 16:13:05 +01:00
Virginia Cepeda
588f87ef1e
Alerting: Filter insights panels (grafanacloud-usage ds) by instance_id (#78657)
* Filter grafana-managed panels by instance_id

* Filter grafana alertmanager panels by instance_id

* Filter mimir managed panels by instance_id

* Filter mimir managed per group by instance id

* Filter mimir alertmanager panels by instance id

* Fix typos in queries
2023-11-30 10:42:53 -03:00
Gilles De Mey
7cbf5ae78d
Alerting: Remove old contact points view (#78704) 2023-11-30 13:37:14 +01:00
Matias Chomicki
24082d61c2
Query splitting: add key to merged response (#78522)
* Query splitting: add key to response

* Query splitting: use queryGroupId as key

* Add unit test
2023-11-30 14:27:44 +02:00
Joey
ea3dda60ce
TraceView: Improve small screen design in TracePageSearchBar (#78807)
Improve small screen design in TracePageSearchBar
2023-11-30 10:26:52 +00:00
Torkel Ödegaard
d33a624ba6
DashboardScene: View panel scene (#78718)
* DashboardScene: View panel fixes

* Update

* Update

* Update

* works and added tests

* Update

* Update
2023-11-30 11:20:15 +01:00
Alexander Zobnin
8e01932166
RBAC: Fix permissions for dashboard import (#78891) 2023-11-30 12:01:01 +02:00
Sven Grossmann
a50be7ea0a
Loki: Fix derived fields with undefined matcherType (#78849)
Loki: Fix derived fields with no `matcherType`
2023-11-29 20:55:00 +01:00
Galen Kistler
25c152c4d8
Logs panel: Logs table UI - add datasource type to events (#78850)
* add datasource type to logs table ui events

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-11-29 21:50:32 +02:00
Leon Sorokin
406704a027
XYChart: Add demo gdev dashboard (#71168)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-11-29 19:54:16 +02:00
Ivana Huckova
b3deef8f4b
Loki: RemoveTimeSrv dependency (#78642)
* Loki: Remove  dependency

* Update loadUnwrapOptions
2023-11-29 19:29:15 +02:00
Galen Kistler
f7ace22285
Logs Panel: Table UI - feedback link (#78354)
* Adds google form link to let users submit feedback on logs table UI

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-11-29 19:28:55 +02:00
Leon Sorokin
2ac60dc300
Chore: Remove core-js polyfills (#78715) 2023-11-29 11:12:23 -06:00
Alex Khomenko
1141dd62ab
SSO: Display provider list (#78472)
* Load providers

* Display providers

* Rename

* Remove redundant styles

* Update Grid import

* Return data in camelCase from the OAuth fb strategy

* Update cards and remove empty state

* Add comment

* Add feature toggle

* Update betterer

* Add empty state

* Fix configPath

* Update betterer

* Revert backend changes

* Remove newline

* Enable auth routes

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2023-11-29 19:09:36 +02:00
Eric Leijonmarck
59bdff0280
Auth: Add anonymous users view and stats (#78685)
* Add anonymous stats and user table

- anonymous users users page
- add feature toggle `anonymousAccess`
- remove check for enterprise for `Device-Id` header in request
- add anonusers/device count to stats

* promise all, review comments

* make use of promise all settled

* refactoring: devices instead of users

* review comments, moved countdevices to httpserver

* fakeAnonService for tests and generate openapi spec

* do not commit openapi3 and api-merged

* add openapi

* Apply suggestions from code review

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* formatin

* precise anon devices to avoid confusion

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: jguer <me@jguer.space>
2023-11-29 17:58:41 +01:00
Galen Kistler
fd863cfc93
Logs Panel: Table UI - Misc UI tweaks (#78150)
* Miscellaneous UI tweaks for logs table UI in explore
2023-11-29 10:57:04 -06:00
Isabella Siu
931c8e99b9
CloudWatch: Fetch Dimension keys correctly from Dimension Picker (#78556) 2023-11-29 11:01:44 -05:00
Galen Kistler
faa29db241
Logs Panel: Table UI - Pull logs table into dashboard panel (#77757)
* Allows users to add a logs table in explore to a dashboard panel via the includeByName transformation
2023-11-29 10:01:28 -06:00
Isabella Siu
c6232351f2
CloudWatch Logs: Support fetching fields in monaco editor (#78244) 2023-11-29 10:37:23 -05:00
Ashley Harrison
c70467c4c9
Chore: Convert some core components to use emotion object styles (#78607)
* convert some core components to use emotion object styles

* remove enabled: true

* use radius.default
2023-11-29 15:26:19 +00:00
Matias Chomicki
773e0680c5
Loki: Added support for "or" statements in line filters (#78705)
* Lezer: upgrade to 0.2.2

* Operations: update definitions

* Operations: update renderer

* Parsing: parse line filters with or operations

* Parsing: add unit test

* Formatting

* getHighlighterExpressionsFromQuery: add support for or statements

* Operation editor: trim button title if param name is empty

* getHighlighterExpressionsFromQuery: properly handle ip filters
2023-11-29 15:58:32 +01:00
Dominik Prokop
2b953660a4
DashboardSettings: Provide skeleton for list editing (#78789)
* DashboardSettings: Provide basics for list editing

* Update public/app/features/dashboard-scene/scene/DashboardSceneUrlSync.ts

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>

* Lint

* Review

* Fix page nav for items

* Move links to dashbaord scene state

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-29 06:01:40 -08:00
Joey
5a6ac44902
Tempo: Update status operators (#78730)
* Set keyword operators

* Tests for keyword, string, number option types
2023-11-29 11:07:35 +00:00
Dominic Evans
f41cf40344
Dashboard: DashboardGrid - don't animate if reduced-motion set (#75540) 2023-11-29 12:07:01 +01:00
Brendan O'Handley
ff7dd17c56
Prometheus: Azure auth update select and input to not use legacy components (#78774)
update select and input to not use legacy components
2023-11-29 11:29:52 +01:00
Greg Tan
f53839e4fd
Dashboard: Call destroy when panel is removed (#77017) 2023-11-29 10:53:15 +01:00
Neel
d177770560
TraceView: Fix cursor not matching visual guide in the timeline when resizing (#76587)
* Reset bounds on mouse leave event from trace graph

* trigger CI

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2023-11-29 09:52:49 +01:00
Adela Almasan
a6c9a9db92
StatusHistory: Add tooltip multi mode (#78703) 2023-11-28 21:23:05 +00:00
Darren Janeczek
a5377f85ce
data-trails: hightlight current node and its ancestry (#78660)
* feat: data-trails: show current node and ancestry
2023-11-28 13:16:22 -05:00
Andre Pereira
01ad2918d6
Data trails: Store recent and bookmarked trails in local storage (#78508)
* WIP

* Restore trail using history and updateFromUrl()

* Limit stored recent trails to 20

* Rename and refactor

* Bookmark and store trails

* No export

* Remove unused event

* Organise

* Address feedback

* Added button to remove bookmark. Added trail to home card

* Added tests for trail store

* Update

* remove import

* Fix home not updating after removing bookmark. Remove trail for home card

* Remove button no longer absolute

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-28 18:00:08 +00:00
Giordano Ricci
98da1fa0b3
Explore: Deprecate exploreId in QueryEditorProps (#78692)
* Explore: Deprecate exploreId in QueryEditorProps

* remove exploreId from cloudwatch editor
2023-11-28 14:55:20 +00:00
Kristina
fc4b0faacd
Explore: Hide support button (#78710)
Only show support button if there is a dashboard
2023-11-28 07:30:58 -06:00
Joey
a49e1ded8f
Tracing: Full text search (#78628)
* Full text search

* Tests
2023-11-28 13:29:04 +00:00
Matias Chomicki
630b8a30be
Popover menu: update tracking attributes + move under Explore/logs (#78739)
* Popover menu: update event tracking attributes

* Popover menu: move under explore/loggs

* Popover menu: narrow down support to only Explore app
2023-11-28 15:21:37 +02:00
Matias Chomicki
ec7d09b8e0
Popover menu: refactor event tracking (#78733) 2023-11-28 12:44:08 +00:00
Dominik Prokop
6e4418ffd2
DashboardScene: Show plugin extensions in panel menu (#78702)
* DashboardScene: Show plugin extensions in panel menu

* FIx test

* Nits

* Nit

* Review nits
2023-11-28 03:26:09 -08:00
Oscar Kilhed
6e0a06e52a
Transformations: Fix regression transformation adding predictions after last x point of data (#78724)
Fix regression stransformation prediction spacing
2023-11-28 11:28:26 +01:00
Josh Hunt
eea35b9eb7
Login: Improve accessibility of Login form (#78652)
* Chore: Fix a11y debt in Login form

* fix tests

* token styles

* more styles

* pa11y

* fix pa11y
2023-11-28 10:22:20 +00:00
Gilles De Mey
7dbbdc16a3
Alerting: useAbility hook for alert rules (#78231) 2023-11-28 11:48:42 +02:00
Todd Treece
529271d7a8
Perf: Disable core kind registry (#78568)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-28 09:09:54 +01:00
Sven Grossmann
a73be4b963
Loki: Cancel inflight /stats requests when new requests are issued (#78654)
* add requestId to stats requests

* add `exploreId`

* change from `exploreId` to `useId`

* change ref id

* add comment
2023-11-27 19:36:53 +01:00
Adela Almasan
4aea1107b3
Tooltip: Improved Trend tooltip (#77251)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-11-27 12:12:24 -06:00
Dominik Prokop
5015b5b2b0
DashboardScene: Add inspect submenu to panel menu (#78679)
* DashboardScene: Add inspect submenu to panel menu

* Test fix
2023-11-27 08:23:16 -08:00
Khushi Jain
b7c74a1af6
Alerting: Migrate from aria-label e2e selectors to data-testid (#78437)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-11-27 16:24:31 +01:00
Lucy Chen
6708848056
Add tracking dashboard toolbar options v2 (#78237)
* Add share, save, add tracking

* change event name

* revert naming

* change naming of action
2023-11-27 09:53:48 -05:00
ismail simsek
5eae18c166
InfluxDB SQL: Don't show dataset dropdown (#78553)
* Don't show dataset dropdown

* Default dataset is iox

* introduce sql dialect
2023-11-27 15:23:54 +01:00
Sven Grossmann
177496a686
Loki: Filter by labels based on the type of label (structured, indexed, parsed) (#78595)
* add label addition based on labeltype

* add `logRowToDataFrame`

* change to single row dataframe

* add documentation

* add tests for `LogDetailsRow`

* add tests for datasource

* remove row

* update tests

* fix tests

* PR comments

* removed comment

* add comment

* remove params

* remove unused jsdoc

* move `getLabelTypeFromFrame` to `languageUtils`

* add tests

* remove `refId` and use `frame`

* fix tests

* Update public/app/plugins/datasource/loki/modifyQuery.ts
2023-11-27 14:29:00 +01:00
Matias Chomicki
5db420619d
Logs Popover Menu: close menu on right click (#78674)
LogRows: close menu on right click
2023-11-27 12:36:55 +00:00
Jack Westbrook
1112e9006b
Bug: Fix broken ui components when angular is disabled (#78208)
fix(frontend): move bootstrap import to app so disabling angular doesnt break ui
2023-11-27 10:43:55 +01:00
Dominik Prokop
703deeff0b
DashboardScene: Add time picker keybindings (#78632)
* grafana/data: Add time range zoom out util

* Add keybindings for time range zoom out

* TimeRangePicker: change the way absolute time range is detected

* Depend on dashboard scene tructure rather

* Revert "grafana/data: Add time range zoom out util"

This reverts commit bc1602db57.

* Lint

* Lint

* dashboardSceneGraph tests
2023-11-27 00:32:23 -08:00
Ezequiel Victorero
0f25f18739
Analytics: Refactor dashboard sharing analytics (#78612) 2023-11-24 15:10:48 -03:00
Fabrizio
6c7beb1ec3
Tempo: Allow quotes in tag names and attributes (#77864) 2023-11-24 17:24:40 +01:00
Darren Janeczek
53e6182257
Data-trails: prevent creating new metrics node when clicking on historical metric node (#78569)
* fix: prevent creating new metrics node when clicking on historical metric node

* Adding some initial tests

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-24 11:21:19 -05:00
Oscar Kilhed
ab982e7bd3
Transformations: Add regression analysis transformation (#78457)
* regression analysis first dragt

* Swap to better regression libraries

* fix name

* Interpolate x points instead of using source x points

* clean up ui and add feature toggle

* fix merge error

* change to loop for finding min max, rename resolution

* Add docs

* add docs and tests

* change name to regression analysis

* update docs

* Fix editor labels

* add regression images

* fix docs
2023-11-24 15:49:16 +01:00
Torkel Ödegaard
54bca5e590
DashboardSchema: Remove some old panel types (#78590) 2023-11-24 14:53:28 +01:00
Esteban Beltran
02a079e64a
Plugins: Fix outline for elements inside a plugin page (#78004) 2023-11-24 14:21:17 +01:00
John Martins
4f5db5f177
Azure Monitor: Add Azure Infrastructure Monitoring Dashboard (#78498)
Add Azure Infrastructure Monitoring dashboard
2023-11-24 14:58:48 +02:00
Ashley Harrison
441d24f955
Chore: Remove some gf-form classes (#78601)
* remove some gf-form

* couple more transformations

* clean up Playlists

* review comments

* fix unit tests
2023-11-24 12:09:09 +00:00
Ivana Huckova
8a7eb4b484
Loki: Refactor template variable logic and remove reliance on timeSrv (#78586)
* Loki: Refactor variables support to reuse loic

* Remove redundant methods

* Make parseStringToVariableQuery private
2023-11-24 12:52:29 +01:00
Ivana Huckova
9306020426
Loki: Update getStats logic and remove reliance on timeSrv (#78603)
* Loki: For stats queries, use timeRange provided by query editor

* Add comment

* Update public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Rebane variable

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-11-24 11:38:36 +01:00
Ivana Huckova
0893fa1e84
Loki: Fix trailing comma in renderers for json, logfmt, keep and drop operations (#78594)
* Loki: Fix renderers for json, logfmt, keep and drop pipe operations

* Make spacing and trimming more consistent

* Fix
2023-11-23 15:39:10 +01:00
Torkel Ödegaard
a98a39c418
DashboardScene: Fixes angular panels inside collapsed rows (#78532)
* DashboardScene: Fixes angular panels inside collapsed rows

* Update
2023-11-23 15:15:36 +01:00
Joey
4f46fb412c
Tempo: Embed flame graph in span details (#77537)
* Embed flame graph

* Update test

* Update test

* Use toggle

* Update test

* Add tests

* Use const

* Cleanup

* Update profile tag

* Move flame graph out of tags, remove request and other cleanup + tests

* Update test

* Set flame graph by profile id and simplify logic

* Cleanup and redrawListView

* Create/use feature toggle
2023-11-23 13:36:53 +00:00
Sven Grossmann
be157399d0
Loki: Add structured metadata keys to autocomplete (#78584)
* wip

* remove import

* scope to monaco completions for now

* use `LabelType` enum

* change strucutred metadata documentation

* fix import

* add `responseUtils` tests

* update tests

* fix completions.ts tests

* fix LabelType enum

* fix CompletionDataProvider test
2023-11-23 13:26:57 +01:00
Domas
2402ad67af
Chore: Update "Observability" nav group subtitle (#78579)
Update observability nav group subtitle
2023-11-23 13:53:40 +02:00
Brendan O'Handley
7cf173b651
Opentsdb: Add variables to select when interacting with the metric select (#78558)
add variables to select when interacting with the metric select
2023-11-23 12:32:35 +01:00
Dominik Prokop
58a0ff7459
DashboardScene: Share library panel (#78421)
* DashboardScene: Share library panel

* Add menu item to create library panel

* Test update
2023-11-23 03:30:25 -08:00
Ashley Harrison
5355131aed
Tab: Only make Tab an anchor if a href is passed (#78540)
* initial work

* only make the tab an anchor if it has a href

* move things around for smaller diff

* use content()

* eslint-disable the type assertions

* extract props into common object and add missing return statement
2023-11-23 10:51:07 +00:00
Ieva
778841cabe
Annotations: Remove dashboard permission checks for annotations (#78352)
remove checks for access to dashboard if FlagAnnotationPermissionUpdate is enabled
2023-11-23 10:47:37 +00:00
Josh Hunt
05070385cd
Chore: Refactor TimeRangePicker for aria-label selectors (#78399)
* Change from aria-label to data-testid for e2e selectors

* translate

* update tests

* swap buttons:
2023-11-23 10:39:26 +00:00
Matias Chomicki
02068662c1
Logs: create DataSourceWithQueryModificationSupport + determine popover menu support (#78322)
* DataSourceWithQueryModificationSupportSupport: create interface

* Loki: implement DataSourceWithQueryModificationSupportSupport

* Elasticsearch: implement DataSourceWithQueryModificationSupportSupport

* DataSourceWithQueryModificationSupportSupport: add type guard

* DataSourceWithQueryModificationSupport: rename

* Check for nullish values in guards

* Logs container: replace support map with ds instances map

* Log rows: refactor deselection listener

* Formatting

* Formatting

* DataSourceWithQueryModificationSupport: add missing comment

* Logs container: update method name

* Logs container: check for query modification support

* Create QueryFixType

* QueryFixAction: move back to ds types

* getSupportedQueryModifications: update signature

* getSupportedQueryModifications: update signature
2023-11-23 11:04:23 +01:00
Ivana Huckova
fd5f66083c
Loki: Move convertToWebSocketUrl from Explore to Loki (#78542)
* Move convertToWebSocketUrl to Loki

* Add tests

* Fix test
2023-11-23 11:43:48 +02:00
Jo
5dd5ed9b30
SignedInUser: Only register echo backend if user is signed in (#78545)
fix SignedIn checks
2023-11-23 10:11:53 +01:00
ismail simsek
2e756395f7
InfluxDB SQL: Fix sql query template variable interpolation (#78557)
interpolate sql too
2023-11-23 08:06:20 +01:00
Adela Almasan
5b851d7410
Timeseries: Remove cursor sync when x is not time (#78496) 2023-11-22 16:23:16 -06:00
Nathan Marrs
d269a123e7
XYChart: Minor improvements (#78506)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-11-22 11:50:02 -08:00
Ashley Harrison
4247696402
DockedMegaMenu: Keep undock button (#78461)
* dock undock smoothly

* handle keyboard focus

* use ref instead of state

* run i18n:extract

* undo this change

* make dock/undock first button to focus

* only focus when going to docked, add comment

* minor tweaks
2023-11-22 15:56:36 +00:00
Ashley Harrison
b5d1c8874b
Breadcrumbs: Only dedupe the lowest child node of sectionNav (#78279)
only dedupe sectionNav leaf node
2023-11-22 15:36:49 +00:00
Ashley Harrison
4290ed3d86
Chore: Remove newBrowseDashboards feature toggle (#78190)
* remove all the things

* fix OldFolderPicker tests

* i18n

* remove more unused code

* remove mutation of error object since it's now frozen in the redux state

* fix error handling
2023-11-22 15:22:00 +00:00
ismail simsek
1910a734a6
Chore: Don't show hint for recorded queries (#78422)
Don't show hint on recorded queries
2023-11-22 15:16:06 +01:00
Ivana Huckova
4fd1d92332
Loki: Remove relying on timeSrv.timeRange in LanguageProvider (#78450)
* Loki: Allow setting of timeRange when using languageProvider functions

* Loki: Use timerange where available for start

* Loki: Use timerange where available for fetchLabels

* Loki: Use timerange where available for fetchSeriesLabels

* Loki: Use timerange where available for fetchLabelValues

* Loki: Use timerange where available for getParserAndLabelKeys

* Loki: Update and add tests for fetchLabels

* Loki: Update and add tests for fetchSeriesLabels

* Loki: Update and add tests for fetchSeries

* Loki: Update and add tests for fetchLabelValues

* Loki: Update and add tests for fetchLabelValues

* Loki: Update and add tests for getParserAndLabelKeys

* Update public/app/plugins/datasource/loki/LanguageProvider.test.ts

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Update public/app/plugins/datasource/loki/LanguageProvider.test.ts

Co-authored-by: Matias Chomicki <matyax@gmail.com>

* Not needing to use languageProvider.getDefaultTime in Monaco

* Update comment

* Update getDefaultTimeRange to be ptivate

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-11-22 14:35:15 +01:00
Galen Kistler
392a4342a8
Logs Panel: Table UI - Time range changes not reflecting in table (#78500)
* add hook to update selected dataframe when time range changes
2023-11-22 07:15:29 -06:00
Dominik Prokop
d0b1ceb7d4
DashboardScene: Support Textbox variables (#78525) 2023-11-22 04:43:27 -08:00
Levente Balogh
503176603f
Plugins: Support markdown in custom plugin deprecation messages (#78251)
* feat: support markdown in custom deprecation messages

* fix: use a div wrapper for rendered markdown

* feat: update the default deprecation message
2023-11-22 14:20:58 +02:00
Ivana Huckova
02090f71d2
@grafana/data: Add serializeParams (#78468)
* Move serializeParams to @grafana/data

* Update comment

* Update solution in Tempo

* Fix type assertions

* Use toUrlParams in serializeParams

* Update data sources

* Update

* Update packages/grafana-data/src/utils/url.ts
2023-11-22 13:15:29 +01:00
Ieva
9a3b2937aa
Data sources: Refactor logic for naming new data sources (#78479)
* move the name finding logic for new data sources from frontend to backend

* cleanup and fix test

* linting

* change the way the number after the ds type is incremented - keep incrementing it without adding more hyphens

* enterprise spec updates (unrelated to the PR)
2023-11-22 09:57:26 +00:00
Sonia Aguilar
2acf153a26
Alerting: Simplify routing in alert form - part1 (#78040)
* Add routing option tabs

* Use alertingSimplifiedRouting feature toggle

* Move simplified routing tab to a separate component:SimplifiedRouting

* Populate contact point selector with the right values

* Show alert manager icons

* Fix descriptions

* Remove clear button on ContactPointSelector and save updated reducer state in the form

* Load contact points and manual option from rule data in RuleFormValues

* make contact point selector not clearable

* Refactor

* Add link to contact points view

* Move ContactPointSelector to a separate file

* Refactor: move hoook useReceiversMetadataMapByName to a separate file

* Update Need more info texts

* Address some PR review comments

* Use useContactPointsWithStatus hook and wrap each ContacPointSelector with AlertmanagerProvider

* use getAlertManagerDataSourcesByPermission instead of useGetAlertManagersMetadata in NotificationPreview

* Update enum

* Remove css style

* remove console

* update contact point selector

* file cleanup

* adds summary as description

* Update text in manual tab

* Fix preview routing not checking if alert manager can handle grafana alerts

* Fix typo

* remove unused location form field

* fix prettier

* fix test

* Remove unused location form field from AlertRuleNameInput

* Only use internal AlertManager for now

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-11-22 10:15:33 +01:00
Ihor Yeromin
bb316a7c24
Status History: Improve tooltip (#76647)
* feat(state-timeline-tooltip): improve status history tooltip

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-11-22 09:55:29 +01:00
Javier Ruiz
b7a332276a
[sceneVariablesSetToVariables]: Use type guards from scenes to type variable (#78488)
* Update grafana/scenes version to 1.24.0

* Use type guards to properly type variables

* Update scenes to version 1.24.1
2023-11-22 09:47:44 +01:00
Torkel Ödegaard
ae3d70af3e
DashboardScene: Link to explore should take adhoc filters into account (#78440)
* DashboardScene: Link to explore should take adhoc filters into account

* Fix imports
2023-11-22 09:45:12 +01:00
Torkel Ödegaard
393d103782
DashboardScene: Fixes issue with variables without current property (#78481) 2023-11-22 00:40:39 -08:00
Andres Martinez Gotor
5a19813771
Chore: Display core plugins when showing all in the catalog (#78447) 2023-11-22 09:04:54 +01:00
Grafana I18n Bot
91a0624be6
I18n: Crowdin sync (#78485)
* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

* New translations grafana.json (French)

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

* New translations grafana.json (French)

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

* New translations grafana.json (French)

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

* New translations grafana.json (French)

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-22 05:22:33 +00:00
Jev Forsberg
a3576fc8cf
Baldm0mma/docs expansion (#78142)
* baldm0mma/docs_expansion/ update Convert field type

* baldm0mma/docs_expansion/ update Extract fields

* baldm0mma/docs_expansion/ update Lookup fields from resource

* baldm0mma/docs_expansion/ update Filter data by query refId

* baldm0mma/docs_extension/ update Filter fields by name

* baldm0mma/docs_expansion/ update Format time

* baldm0mma/docs_expansion/ update Grouping to matrix

* baldm0mma/docs_expansion/ update Create heatmap

* baldm0mma/docs_extension/ updte Histogram

* baldm0mma/docs_expansion/ update Join by field

* baldm0mma/docs_expansion/ update Join by labels

* baldm0mma/docs_expansion/ update Labels to fields

* baldm0mma/docs_expansion/ update Limit

* baldm0mma/docs_expansion/ update Merge

* baldm0mma/docs_expansion/ update Oraganize fields

* baldm0mma/docs_expansion/ update Partition by values

* baldm0mma/docs_expansion/ update Prepare time series

* baldm0mma/docs_expansion/ update Rename by regex

* baldm0mma/docs_expansion/ update Rows to fields

* baldm0mma/docs_expansion/ update Series to rows

* baldm0mma/docs_expansion/ update Time series to table transform

* baldm0mma/docs_expansion/ build docs

* baldm0mma/docs_expansion/ update Prepare time series

* baldm0mma/docs_expansion/ build markdown

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* baldm0mma/docs_expansion/ update Rows to fields conclusion

* baldm0mma/docs_expansion/ update sort by

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* baldm0mma/docs_expansion/ build markdown

* baldm0mma/docs_expansion/ update note in Add field from calculation

* baldm0mma/docs_expansion/ update spelling

* baldm0mma/docs_expansion/ update wording

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* Update public/app/features/transformers/docs/content.ts

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

* baldm0mma/docs_expansion/ update Partition by values

* baldm0mma/docs_expansion/ update enhancements

* Update public/app/features/transformers/docs/content.ts

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

* baldm0mma/docs_expansion/ rem whitesapce

* baldm0mma/docs_expansion/ build markdown

* Update public/app/features/transformers/docs/content.ts

* baldm0mma/docs_expansion/ update whitespace

* baldm0mma/docs_expansion/ update Extract fields

* baldm0mma/docs_expansion/ update with @codeincarnate's suggestions

* Update public/app/features/transformers/docs/content.ts

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

* Apply suggestions from code review

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

* baldm0mma/docs_expansion/ update syntax

* baldm0mma/docs_expansion/ update transformation names

* baldm0mma/docs_expansion/ build markdown

* baldm0mma/docs_expansion/ dataset fix

* baldm0mma/docs_expansion/ build docs

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-11-21 12:05:11 -07:00
Ophir LOJKINE
a57dc513d3
PublicDashboards: Typo in acknowledge checkboxes information (#77375)
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2023-11-21 15:02:47 -03:00
Jev Forsberg
4275f2dc8c
Chore: Update e2e selectors for Transformations (#78426)
* baldm0mma/e2e_selector_migration/ update labels

* baldm0mma/e2e_selector_migration/ run prettier

* baldm0mma/e2e_selector_migration/ add test

* baldm0mma/ update results

* baldm0mma/e2e_selector_migration/ update betterer
2023-11-21 09:31:56 -07:00
Julien Duchesne
5acb981680
Swagger: Rename API Key AddCommand (#78491)
As a global definition, `AddAPIKeyCommand` is clearer
2023-11-21 11:25:21 -05:00
Haris Rozajac
5b9097e7ff
Explore: Wrap RawPrometheusContainer with PanelChrome (#78084)
* Use LoadingState type for loading prop

* Fix test
2023-11-21 09:17:41 -07:00
Leon Sorokin
d1cffdc58a
HeatmapTooltip: Refactor to simplify upcoming PRs (#78436) 2023-11-21 10:16:45 -06:00
Ivana Huckova
0e44438d08
Loki: Change import for CustomVariableModel and remove unnecessary import of initialCustomVariableModelState (#78456) 2023-11-21 16:28:02 +01:00
Torkel Ödegaard
0119a9f0f2
DashboardScene: Fixes focus panel z-index issue (#78474) 2023-11-21 16:23:03 +01:00
Juan Cabanas
cbb607b36f
Revert "Panel: omit query API call when the panel is a row (#75847)" (#78475) 2023-11-21 12:00:03 -03:00
Ashley Harrison
b843221730
Loading screen: Ensure bounce animation isn't blocked by main thread (#78469)
remove transform-origin to ensure animation gets put on compositor thread
2023-11-21 14:43:00 +00:00
Grafana I18n Bot
894d97984c
I18n: Crowdin sync (#78471)
* New translations grafana.json (Spanish)

* New translations grafana.json (German)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-21 14:40:36 +00:00
Torkel Ödegaard
2d9f5a6b71
DashboardScene: Fixes wrapping panel time override (#78470) 2023-11-21 15:30:22 +01:00
kay delaney
9e11779921
Chore: Clean up usage of deprecated stylesFactory function (#78419) 2023-11-21 14:01:53 +00:00
Kristina
165de515cd
Explore: Default synced to true, only show synced status if panes are split (#77759)
* Default synced to true, only show synced status if panes are split

* Don’t default sync to true until split happens, handle syncing when init or history change sync happens

* Sync times if origin pane and new pane have the same range
2023-11-21 07:55:01 -06:00
Grafana I18n Bot
1f49d0b662
I18n: Crowdin sync (#78455)
* New translations grafana.json (French)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-21 13:52:20 +00:00
Matias Chomicki
d85f03ec26
Loki: Fix conditional for derived fields using regex type (#78464)
Derived fields: fix conditional for regex fields
2023-11-21 14:37:05 +01:00
Aditi Patel
bd6f8e6ef7
fix: Explore -Tables missing vertical spacing (#78149)
* fix: added vertical space to tables

* chore: used theme for spacing

* fix: extended themeable2

* test: fixed TableContainer test with theme
2023-11-21 12:20:57 +00:00
Javier Ruiz
ee42f41e0e
[sceneVariablesSetToVariables]: Manually check variable type, instead of instanceof (#78407)
Check type instead of instanceof, manually type variable
2023-11-21 10:40:30 +01:00
Grafana I18n Bot
eae0d8b12d
I18n: Crowdin sync (#78427)
* New translations grafana.json (German)

* Github Action: Auto-fix i18n files

* New translations grafana.json (German)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-21 09:39:08 +00:00
Ivan Babrou
860b3bbce7
Dashboards: Implement natural sort for query variables (#78024) 2023-11-21 10:17:38 +01:00
Ivana Huckova
9200e17b18
Loki: Use TemplateSrv from @grafana/runtime (#78196)
Loki: Use TemplateSrv from grafana/runtime
2023-11-21 10:11:11 +01:00
Kevin Yu
7f7d912af7
CloudWatch: Call query method from DataSourceWithBackend to support public dashboards (#77532)
* CloudWatch: call query method from DataSourceWithBackend to support public dashboards

* add test

* remove unneeded properties from test case

* update betterer

* add parens to group related logic

* remove unnecessary aliasing of variable

* use t.Cleanup

* remove redundant check

* add comment
2023-11-20 14:44:22 -08:00
Darren Janeczek
efdfa29fe2
fix: label_values w/ empty filters in prom datasource variable query (#78242)
* fix: handle empty filters in prometheus datasource variable query function `label_values`
2023-11-20 16:36:06 -05:00
Brendan O'Handley
ae164df698
Prometheus: Fix UI bug where a label with empty string shows as populated with the deleted label filter value (#78153)
* preserve label with empty string

* fix side effect of having undefined show up in the editor select for value

* re render label item when label filters change
2023-11-20 21:33:16 +02:00
Torkel Ödegaard
d03b291eed
Explore: Fixes issue with adhoc filters when coming from dashboards (#78339) 2023-11-20 20:22:01 +01:00
Adela Almasan
e4fb112d6e
Auto-generate: Scrollable history container (#77895) 2023-11-20 12:01:25 -06:00
Grafana I18n Bot
5ca5a95e63
I18n: Crowdin sync (#78418)
* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-20 17:23:41 +00:00
Torkel Ödegaard
d70d939294
DashboardScene: Basics stubs for starting with editviews (dashboard settings) (#78209) 2023-11-20 18:19:30 +01:00
Grafana I18n Bot
97c8b2d192
I18n: Crowdin sync (#78402)
* New translations grafana.json (Spanish)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-20 16:58:42 +00:00
Ben Sully
35b1e49024
Alerting: Add actions extension point to alert instances table view (#77900)
This PR adds a new [extension point][] to each row of the
alert instances table. This allows plugins to add actions
to a dropdown menu in the rightmost column of the table.
Those actions are passed the alert instance so can use it
for contextual handling.

See https://github.com/grafana/machine-learning/pull/3461
for an example of how this can be used (e.g. by Grafana Sift
here).
2023-11-20 17:43:36 +01:00
Haris Rozajac
499915ff9a
Explore: Rename RichHistoryCard for clarity and consistency (#78358)
Rename for clarity and consistency
2023-11-20 07:16:08 -07:00
Grafana I18n Bot
e015ce6dc6
I18n: Crowdin sync (#78394)
* New translations grafana.json (Spanish)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-20 14:01:12 +00:00
Ieva
87c3703a0d
Data sources: show data source menu to users who only have access to create a data source (#78347)
* show data source menu to users who only have access to create a data source

* return early if missing permissions
2023-11-20 13:59:02 +00:00
Giordano Ricci
53642b60ed
Explore: handle URLs parse errors (#77784)
* Explore: handle URLs parse errors

* minor modifications

* tentative fix

* update docs

* omit v0 params from the final url

* Apply suggestions from code review

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* remove safeParseJson, make parse return an object

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2023-11-20 13:54:00 +00:00
Ida Štambuk
b56d7131bd
Cloudwatch: Migrate Config editor and Variable editor to new form stying under feature toggle (#77838) 2023-11-20 14:40:02 +01:00
Grafana I18n Bot
2cfea09d4c
I18n: Crowdin sync (#78382)
* New translations grafana.json (Spanish)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Spanish)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-20 15:21:24 +02:00
Levente Balogh
12c245720c
Plugins: Share plugin context with the component-type extensions (#78111)
feat: wrap component type extension with plugin context
2023-11-20 14:43:11 +02:00
Grafana I18n Bot
db902fb3a9
I18n: Crowdin sync (#78371)
* New translations grafana.json (Spanish)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

* New translations grafana.json (Spanish)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-11-20 11:01:48 +00:00
Esteban Beltran
cfc67a9e2d
Sandbox: do not load grafana signed app plugins into the sandbox (#78334)
* Sandbox: do not load grafana signed app plugins into the sandbox

* remove unused dependency
2023-11-20 12:00:31 +01:00
Brendan O'Handley
13d67be0a9
Prometheus: query builder, handle regex in parentheses for label filters value (#78238)
handle regex in parentheses for label filter value
2023-11-17 21:59:47 -05:00
Nathan Marrs
0088fe0211
Docs: Update transform docs (#78290) 2023-11-17 12:53:04 -08:00
Kyle Cunningham
b9fa9d4a11
Timeseries to table transformation: Improve time series detection (#77841)
* Improve time series detection

* Prettier

* Add test

* Update packages/grafana-data/src/dataframe/utils.ts

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

* Ensure correct time field support and set maximum size

* Look at each field to see if they are time series

* Add further tests

* Prettier

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2023-11-17 14:52:26 -06:00
Nathan Marrs
3e08abff3b
Gauge: Simplify gauge dimension panel options (#76216)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2023-11-17 21:59:30 +02:00
Fabrizio
f3b23611c5
Tempo: Allow !~ in Search tab (#78315) 2023-11-17 17:10:28 +01:00
Alex Khomenko
2976f0ebe6
Admin: Fix Stack direction (#78320) 2023-11-17 14:08:41 +02:00
Mihai Doarna
9da9bbf907
Add swagger code for the removeProviderSettings API method (#78270)
* add swagger code for the remove provider SSO settings API method

* replace fine grained with role based

* address feedback
2023-11-17 14:07:26 +02:00
Ivan Ortega Alba
f32f8a160e
SaveDashboard: Reduce time to open drawer when many changes applied (#78283) 2023-11-17 10:02:53 +01:00
Nathan Marrs
7397f975b6
Transformations: Support enum field conversion (#76410)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-11-16 09:44:30 -08:00
Galen Kistler
1dec96ebe7
Logs Panel: Table UI - Multiple dataframes (queries) (#77589)
* Add dropdown to logs table UI to allow users to select which dataFrame to visualize in the table
2023-11-16 10:42:28 -06:00
Ivana Huckova
792edfb293
Loki: Fix import for intervalToMs (#78265)
* Loki: Use TemplateSrv from grafana/runtime

* Loki: Fix import for intervalToMs

* Revert "Loki: Use TemplateSrv from grafana/runtime"

This reverts commit d573925e37.
2023-11-16 15:08:45 +01:00
Piotr Jamróz
3d4940cf85
QueryHistory: Improve test performance (#78255)
Improve performance
2023-11-16 15:06:37 +01:00
Gilles De Mey
2659409191
Breadcrumbs: Only dedupe breacrumb items for matching node names (#78077)
only dedupe breactumb items for matching node names
2023-11-16 13:46:25 +00:00
Gilles De Mey
0e5ce50b90
Page: Add support for tab counters (#78127) 2023-11-16 13:31:14 +00:00
Ashley Harrison
2c0c51a0df
Chore: improve types (#78126)
* fix some types

* more type updates

* some more fixes

* more changes

* string instead of unknown

* more like original logic

* remove outdated comment

* update betterer
2023-11-16 12:39:12 +00:00
Matias Chomicki
9cb303c3f7
Log Rows: Added popover menu with filter options when a log line is selected (#75306)
* LogRow: detect text selection

* LogRow: refactor menu as component

* LogRow: add actions to menu

* LogRow: hack menu position

* Remove unsused imports

* LogRowMessage: remove popover code

* PopoverMenu: refactor

* LogRows: implement PopoverMenu at log rows level

* PopoverMenu: implement copy

* PopoverMenu: receive row model

* PopoverMenu: fix onClick capture issue

* Explore: add new filter methods and props for line filters

* PopoverMenu: use new filter props

* Explore: separate toggleable and non toggleable filters

* PopoverMenu: improve copy

* ModifyQuery: extend line filter with value argument

* PopoverMenu: close with escape

* Remove unused import

* Prettier

* PopoverMenu: remove label filter options

* LogRow: rename text selection handling prop

* Update test

* Remove unused import

* Popover menu: add unit test

* LogRows: update unit test

* Log row: hide the log row menu if the user is selecting text

* Log row: dont hide row menu if popover is not in scope

* Log rows: rename state variable

* Popover menu: allow menu to scroll

* Log rows: fix classname prop

* Log rows: close popover if mouse event comes from outside the log rows

* Declare new class using object style

* Fix style declaration

* Logs Popover Menu: add string filtering functions (#76757)

* Loki modifyQuery: add line does not contain query modification

* Elastic modifyQuery: implement line filters

* Modify query: change action name to not be loki specific

* Prettier

* Prettier

* Elastic: escape filter values

* Popover menu: create feature flag

* Log Rows: integrate logsRowsPopoverMenu flag

* Rename feature flag

* Popover menu: track interactions

* Prettier

* logRowsPopoverMenu: update stage

* Popover menu: add ds type to tracking data

* Log rows: move feature flag check

* Improve handle deselection
2023-11-16 11:48:10 +02:00
Andres Martinez Gotor
05cf8c9253
Bug Fix: Only display latest version if a plugin is not installed (#78178) 2023-11-16 10:47:42 +01:00