Commit Graph

8804 Commits

Author SHA1 Message Date
Dominik Prokop
0122f7ccad
DashboardScene: Support dashboard links (#77855)
* MenuItem: Allow react node as label

* LinkButton: Expose ButtonLinkProps

* Typecheck fix

* DashboardLinks: Refactor and use LinkButton and menu

* DashbaordLinks scene object

* Use flex layout for dashboard controls

* Update public/app/features/dashboard/components/SubMenu/DashboardLinksDashboard.tsx

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

* fix keepTime and includeVars

* Add ellipsis to menu item label and description

* Use DashboardLink type from grafana/schema

* Update dashboard scene controls layout

* Fix e2e

* Test fix

* Bring back keyboard navigation

* Remove unused code

* One more fix

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-15 17:49:51 +02:00
Virginia Cepeda
05febc4665
Alerting: Allow to clear datasource selection in panel list (#77960)
* Allow to clear datasource selection

Also improve texts for linked alerts switch

* Remove onClear prop as it does not work

* Change text on datasource selection filter

* Change datasource filter description
2023-11-15 12:48:10 +01:00
Ben Tasker
c06debe200
InfluxDB: Add support for >= and <= comparison operators to IQL Query Builder (#77917)
* InfluxDB: Add support for `>=` and `<=` comparison operators to InfluxQL Query Builder

* Add front-end support for the new operators

This ensures that the query translates correctly between raw and builder mode

* Chore: add test for new operators

* chore: add front-end tests

* fix: don't skip quoting on `<>`

This preserves the pre-existing behaviour, fixing a failing test

* chore: fix tests
2023-11-15 12:21:41 +01:00
Ashley Harrison
4ebfce8b9a
Accessibility: Increase contrast of MonacoQueryField placeholder (#78176)
increase contrast of promqueryfield placeholder
2023-11-15 11:11:42 +00:00
Zodan Jodan
3b9886830e
Loki: fix missing entries when there arent any derived fields (#78123)
pushing nulls for log entries that does not have a derived field to preserve the order of log data derived fields
2023-11-14 17:10:28 +01:00
ismail simsek
656808a41b
InfluxDB: Fix multi variable interpolation (#78068)
fix special variable escape
2023-11-14 16:59:34 +02:00
Zodan Jodan
53758ad764
Loki: Option to add derived fields based on labels (#76162)
* Plugin: Deriving fields by name from parsed logs

Loki only derives fields by a regex matcher, this limits its usage when functions such as `line_formatter` is used on
top of the logs.
Some users already have logs parsed in json or logfmt structure which are detected as fields in loki.
This pull request allows the mapping between detected fields values and derived values by matching the fields' names.
Currently the feature is behind `lokiEnableNameMatcherOption` feature toggle.

* improve settings page to have a `fieldType`

* improve derived fields getter to use `matcherRegex`

* fix failing test

* rename feature toggle to `lokiDerivedFieldsFromLabels`

* added suggestions from review

* add empty config object

* remove feature flag

* fix width of select

* default to `regex` derived field

* fix failing test

---------

Co-authored-by: Sven Grossmann <svennergr@gmail.com>
2023-11-14 15:06:02 +01:00
Josh Hunt
2f2be24e01
Chore: Remove unnecessary type assertions (#78009)
* Chore: Remove unnecessary type assertions

* betterer
2023-11-14 09:17:29 +00:00
Ivana Huckova
c91fc18d31
Loki: Fix escaping in cheatsheet (#78046) 2023-11-13 15:13:40 +01:00
ismail simsek
deea9a7243
Prometheus: Fix updating timeRange on builder mode when range is changed (#78007)
Update languageProvider timeRange when range is changed on builder mode
2023-11-13 14:23:40 +01:00
Joey
c9faaf7600
Tempo: Fix missing deep span link (#77936)
* Fix span deep link not showing

* Update test
2023-11-13 11:10:19 +00:00
Gábor Farkas
2d391c1bf5
postgresql: change plugin id (#77444)
* postgres: change plugin id

* fixed cue file

* codeowners update

* fixed backend test
2023-11-13 08:49:26 +01:00
Nathan Marrs
e9e7e0b628
Stat: Add panel option to control wide layout (#77018)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: drew08t <drew08@gmail.com>
2023-11-10 19:42:24 +02:00
siddhikhapare
80b9af3c33
InfluxDB: Remove context menu "remove" option from query builder (#77102)
* remove menu item from query builder

* files changed

* file fixed

* error fixed

* unit test fixed
2023-11-10 16:45:13 +01:00
Ashley Harrison
40fd80c46f
Chore: Various type improvements (#77877)
* more datasource type fixes

* more type updates
2023-11-09 17:39:02 +00:00
kay delaney
5f78542366
Dashboards: Prevent shared queries from being unnecessarily re-run (#77490)
* Dashboards: Prevent shared queries from being unnecessarily re-run

* Minor change

* Set solo panel as being viewed

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-09 06:41:47 -08:00
Andrej Ocenas
494a07b522
Flamegraph: Add collapsing for similar items in the stack (#77461) 2023-11-09 15:31:07 +01:00
Andres Martinez Gotor
f7361a2755
Chore: Update TestData README (#77607)
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2023-11-09 10:03:00 +01:00
kay delaney
375dcc3813
Chore: Change VariableModel to TypedVariableModel in most places (#76690) 2023-11-08 22:15:29 +00:00
Daniel Benjamin
4159f47df0
chore: Remove gh-form and LegacyForms from InfluxInfluxQLConfig (#76497)
* chore: Remove gh-form and LegacyForms from InfluxInfluxQLConfig

* chore: Refactor InfluxInfluxQLConfig component UI to use Field
2023-11-08 17:45:03 +01:00
ismail simsek
3cb92e3460
InfluxDB: Template variable support for SQL language (#77799)
* Only run through with classicQuery if the language is influxql and backend migration is disabled

* Add variable editor

* Simple template variable support

* Show template variables in the drowdowns

* better imports

* unit tests

* it is now 11 just because we add rawSql interpolation in datasource.ts applyVariables method

* fix
2023-11-08 15:00:13 +01:00
Torkel Ödegaard
848efba0de
DashList: Update links with time range and variables change (#77850)
* user essentials mob! 🔱

lastFile:public/app/plugins/panel/dashlist/DashList.tsx

* DashList: Update variables in URL when they change

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

* add e2e test to check dashlist variables are always correctly passed

* add comment with link to issue

* Alternative solution

* Minor tweaks

* revert accidental change

* fix

* New solution

* Fix test

* refinement

* Added unit test

* Update devenv/dev-dashboards/panel-dashlist/dashlist.json

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

---------

Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-11-08 14:08:59 +01:00
Torkel Ödegaard
88f35fc85f
Revert "DashList: Update variables in links when they change" (#77868)
Revert "DashList: Update variables in links when they change (#77787)"

This reverts commit 3e57eacc15.
2023-11-08 14:05:59 +01:00
Josh Hunt
3e57eacc15
DashList: Update variables in links when they change (#77787)
* user essentials mob! 🔱

lastFile:public/app/plugins/panel/dashlist/DashList.tsx

* DashList: Update variables in URL when they change

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>

* add e2e test to check dashlist variables are always correctly passed

* add comment with link to issue

---------

Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-11-08 14:04:30 +01:00
Edward Qian
9e346616d0
Set temperature to 0 for promql builder llm features (#77520)
set temperature for openai calls
2023-11-07 22:27:05 -05:00
Gerry Boland
08f6abe4ac
PromQail: use metric type when available else use fallback heuristic (#77702)
* PromQail: query suggester uses metric type if available

* If metadata missing, use heuristic to guess metric type

* Fix linter, fix histogram,summary case

* Fix bug confusing metric with metric family name

* Better method to fetch just metadata from datasource provider
2023-11-07 22:26:39 -05:00
Brendan O'Handley
1d38edc483
Prometheus: AI assistant add rudderstack events (#77837)
add rudderstack events
2023-11-07 17:39:00 -05:00
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
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
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
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
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
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
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
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
Andrew Hackmann
dc1b4ceb06
Azure monitor/remove reference to core config (#77601)
remove app config
2023-11-03 10:18:02 -05: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
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
Ryan McKinley
878235248e
Chore: avoid using deprecated ArrayVector (#77581) 2023-11-02 18:24:57 +02:00
Fabrizio
b13395afbc
Tempo: Handle empty responses in ServiceGraph (#77539) 2023-11-02 11:23:18 +01: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