Commit Graph

6168 Commits

Author SHA1 Message Date
Ivan Ortega Alba
e56a252158
GeneralSettings: Edit general dashboards settings to scenes (#78492) 2023-12-01 17:04:56 +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
7cbf5ae78d
Alerting: Remove old contact points view (#78704) 2023-11-30 13:37:14 +01:00
ismail simsek
5845f14075
InfluxDB: Introduce influxqlStreamingParser feature toggle (#78834)
introduce influxqlStreamingParser feature toggle
2023-11-29 18:29:35 +01:00
Leon Sorokin
2ac60dc300
Chore: Remove core-js polyfills (#78715) 2023-11-29 11:12:23 -06: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
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
Adela Almasan
a6c9a9db92
StatusHistory: Add tooltip multi mode (#78703) 2023-11-28 21:23:05 +00:00
Leon Sorokin
0daf0ad4b8
FlameGraph: Optimize rendering of muted regions (#78510)
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2023-11-28 11:01:14 -06:00
Ashley Harrison
9789c0cc79
Remove type assertions in VizLegendTable (#78742)
no type assertions
2023-11-28 15:15:27 +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
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
Leon Sorokin
b022ddeee8
VizLegend: Implement natural sort, simplify, optimize (#78570) 2023-11-27 16:39:43 -06: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
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
Laura Fernández
e422a92eae
RadioButton: Make description appear in a Tooltip component (#78010) 2023-11-27 13:54:07 +01:00
Oscar Kilhed
1ab23108c4
Transformations: Handle undefined values when calculating mean and total in add field from calculations (#78645)
* Transformations: Handle undefined values when calculating mean and total in add field from calculations

* fix typo

* change to != and add tests
2023-11-27 10:25: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
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
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
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
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
Erik Sundell
f3d742caeb
Variables: Remove alpha flag from variable support API (#78573)
remove alpha flag
2023-11-23 09:58:26 +01:00
Dmitry Filimonov
d47ac2f67e
FlameGraph: reduce max height of table (#78432)
* FlameGraph: reduce max height of table

* prettier fix

* use maxHeight

* makes it actually work

* makes things actually work

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-11-22 11:52:41 -05: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
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
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
kay delaney
9e11779921
Chore: Clean up usage of deprecated stylesFactory function (#78419) 2023-11-21 14:01:53 +00:00
Ivan Babrou
860b3bbce7
Dashboards: Implement natural sort for query variables (#78024) 2023-11-21 10:17:38 +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
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
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
Laura Fernández
aae702c237
RadioButtonGroup: Add missing disabled and disabledOptions on its story (#78318) 2023-11-17 12:57:44 +01:00
Ashley Harrison
7404ed66f6
Chore: Remove navAdminSubsections toggle (#78179)
* remove navAdminSubsections toggle

* missed one!
2023-11-17 10:04:34 +00: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
Sven Grossmann
a01f8c5b42
Loki: Add backend functionality to parse structured metadata from Loki (#77361)
* prepare backend for structured metadata

* add `lokiStructuredMetadata` feature toggle

* use `lokiStructuredMetadata` feature flag

* add field type check to `labelTypesField`

* remove fixme

* fix feature toggle

* add field in dataplane mode

* use `data.Labels` where possible

* adjust framing tests

* improve verbiage

* improve naming

* update tests to "attributes"
2023-11-16 17:06:14 +01:00
Ihor Yeromin
6f0c5395ac
Tooltips: Support long labels (#77735)
* feat(tooltips): support long labels

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-11-16 14:53:23 +01: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
Alex Khomenko
d641f9153e
Grafana/ui: Move Grid out of unstable (#78220)
* Grafana/ui: move Grid out of unstable

* Update docs
2023-11-16 07:23:22 +02:00
Leon Sorokin
768fde02aa
TooltipPlugin2: Absorb ZoomPlugin (#78160) 2023-11-15 17:23:54 -06:00
Giuseppe Guerra
cb0a88a027
Plugins: Backend: Skip host environment variables (#77858)
* Add pluginsSkipHostEnvVars feature flag

* Set go-plugin's SkipHostEnvVar depending on feature flags

* add missing file

* Re-generate feature flags

* Add allowedHostEnvVarNames

* Fix feature toggles not being passed to plugin context service's plugin env vars

* Fix tests

* PR review feedback: Use cfg.Features

* Fix tests

* PR review feedback: removed DefaultProviderWithFeatures

* merge with master

* fix tests

* use features.IsEnabledGlobally
2023-11-15 18:09:14 +01:00
Andrej Ocenas
9777da5502
Flamegraph: Update threshold for collapsing and fix flickering (#78206) 2023-11-15 17:59:26 +01:00