Commit Graph

19138 Commits

Author SHA1 Message Date
Esteban Beltran
0b03344baa
Chore: Update to typescript 5 (#76511)
* Update dependency typescript to v5

* Update yarn.lock

* Fix typescript errors

* Update typescript version sdk

* Revert useDescription.ts

* Fix ts errors

* Fix Typescript errors after Symbol.unscopables type change

* Fix colormanipulator errors

* Update packages/grafana-data/src/vector/FunctionalVector.ts

* Fix ts errors in dashboardmigrator

* Fix sandbox component typescript error

* Update yarn

* Update to typescript 5.2

* Fix typescript error

* update typescript/vscode patch/sdk/whatever

* fix ts errors in elasticsearch

* Fix two errors in alerting

* Fix error in dashboard-scene

* Fix errors in dashboard tests

* Fix errors in explore tests

* Fix error in plugins sandbox

* fix error in DashboardQueryRunner

* fix errors in grafana-data

* fix errors in PanelChrome story

* update betterer

* better fix for cloud monitoring

* fix error in reducer tester

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-11-07 13:20:20 +00:00
Esteban Beltran
9585e2b19c
Plugins: Only track metrics for grafana packages and core packages (#77785)
* Plugins: Only track metrics for grafana packages and core packages

* Move bind after cache check

* Update tests for metrics tracking
2023-11-07 13:56:26 +01:00
Piotr Jamróz
b7f854a06c
Correlations: Fix incorrect state transitions in transformations editor (#77434)
* Extract transformations editor row to a seprate component

* Use css object instead of string literals

* Update .betterer.results

* Post merge fixes

* Bring back validation rules

* Switch to css/object

* Post-merge fixes

Ensuring Stack from grafana-ui is used after conflicts with 25779bb6e5
2023-11-07 12:17:02 +01:00
Fabrizio
f19830b543
Tempo: Support comments in TraceQL (#77646) 2023-11-07 11:27:03 +01:00
Fabrizio
39014e73f7
Tempo: Fix TraceQL autocompletion with missing } (#77365) 2023-11-07 11:10:57 +01:00
Gilles De Mey
be436ec6f6
Alerting: Adds contact point sorting and searching (#77390) 2023-11-07 11:05:12 +01:00
Ivana Huckova
d4a257bc8e
Logs: Update logic to process logs dataPlane frame with labels field (#77708)
* Logs: Update dataplane logic to use labels instead of attributes

* Update Loki logs data plane data frame according to specs

* Remove only in test
2023-11-07 10:53:10 +01:00
kay delaney
4a5b8643ae
ShareModal: Implement panel embed tab for scenes (#77062)
* ShareModal: Implement panel embed tab for scenes

* Fix url generation

* Locale

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-11-07 01:19:17 -08:00
Joey
de9ee2e127
Tempo: Update tag in span based on Pyroscope API (#77701)
* Update tags key

* Update link tags

* Update test
2023-11-07 08:45:09 +00:00
Joey
6e929b2b53
Tempo: Update the traces data in the testdata data source (#77198)
Update the traces data in the testdata data source
2023-11-07 08:24:11 +00:00
Esteban Beltran
7107ba0104
Sandbox: Patch history.replaceState to make it work inside the sandbox (#76255)
* Patch history.replaceState api instead of doing a live distortion

* Add better patching mechanism

* Remove console log
2023-11-07 09:09:17 +01:00
Ihor Yeromin
4b87f38f66
Bar Gauge: Add max height option (#76042)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-11-07 07:11:13 +02:00
ismail simsek
581b93c124
InfluxDB: Fix query call with flux and sql when backend migration disbaled (#77760)
Only run through with classicQuery if the language is influxql and backend migration is disabled
2023-11-07 00:14:27 +02:00
Taewoo K
4fbd9a55b2
Remove feature toggle data source page header (#77751)
* remove feature toggle:dataSourcePageHeader

* remove feature flag: dataSourcePageHeader

* remove unused prop:alertingSupported
2023-11-06 15:21:15 -05:00
ismail simsek
73f25f7ccc
Prometheus: Remove unsupported browser access mode related code (#77316)
* Remove unused code

* More cleaning

* Delete more

* betterer

* Small import fixes

* Fix unit test

* Fix unit test

* uncomment

* Remove PromLink component since it was removed from Prometheus data source

* Clean the direct/browser access code

* Remove directUrl

* Big cleaning

* unit test fixing

* cleaning

* fix metric_find_query tests

* clean result_transformer tests

* betterer

* Remove unused type

* betterer
2023-11-06 18:03:05 +01:00
Andre Pereira
8aa5d470ca
Tempo: Fix streaming query restart after Grafana server reboot (#77614)
* Fix streaming query restart after Grafana server reboot

* TraceQL Search filter name improvements

* Add flag to enable streaming in tempo docker block

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2023-11-06 18:29:59 +02:00
Alex Khomenko
25779bb6e5
Stack: Use the component from grafana/ui (#77543)
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports

* Replace the import from experimental

* Cleanup

* Remove invalid prop

* Add flexGrow

* Remove Stack used in Field

* Remove import
2023-11-06 18:15:52 +02:00
Dominik Prokop
dff8dc86d6
PanelInspector: Always use the latest panel data (#77732)
PanelInspector: Always use the latest panel data
2023-11-06 07:35:20 -08:00
Andrei Golubkov
e6bdf0029d
Loki: Add tests to cover NestedQueryList.tsx (#77331)
Loki: Add tests to cover NestedQueryList.tsx.
Covered cases: rendering list, shows explanations and call onChange when remove button click.

Co-authored-by: Ivana Huckova <ivana.huckova@gmail.com>
2023-11-06 16:12:46 +01:00
Matias Chomicki
7e1110f1f9
Log Row: memoize row processing (#77716)
* LogRow: memoize row processing

* Rename method
2023-11-06 16:59:48 +02:00
Ryan McKinley
5e7f6e8699
Snapshots: Do not return internal database ids (#77672) 2023-11-06 06:53:52 -08:00
Gilles De Mey
e61ebd4b06
Alerting: Do not show missing integration while loading oncall plugin status (#77710) 2023-11-06 15:51:36 +01:00
Gilles De Mey
901a6bfa69
Alerting: Use correct URL for modify export (#77714) 2023-11-06 15:50:29 +01:00
Alexander Zobnin
a558d287a7
Role picker: Remove unnecessary table wrapper (#77707) 2023-11-06 15:33:58 +01:00
Ashley Harrison
b6e2db7d91
Navigation: Report megamenu state when clicking a navigation item (#77705)
report megamenu state when clicking a navigation item
2023-11-06 14:32:29 +00:00
Sonia Aguilar
df7b760f37
Alerting: Disable cache in rktq when fetching export data. (#77678)
* Disable cache in rktq when fecthing export rules group

* Fix export rules data being cached

* Disable cache for the rest of export endpoints
2023-11-06 15:15:53 +01:00
Ashley Harrison
c0afa74876
QueryRows: Fix being able to reorder rows with keyboard (#77355)
* Revert "Explore: A tooltip for reorder icon in query operation (#75978)"

This reverts commit 76e102d1a3.

* update type

* CI driven development
2023-11-06 13:52:50 +00:00
Ashley Harrison
d1e52d4788
Chore: type fixes (#77618)
* type fixes

* couple more

* just a couple more

* small fixes to prometheus typings

* improve some more datasource types
2023-11-06 11:28:44 +00:00
Sonia Aguilar
f88a0f36ec
Alerting: Avoid alert list view component being unmounted every time we fetch new data (#77631)
* Avoid view component being unmounted any time we fetch new data

* Render loading indicator only when loading data for the first time

* Remove unnecessary useRef
2023-11-06 08:35:42 +01:00
Ashley Harrison
d68d31c63c
Navigation: Hide Undock menu button when docked (#76965)
* small dock menu exploration

* fix e2e tests

* revert back to web-section-alt
2023-11-03 17:07:15 +00:00
kay delaney
c98add6e5a
Dashboards: Fix issue causing crashes when saving new dashboard (#77620)
Closes #77593
2023-11-03 18:33:59 +02:00
Alyssa Bull
036ec72206
CloudMonitoring: Warn users that query will be lost on switch (#76836) 2023-11-03 10:06:18 -06:00
Alyssa Bull
0f4bb73fbc
Azure Monitor: Select all Event Types by default (#77603) 2023-11-03 10:04:25 -06:00
Gilles De Mey
3dac37380d
Alerting: Fix export with modifications URL when mounted on subpath (#77622) 2023-11-03 16:36:53 +01:00
Andrew Hackmann
dc1b4ceb06
Azure monitor/remove reference to core config (#77601)
remove app config
2023-11-03 10:18:02 -05:00
Victor Marin
61d63d3034
Transformations: Cumulative and window modes for Add field from calculation (#77029)
* cumulative sum

* refactor and create new mode

* refactor - use reduceOptions for new mode also

* revert naming

* Add window function, rename statistical to cumulative (#77066)

* Add window function, rename statistical to cumulative

* Fix merge errors

* fix more merge errors

* refactor + add window funcs

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* add ff + tests + centered moving avg

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* make sum and mean cumulative more efficient (#77173)

* make sum and mean cumulative more efficient

* remove cumulative variance, add window stddev

* refactor window to not use reducer for mean. wip variance stdDev

* fix tests after optimization

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>

* optimize window func (#77266)

* make sum and mean cumulative more efficient

* remove cumulative variance, add window stddev

* refactor window to not use reducer for mean. wip variance stdDev

* fix tests after optimization

* fix test lint

* optimize window

* tests are passing

* fix nulls

* fix all nulls

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>

* change window size to be percentage

* fix tests to use percentage

* fixed/percentage window size (#77369)

* Add docs for cumulative and window functions of the add field from calculation transform. (#77352)

add docs

* splling

* change WindowType -> WindowAlignment

* update betterer

* refactor getWindowCreator

* add docs to content.ts

* add feature toggle message

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2023-11-03 16:39:58 +02:00
Jacob Zelek
6bf4d0cbc6
DashboardGrid: Add support to filter panels using variable (#77112)
* DashboardGrid panel filter

* Missed segment and changes per PR discussion

* Hide feature flag from docs

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-11-03 05:15:54 -07:00
Ashley Harrison
f32bc17422
Navigation: Use LoadingBar in CommandPalette (#77506)
try using LoadingBar in CommandPalette
2023-11-03 09:54:25 +00:00
Alexander Zobnin
dcdd334663
RolePicker: Use portal to render menu (#77499)
* RolePicker: Use portal for menu

* Remove logging

* Fix submenu styles

* Fix ROLE_PICKER_MAX_MENU_WIDTH calculation

* Fix first menu open glitch

* Fix menu closing on ckick

* Fix menu position
2023-11-03 11:06:51 +02:00
Nathan Marrs
fb2b1c2e13
Canvas: Fix ability to draw arrows (#77573)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-11-02 22:55:31 +02:00
Kristina
9e0ca0d113
Correlations: Add transformations to Explore Editor (#75930)
* Add transformation add modal and use it

* Hook up saving

* Add transformation vars to var list, show added transformations

* Form validation

* Remove type assertion, start building out transformation data in helper (WIP)

* Style expression better, add delete logic

* Add ability to edit, additional styling on transformation card in helper

* simplify styling, conditionally run edit set up logic

* Keep more field information in function, integrate it with new editor

* Show default label on collapsed section, use deleteButton for confirmation of deleting transformations

* Change transformation add calculations from function to hook, add label to collapsed header, add transformation tooltip

* Make correlation and editor dirty state distinctive and integrate, WIP

* Track action pane for more detailed messaging/actions

* Better cancel modal logic

* Remove changes to adminsitration transformation editor

* Remove debugging line

* Remove unneeded comment

* Add in logic for closing editor mode

* Add tests for modal logic

* Use state to build vars list for helper

* WIP

* Fix labels and dirty state

* Fix bad message and stop exiting mode if discard action is performed

* Fix tests

* Update to not use unstable component and tweak default label
2023-11-02 15:09:30 -05:00
Dominik Prokop
6e80a3d59b
DashboardScene: Viewer role only support (#76748)
* Allow starring DashboardScene

* Add feature toggle to enable dashbaord scene for viewers

* Basics for proxying viewers to a dashboard scene

* Removed isHomeDashboard flag

* Don't use proxy for rendering dashboard page

* Revert "Don't use proxy for rendering dashboard page"

This reverts commit 95836bdb2c.

* Pre-fetch dashboard prior page rendering

* Depend only on dashboard permissions

* Update default home dashboard to proper model...

* Fix breadcrumbs

* Types update

* Dashboards page proxy tests

* Fix missing controls

* URLs generation

* DashboardScenePageStateManager caching test

* Tests updates

* Fix wrong import

* Test update

* Gen
2023-11-02 12:02:25 -07:00
John Martins
03a7c65ead
AzureMonitor: Add Container Insights Syslog Dashboard (#77229)
* add Syslog dashboard

* Revert "add Syslog dashboard"

This reverts commit b30160afe5.

* add Syslog Dashboard

* make wording more general to grafana users

* remove azure welcome panel

* run prettier on dashboard
2023-11-02 17:35:04 +00:00
Adela Almasan
087e081c5a
Canvas: Refactor ConnectionSVG utils (#77578)
Co-authored-by: Krishna Dhakal <7krishna7dhakal7@gmail.com>
2023-11-02 12:09:07 -05:00
Sonia Aguilar
0abfc3b6be
Alerting: Update 'Create alert' to 'New alert rule' in the panel and docs (#76950)
* Update 'Create alert' to 'New alert rule' in the panel and docs

* Fix test
2023-11-02 17:33:53 +01:00
Ryan McKinley
878235248e
Chore: avoid using deprecated ArrayVector (#77581) 2023-11-02 18:24:57 +02:00
Oscar Kilhed
0eda368d32
Transformations: Deduplicate names when using extract fields transformation. (#77569)
* dedupe field names

* add test to make sure we don't break normal case
2023-11-02 16:47:42 +01:00
Ryan McKinley
45d59cf31b
Dashboards: Remove dummy trim dashboard api (#77249)
Co-authored-by: nikimanoledaki <niki.manoledaki@grafana.com>
2023-11-02 08:35:14 -07:00
Kyle Cunningham
e714c9303e
Timeseries to table transformation: Update Output Changes (#77415)
* Break out labels into separate fields

* More Updates

* Minor test changes

* Use 'A' for transformed refId

* Make sure tests pass

* Add additional test

* Prettier

* Remove dead comment

* Update time field selection options

* remove console.log

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
2023-11-02 10:25:48 -05:00
Fabrizio
b13395afbc
Tempo: Handle empty responses in ServiceGraph (#77539) 2023-11-02 11:23:18 +01:00
Alex Khomenko
d62170e4ce
Grafana/ui: Move the Stack component out of unstable (#77495)
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports
2023-11-02 12:22:57 +02:00
Ivana Huckova
1e065580ac
Loki: Remove duplicated methods in languageProvider (#77456)
Loki: Remove fuplicated methods in languageProvider
2023-11-02 11:02:00 +01:00
Ryan McKinley
c6e27e00b4
Chore: Move internal GraphNG+Timeseries components into core (#77525)
* move to core where possible

* update imports

* ignore import order for now

* add graveyard files

* update codeowners
2023-11-01 21:59:55 -07:00
Ryan McKinley
fb9732e319
Chore: Prepare to remove <Graph /> from @grafana/ui (#77522) 2023-11-01 14:13:48 -07:00
Ryan McKinley
e3641d925c
K8s/Playlist: Support full CRUD from k8s to existing storage (#75709) 2023-11-01 12:32:24 -07:00
Drew Slobodnjak
9116043453
Storage: Add maxFiles to list functions (#76414)
* Storage: Add maxFiles to list functions

* Add maxDataPoints argument to listFiles function

* Add maxFiles to ResourceDimensionEditor

* Update pkg/services/store/http.go

* rename First to Limit

---------

Co-authored-by: jennyfana <110450222+jennyfana@users.noreply.github.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-01 09:42:24 -07:00
Nathan Marrs
124bf6bfa9
chore: canvas cleanup betterer styles object notation edition (#76315)
Co-authored-by: drew08t <drew08@gmail.com>
2023-11-01 18:25:26 +02:00
Ivana Huckova
a38c9d4f44
Loki: Add maxLines option to getParserAndLabelKeys (#77460)
* Loki: Add logsCount option to getParserAndLabelKeys

* Rename logsCount to maxLines
2023-11-01 17:22:33 +01:00
Andreas Christou
17a24c92e8
AzureMonitor: Add missing namespaces (#77308)
Add missing namespaces and order
2023-11-01 16:15:08 +00:00
Giordano Ricci
7737226786
Explore: Fix support for angular based datasource editors (#77486) 2023-11-01 15:49:45 +00:00
Josh Hunt
e8f0f6b7c8
Page: Remove Canvas background from primary background pages (#77008)
* Remove canvas background for primary background pages

* refactor styles
2023-11-01 12:58:18 +00:00
Utkarsh Deepak
20c0fbf92d
ValueFormats: Use plural for time units (#77337)
* Dashboard: Use plural values for time units

* Cleaned up code a bit and added support for negative values.

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-11-01 14:50:33 +02:00
Sven Grossmann
57835c71b1
Loki: Add supportingQueryType to datasample queries (#77482)
add `supportingQueryType` to datasamples
2023-11-01 13:42:28 +01:00
Ashley Harrison
2d5e602b2d
Navigation: Minor tweak to dockedMegaMenu to make it slightly tighter (#77493)
minor tweak to dockedMegaMenu to make it slightly tighter
2023-11-01 13:56:58 +02:00
Alexander Zobnin
cf7a2ea733
RolePicker: Optimise rendering inside lists of items (#77297)
* Role picker: Load users roles in batch

* Use orgId in request

* Add roles to OrgUser type

* Improve loading logic

* Improve loading indicator

* Fix org page

* Update service accounts page

* Use bulk roles query for teams

* Use POST requests for search

* Use post request for teams

* Update betterer results

* Review suggestions

* AdminEditOrgPage: move API calls to separate file
2023-11-01 11:57:02 +01:00
Ashley Harrison
78df641b38
Navigation: Make page container automatically scroll when overflowing (#77489)
add overflow: auto to page container
2023-11-01 12:41:30 +02:00
Joey
c39e9a8f52
Tracing: Trace to profiles (#76670)
* Update Tempo devenv to include profiles

* Update devenv to scrape profiles from local services

* Cleanup devenv

* Fix issue with flame graph

* Add width prop to ProfileTypeCascader

* Add trace to profiles settings

* Add new spanSelector API

* Add spanSelector to query editor

* Update span link query

* Conditionally show span link

* Combine profile and spanProfile query types and run specific query type in backend based on spanSelector presence

* Update placeholder

* Create feature toggle

* Remove spanProfile query type

* Cleanup

* Use feeature toggle

* Update feature toggle

* Update devenv

* Update devenv

* Tests

* Tests

* Profiles for this span

* Styling

* Types

* Update type check

* Tidier funcs

* Add config links from dataframe

* Remove time shift

* Update tests

* Update range in test

* Simplify span link logic

* Update default keys

* Update pyro link

* Use const
2023-11-01 10:14:24 +00:00
Ivana Huckova
6c6c54637f
Loki: Update developers docs with QueryEditor component (#77463) 2023-11-01 11:05:28 +01:00
renovate[bot]
9dcfc51b4f
Update dependency @types/node to v20 (#77446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-01 09:42:26 +00:00
Joey
266b3fd41b
Pyroscope: Simplify and update query options to include max nodes in summary (#76942)
Simplify and update query options to include max nodes
2023-11-01 08:47:01 +00:00
Alex Khomenko
f5cbd4f9d0
grafana/ui: Rename Flex component to Stack (#77453)
* grafana/ui: Remove Stack and rename FLex to Stack

* Update types

* Update grafana/ui imports

* Update Grafana imports

* Update docs
2023-11-01 09:48:02 +02:00
Nathan Marrs
714aec2275
Auto-generate: Update generation character limits, improve generation history UX (#76849) 2023-10-31 14:52:46 -05:00
Ashley Harrison
13c0268d6b
Chore: Upgrade react-redux (#77296)
* try upgrading react-redux

* memoize getNavModel selector, don't return a new object in command palette selector

* use createSelector to memoize some alert manager selectors correctly

* memoize selectors correctly in appNotifications

* memoize some datasource selectors

* use fake timers to avoid the debounce causing flakiness

* remove duplicate import

* just use memoize-one
2023-10-31 16:24:34 +00:00
Matias Chomicki
91398a173f
Query Validation: accept any parser to validate query and integrate with Prom query editor (#77081)
* Validation: make it generic for any parser

* Prometheus: integrate query validator with editor

* Prom validation: add unit test

* Run prettier
2023-10-31 16:30:02 +01:00
Domas
cf085480fa
Chore: remove (preview) tag from application (#77054)
remove (preview) from Application
2023-10-31 17:11:41 +02:00
Ieva
ed88289984
Chore: remove legacy dashboard and folder permission pages (#77143)
remove legacy dashboard and folder permission pages
2023-10-31 14:23:37 +00:00
Ivana Huckova
661e1e2fff
Loki: Add in code documentation for methods and identify todos (#77314)
* Loki: Add in code documentation for methods and identify todos

* Fix incorrect merge

* Fix incorrect merge

* Fix incorrect merge

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

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

* Update comments to have less method

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-10-31 15:55:02 +02:00
Virginia Cepeda
165a76a12b
Alerting: Fix GetStarted container width for big screens (#77397)
Fix GetStarted container width for big screens
2023-10-31 09:23:07 -03:00
Dominik Prokop
2f88d02ebc
Annotations settings: Do not preserve query properties when changing data source (#77422)
* Annotations settings: Do not preserve query props when changing data source

* Handle changing data source type
2023-10-31 04:43:15 -07:00
Matias Chomicki
d7c50eb650
Logs: Deprecated showContextToggle in DataSourceWithLogsContextSupport (#77232)
* Logs: deprecate showContextToggle

* Logs: make row mandatory on showContextToggle prop

* DataSourceWithLogsContextSupport: make showContextToggle optional

* Loki: update test

* Update packages/grafana-data/src/types/logs.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Prettier

* showContextToggle: update deprecation

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-10-31 13:37:44 +02:00
Ivana Huckova
23c0054ecc
Loki: Clean up Language provider and remove unused code (#77315)
* Loki: Clean up Language provider and remove unused stuff

* Update

* Update comment
2023-10-31 12:18:51 +01:00
Konrad Lalik
ba7a8fb75f
Alerting: Use notifications:read permission for contact points and policies export (#76954) 2023-10-31 11:51:20 +01:00
Marcus Andersson
b65aa6afec
PluginExtensions: Returns a clone of moment objects in context (#77238)
* Fixed so we always return momentjs as UTC iso string.

* Creating a clone of the moment object instead of returing a string.

* fixed linting issue.
2023-10-31 11:17:06 +01:00
Andres Martinez Gotor
b8105caa05
Chore: Add min Grafana dependency version (#77272) 2023-10-31 10:20:04 +01:00
Dominik Prokop
bbe1767310
DashboardScene: Panel links support (#77295)
* DashboardScene: PanelLinks support

* Update public/app/features/dashboard-scene/scene/PanelMenuBehavior.tsx

* Remove code

* Use updated API

* Bump scenes version
2023-10-31 01:57:38 -07:00
Konrad Lalik
3c915d0502
Alerting: Fix Alert rule form editing when associated panel has no id (#77209) 2023-10-31 08:38:25 +01:00
Andre Pereira
48b830fc50
Tempo: Added status to hard-coded fields (#77393)
* Added status to hard-coded fields

* Revert change
2023-10-30 19:37:03 +00:00
Andre Pereira
1ba30b4de3
Tempo: Fix #76764 (#77395)
Fix error when using streaming and spans table type
2023-10-30 19:31:29 +00:00
Leon Sorokin
c923e730d5
Heatmap: Add support for exemplar rendering with native heatmap-cells (#77324) 2023-10-30 14:16:57 -05:00
Ezequiel Victorero
468d000979
Chore: track share link options (#77240) 2023-10-30 15:14:54 -03:00
Gilles De Mey
05b6f7f396
Alerting: Apply negative matchers for route matching (#77292) 2023-10-30 18:24:21 +01:00
George Robinson
5118ac9abd
Update documentation for timezones in mute timings (#77370) 2023-10-30 17:28:01 +01:00
ismail simsek
f3fe63e87e
Chore: Remove unused code from prometheus datasource (#76776)
* Remove unused code

* More cleaning

* Delete more

* betterer

* Small import fixes

* Fix unit test

* Fix unit test

* uncomment

* Have template_srv from @grafana/runtime
2023-10-30 17:00:34 +01:00
ismail simsek
df3184a94a
Prometheus: Remove timeSrv imports (#76118)
* Remove timeSrv imports from prometheus datasource

* Fix language_provider unit test

* Fix datasource unit tests

* Remove timeSrv imports from metric_find_query

* Remove timeSrv imports

* MetricsBrowser with timeRange
2023-10-30 15:44:28 +01:00
Matias Chomicki
e5f92c010d
Elasticsearch: Add interval type selector to interval field (#76805)
* Elasticsearch: add interval type selector

* Interval type: add tooltip

* DateHistogramSettingsEditor: create unit test

* Elastic histogram settings: refactor showing calendar type

* Update test

* Prettier

* DateHistogramSettingsEditor: change tooltip according to interval type

* Calendar intervals: add comment

* Prettier
2023-10-30 16:30:25 +02:00
Andre Pereira
41d394c594
Trace View: Fix issue with critical path performance (#77373)
Store child spans in Map for faster access on critical path render
2023-10-30 14:26:33 +00:00
Gilles De Mey
06873f1be3
Alerting: Update message templates to notification templates nomenclature (#77374) 2023-10-30 16:23:14 +02:00
Matias Chomicki
564c8cd883
Log Context: Add Log Context support to mixed data sources (#76623)
* LogsContainer: implement data source feature check

* LogsContainer: improve check for normal data source mode

* LogsContainer: use updated reference to data source instance

* Formatting

* LogsContainer: compare uid to constant

* LogsContainer: rename variable
2023-10-30 15:40:17 +02:00
Fabrizio
44839a1bdd
Tempo: Add new intrinsics (#77146) 2023-10-30 14:05:14 +01:00
Piotr Jamróz
03ca9c7c66
Explore: Ensure logs volume data points are in order (#77268)
* Ensure logs volume data points are ordered

* Add a test for data points order
2023-10-30 13:40:44 +01:00
Andre Pereira
107cf0dc04
Trace View: Critical path highlighting (#76857)
* Added critical path computation code. Refactor some trace view code

* Refactor js to ts

* First implementation of critical path working

* Simplified code

* Added filter to show only critical path spans

* Lint and stuff

* Fixes and moving styling to object

* Betterer
2023-10-30 10:43:14 +00:00
siddhikhapare
8d2b3f973e
Rich history drawer: Translation added (#77088)
* query history translation added

* Recommended changes added
2023-10-30 11:36:08 +01:00
Ivana Huckova
f5d04a067e
Loki: Add optional stream selector to fetchLabelValues API (#77207)
* Loki: Add optional stream selector to fetchLabelValues API

* Update public/app/plugins/datasource/loki/docs/app_plugin_developer_documentation.md

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Update tests

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-10-30 10:16:35 +01:00
Giordano Ricci
dae49fbb34
Explore: Fix panes vertical scrollbar not being draggable (#77284)
Explore: Fix panes verticall scrollbar not being draggable
2023-10-30 08:56:26 +00:00
Aaron Sanders
8683323760
Auto-generate: Change dashboard save diff prompt, widen diff context (#76724)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-28 08:10:47 +03:00
Leon Sorokin
c1d674a2c6
Prometheus: Don't post-process native heatmap-cells responses (#77289) 2023-10-27 12:31:21 -05:00
Michael Mandrus
0231873d70
Feature Management: Link to grafana.com docs from feature toggle admin page (#77302)
* add link to gcom

* re-add subtitle on backend so it displays in the high level administration view
2023-10-27 19:16:43 +03:00
Kyle Cunningham
71e3814c46
Transformations: Allow Timeseries to table transformation to handle multiple time series (#76801)
* Initial fix up of getLabelFields

* Update time series to table code

* Cleanup and allow merging

* Support merge and non-merge scenarios

* Update editor

* Fix case with merge true for multiple queries

* Update time series detection, fix tests

* Remove spurious console.log

* Prettier plus remove test console.log

* Remove type assertion

* Add options migration

* Add type export

* Sentence casing

* Make sure current options are preserved when making changes

* Add disabled image

* DashboardMigrator prettier

* Add type assertion explanation and exception

* Fix schema version test

* Prettier

* Fix genAI tests and make them more robust so they dont break on every new schema version

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-27 10:30:49 -05:00
Kyle Cunningham
470d879c80
Transformations: Move debug to drawer (#76281)
* Move debug to drawer
* Prettier
* Remove render actions arg
* Remove unused import
2023-10-27 18:30:31 +03:00
Giordano Ricci
bf554d121c
Explore: Avoid reinitializing graph on every query run (#77281) 2023-10-27 14:37:23 +01:00
Haris Rozajac
09e496acfd
Explore TraceView: Remove 'Scroll to top' button (#77158)
* Remove button from Explore but keep in plugins

* Remove topOfViewRef from trace view container
2023-10-27 07:19:43 -06:00
Konrad Lalik
214535c1a9
Alerting: Memoize labels suggestions calculation (#76972) 2023-10-27 14:38:52 +02:00
Matias Chomicki
46f331e284
Logs: remove toggleLabelsInLogsUI (#77264)
* toggleLabelsInLogsUI: remove flag

* Remove unused imports

* isFilterLabelActive: refId is not optional

* Revert "isFilterLabelActive: refId is not optional"

This reverts commit 008931b7e9.

* Revert method signature change

* Update tests

* Update tests
2023-10-27 13:00:49 +02:00
Daniel Benjamin
8ba6dc866d
chore: remove LegacyForms from MetricSelect component (#76490) 2023-10-27 12:41:04 +02:00
Ashley Harrison
49f8838b62
Navigation: Improve docked auto scroll behaviour (#77117)
ensure expand works on any location change, only scroll when docked
2023-10-27 09:26:38 +01:00
Darren Janeczek
7d2bfea777
Pyroscope: Added app integration for datasource (#75789)
* feat: integrate pyroscope query editor with link extensions

- allows plugin app extensions to register links based on
  the query and selected datasource

* fix: remove not-as-designed busy wait mechanism

* Apply suggestions from code review

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* fix: implement feedback

* fix: lint

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-10-27 08:09:05 +02:00
Leon Sorokin
45aa58c4a8
Histogram: Render heatmap-cells and heatmap-rows frames (#77111) 2023-10-26 23:23:01 -05:00
Isabella Siu
72a085ea20
Cloudwatch: Add DB_PERF_INSIGHTS to Metric Math (#77241) 2023-10-26 16:08:52 -04:00
Galen Kistler
05376a950c
Logs Panel: Column selection for experimental table visualization in explore (#76983)
* New experimental table customization for logs in explore
* Logs Panel: Explore url sync for table visualization (#76980)
* Sync explore URL state with logs panel state in explore
2023-10-26 12:06:41 -05:00
Kristina
2c92e370dd
Explore: Fix broken interpolation for mixed datasources coming from dashboards (#76904)
* Fix broken interpolation for mixed datasources in explore

* Add interpolation tests

* Use Promise.all and be better about dealing with invalid empty ds in query scenario

* condense logic

* Remove type declarations

* Fix tests
2023-10-26 08:16:22 -05:00
Joao Silva
f183e68b1c
GrafanaUI: Move Box out of unstable and into GrafanaUI (#77080) 2023-10-26 13:46:11 +01:00
Sonia Aguilar
61f056fe15
Alerting: Show receiver in groups view to avoid duplication in the list (#77109) 2023-10-26 13:04:26 +02:00
João Calisto
7869ca1932
Feature Management: UI improvements (#76866)
* Feature Management: UI improvements

* update UI logic

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2023-10-26 10:42:00 +01:00
Torkel Ödegaard
c4bf32fa2d
EmbeddedDashboard: Removes no longer used components (#77195) 2023-10-26 11:40:15 +02:00
Dominik Prokop
877b61e31d
DashboardScene: Render share snapshot radio button translations (#77136)
DashboardScene: Render share snapshot tab translations
2023-10-26 00:37:16 -07:00
Andres Martinez Gotor
314bea935f
Bug: Fix DatasourceSrv getList with aliases (#77027) 2023-10-26 09:30:24 +02:00
Adela Almasan
a0dbde5c60
Organize fields transformation: Fix re-ordering of fields using drag and drop (#77172)
drag handler as html element
2023-10-25 23:47:01 -05:00
Virginia Cepeda
8d7dfbc7b9
Alerting: changes on Insights section titles (#77163)
Minor changes on texts
2023-10-25 16:12:05 -03:00
Tomas R
421461ec3f
Chore: Update PromSettings tooltip grammar (#76627)
Trivial: Update PromSettings.tsx

Fix wording and add missing '.'
2023-10-25 18:57:21 +02:00
ismail simsek
51e49eaa20
InfluxDB: Fix handle multiple frames in metricFindQuery and runMetadataQuery (#77154)
Handle multiple frames in metricFindQuery and runMetadataQuery
2023-10-25 18:27:25 +02:00
Josh Hunt
333c858bc6
GrafanaUI: Prevent code editors from 'trapping' scroll (#77125)
* GrafanaUI: Prevent CodeEditor from 'trapping' scroll

* fix test

* fix lint for unused import
2023-10-25 19:21:54 +03:00
Ben Sully
eb62e02259
chore: use grafana/experimental for dashboard AI feature (#76948)
The 'llms' module of @grafana/experimental was vendored into the
GenAI components at some point in the past to speed up iteration, so
that dashboard feature development didn't have to wait for a new
release of the experimental package for every change. Now that we
think this has stabilized, we can remove the vendored module from
the Grafana codebase and use the version from @grafana/experimental
instead.

This requires a couple of minor changes, mostly around health check
results which are slightly different in @grafana/experimental now,
but otherwise the changes are mechanical.

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-25 16:38:55 +01:00
Konrad Lalik
4fc0294aab
Add logging prometheus and ruler rules totals (#76812) 2023-10-25 16:47:32 +02:00
Ashley Harrison
5f2fd8935d
Spinner: Fix so that the size property is correctly applied (#77135)
* correctly apply spinner sizes, refactor to have standard sizes

* better prop definitions so constant values show in IDEs

* 12 is xs, not sm
2023-10-25 15:39:32 +01:00
Ryan McKinley
5d44240fca
K8s: Use grafana.app as the playlist+example group name domains (#77096) 2023-10-25 07:24:19 -07:00
Gilles De Mey
e12e40fc24
Alerting: Contact Points v2 part IV (#76063) 2023-10-25 15:57:53 +02:00
ismail simsek
283f279a17
InfluxDB: Fix adhoc filter calls by properly checking optional parameter in metricFindQuery (#77113)
* Handle optional options parameter

* unit tests
2023-10-25 15:56:10 +02:00
Ashley Harrison
85468d2a67
DockedMegaMenu: Adjust docked threshold (#77139)
* adjust docked threshold to be xl instead of md and make sure it's open by default on 1440 res

* don't show dock menu button
2023-10-25 14:41:07 +01:00
kay delaney
b215d2f0fb
Library Panels: Fix library panel creation with RBAC enabled (#76553) 2023-10-25 16:29:57 +03:00
Kuba Siemiatkowski
327ae398e6
Add SumoLogic plugin (#77025)
- add Sumo to plugins list
- remove duplicated sqlyze from the plugins list
2023-10-25 15:02:03 +02:00
Alexander Zobnin
aa7a6da985
Role picker: Fix flickering at service accounts page (#77049)
* Role picker: Fix flickering at service accounts page

* Set role picker fixed width

* Fix betterer

* Fix styles
2023-10-25 13:03:12 +02:00
Gareth Dawson
c25ea17d10
SQL: Fix config page backwards compatibility (#76951)
fix
2023-10-25 11:38:16 +01:00
Karl Persson
b156267e39
ServiceAccount: Add pagination to service accout table (#77044)
* Add pagination to service account table
2023-10-25 12:21:01 +02:00
Joey
37dbf037de
Tracing: Improve frame type checking (#76898)
Improve frame type checking
2023-10-25 10:16:17 +01:00
Sonia Aguilar
f1ce73dc2c
Alerting: Fix NoRulesSplash being rendered for some seconds, fater creating a rule (#77048)
* Fix NoRulesSplash being rendered for some seconds, fater creating a rule

* Add ruler response/loading,dispatched,error to the logic in hasNoAlertRulesCreatedYet expression
2023-10-25 09:32:28 +02:00
ismail simsek
d75886c3ac
Chore: Remove default metadata key from influxdb sql config page (#76994)
Remove default metadata key
2023-10-24 20:11:37 +02:00
Jev Forsberg
41db5b645c
Transformations: Separate useful doc content for UI use (#75781)
* baldm0mma/doc_builder/ add to gitignore

* baldm0mma/doc_builder/ add makefile commands

* baldm0mma/doc_builder/ add content

* baldm0mma/doc_builder/ format content

* baldm0mma/doc_builder/ update makefile

* baldm0mma/docs_builder/ update content

* baldm0mma/doc_builder/ add back content

* baldm0mma/doc_builder/ run builder

* baldm0mma/doc_builder/ update naming

* baldm0mma/doc_builder/ remove unused note

* baldm0mma/doc_builder/ update template

* baldm0mma/doc_builder/ add new line in makefile

* baldm0mma/doc_builder/ rem new line

* baldm0mma/doc_builder/ add final line

* Much of this full PR was Co-Authored-By: Jack Baldry <jack.baldry@grafana.com>

* baldm0mma/doc_builder/ update readme

* baldm0mma/doc_builder/ update guidlines

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update scripts/docs/generate-transformations.ts

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

* Update docs/README.md

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

* Update docs/README.md

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

* Update scripts/docs/generate-transformations.ts

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

* baldm0mma/doc_builder/ update concat

* baldmomma/doc_builder/ finish concat table

* baldm0mma/docs_builder/ update with suggestions

* baldm0mma/doc_builder/ update content to use getHelperDocs

* baldm0mma/doc_builder/ update calculateField

* baldm0mma/doc_builder/ update to byRefId

* baldm0mma/doc_builder/ update filterByValue

* baldm0mma/doc_builder/ update filterFieldsByName

* baldm0mma/doc_builder/ update formatTime

* baldm0mma/doc_builder/ update groupBy

* baldm0mma/doc_builder/ update groupingToMatrix

* baldm0mma/doc_update/ update heatmap

* baldm0mma/doc_builder/ update histogram

* baldm0mma/doc_builder/ update joinByField

* baldm0mma/doc_builder/ update joinByLabels

* baldm0mma/doc_builder/ update labelsToFields

* baldm0mma/doc_builder/ update limit

* baldm0mma/doc_builder/ update merge

* baldm0mma/doc_builder/ update organize

* baldm0mma/doc_builder/ update partitionByValues

* baldm0mma/doc_builder/ update prepareTimeSeries

* baldm0mma/doc_builder/ update reduce

* baldm0mma/doc_builder/ update renameByRegex

* baldm0mma/doc_builder/ update rowsToFields

* baldm0mma/doc_builder/ update seriesToRows

* baldm0mma/doc_builder/ update sortBy

* baldm0mma/doc_builder/ update spatial

* baldm0mma/doc_builder/ update timeSeriesTable

* baldm0mma/doc_builder/ rerender all

* baldm0mma/doc_builder/ update calculateField

* baldm0mma/doc_builder/ gitignore conflicts

* baldm0mma/doc_builder/ add formatString

* baldm0mma/doc_builder/ update vars

* baldm0mma/doc_builder/ update naming

* baldm0mma/doc_builder/ rerender markdown

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

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

* baldm0mma/doc_builder/ update content

* baldm0mma/doc_builder/ add to codeownders

* baldm0mma/doc_builder/ correct spelling

* baldm0mma/doc_builder/ update comment

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-10-24 10:30:10 -06:00
Josh Hunt
ec84caf389
Navigation: Basic e2e tests for docked mega menu (#77000)
* Navigation: Basic e2e tests for docked mega menu

* give mega menu an e2e selector

* make existing tests narrower so menu doesn't default to docked. add test for auto docking at large viewport

* use new selector in nondocked menu
2023-10-24 15:56:00 +00:00
Fabrizio
3899620234
Tempo: Add new structural operators (#77056) 2023-10-24 17:46:36 +02:00
Drew Slobodnjak
97be80d1f0
Geomap: Fix route layer crosshair share (#76702)
* Geomap: Fix route layer crosshair share

* Update crosshair styling

* Consolidate horizontal and vertical lines

* Consolidate clear out

* Create const for crosshair color

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-24 08:15:31 -07:00