Commit Graph

19620 Commits

Author SHA1 Message Date
Sofia Papagiannaki
d1dab5828d
Alerting: Update rule API to address folders by UID (#74600)
* Change ruler API to expect the folder UID as namespace

* Update example requests

* Fix tests

* Update swagger

* Modify FIle field in /api/prometheus/grafana/api/v1/rules

* Fix ruler export

* Modify folder in responses to be formatted as <parent UID>/<title>

* Add alerting test with nested folders

* Apply suggestion from code review

* Alerting: use folder UID instead of title in rule API (#77166)

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>

* Drop a few more latent uses of namespace_id

* move getNamespaceKey to models package

* switch GetAlertRulesForScheduling to use folder table

* update GetAlertRulesForScheduling to return folder titles in format `parent_uid/title`.

* fi tests

* add tests for GetAlertRulesForScheduling when parent uid

* fix integration tests after merge

* fix test after merge

* change format of the namespace to JSON array

this is needed for forward compatibility, when we migrate to full paths

* update EF code to decode nested folder

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Alex Weaver <weaver.alex.d@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-01-17 11:07:39 +02:00
renovate[bot]
878ba96a70
Update dependency react-use to v17.4.3 (#80690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 00:29:09 +00:00
renovate[bot]
bfee861867
Update dependency glob to v10.3.10 (#80684)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 23:58:58 +00:00
renovate[bot]
59608080c7
Update dependency @types/testing-library__jest-dom to v5.14.9 (#80672)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 23:11:45 +00:00
Andre Pereira
6b37a887d5
Data trails: Move and rename to explore metrics (#80649)
* Move data trails to /explore/metrics

* Fix breadcrumbs

* Fix label option link
2024-01-17 00:05:44 +02:00
Galen Kistler
7b8db643a3
Logs Panel: Table UI - Reordering table columns via drag-and-drop (#79536)
* Implement react-beautiful-dnd to facilitate column reordering
* Refactoring field display components
* Refactoring internal types to better align with Grafana style guide

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-01-16 14:27:29 -06:00
renovate[bot]
581936a442
Update dependency @types/semver to v7.5.6 (#80667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 20:08:09 +00:00
Giordano Ricci
9770768efc
Chore: refactor some styles in explore to use the object syntax (#80080)
* Chore: refactor some styles in explore to use the object syntax

* refactor LiveLogs styles to use object syntax

* Revert "refactor LiveLogs styles to use object syntax"

This reverts commit 293aa2589f.
2024-01-16 19:49:12 +00:00
renovate[bot]
894353241a
Update dependency @types/prismjs to v1.26.3 (#80658)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 18:27:36 +00:00
Andre Pereira
d27e2fec88
Data Trails: Actions redesign and overview tab (#80216)
* Use last used datasource or default datasource when starting a trail

* Use tabs and move actions bar to same line when possible

* Added overview tab with description, type and labels

* Clickable labels in overview tab

* Show label value counts next to the label name

* Fix action bar zIndex

* Address PR comments

* Refactor

* Refactor getLabelOptions to utils

* Reuse language provider from state

* betterer

* testing some refactors

* Remove unreachable code

* Refactor GROUP_BY var to MetricScene

* Fix url by excluding var-groupby

* Fix conflicts

* Use <Text/> instead of custom styles

* Simplify setting overview as default tab

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-01-16 20:22:53 +02:00
Oscar Kilhed
14c82c2725
Scenes: Show transformations when editing scene dashboard (#80372)
* Make dashboard data source query actually use DashboardDataSource

* remove commented out bit

* Always wrap SceneQueryRunner with SceneDataTransformer

* Update Dashboard model compat wrapper tests

* DashboardQueryEditor test

* VizPanelManager tests update

* transform save model to scene tests update

* Betterer

* PanelMenuBehavior test update

* Few more bits

* Prettier

* Show transformations when editing scene dashboard

* remove and edit transformations works

* add add and remove buttons

* Change styles to object to fix betterer issue

* Revert "Change styles to object to fix betterer issue"

This reverts commit 8627b9162c.

* Fix the correct file...

* Some refactoring

* remove unneessary if statement

* panel data not present on first render

* move transformation tabs out of folder

* fix tests

* add lint exception

* refactor tab component

* Fix merge issue

* reorder components

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-16 18:59:32 +01:00
Darren Janeczek
dbae7ccd3f
refactor: data trails auto query for buckets (#80170)
* refactor: data trails auto query for buckets

* refactor: vizBuilder function signature (#80178)

* fix: use closures for setting unit and title in vizBuilders
2024-01-16 12:46:12 -05:00
renovate[bot]
4ea1e80a39
Update dependency @types/lodash to v4.14.202 (#80644)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 18:33:48 +02:00
Ivana Huckova
73715a1de9
Loki: Use DataSourcePicker from runtime in DerivedField (#80629) 2024-01-16 17:29:30 +01:00
renovate[bot]
17efc72cae
Update dependency @types/jest to v29.5.11 (#80642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 16:19:26 +00:00
renovate[bot]
06800e2d31
Update dependency @testing-library/user-event to v14.5.2 (#80633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 16:03:52 +00:00
Lauri Tirkkonen
a9c376db1d
grafana metrics dashboard: use correct grafana http request metrics (#80338)
grafana's metrics exporter does not provide a metric called
"http_request_total"; fix the dashboard to use the actually existing
"grafana_http_request_duration_seconds_count"
2024-01-16 10:00:00 -06:00
renovate[bot]
054feec107 Update dependency @lezer/common to v1.2.1 2024-01-16 15:42:28 +00:00
Gilles De Mey
ea4bfc23ca
Alerting: Improve notification policies view performance (#80209) 2024-01-16 16:30:25 +02:00
renovate[bot]
ddbe4d2bba
Update dependency @grafana/lezer-logql to v0.2.2 (#80614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 14:25:05 +00:00
Haris Rozajac
bdbc3f351c
Explore: Format data in Data tab in Query Inspector (#80004)
* Fix betterer

* Improve formatting logic
2024-01-16 07:04:31 -07:00
kay delaney
5640f25213
Scenes/PanelEdit: Fix some styles and flesh out the skeleton (#80366) 2024-01-16 12:58:07 +00:00
Joey
6796e66fb8
Pyroscope: Add standalone build (#80222)
* Pyroscope standalone build

* Fix for tests

* Add missing packages

* Remove import

* Update trace to profiles

* Update test
2024-01-16 12:46:15 +00:00
Alexa V
6c609051a0
Dashboard: Migration - EditVariable Settings: Implement TextBox Variable (#80293)
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-01-16 12:38:34 +01:00
Ivana Huckova
712c505251
Divider: Remove core component and replace with grafana/ui components (#80574)
* Divider: Remove core component and replace with grafana/ui components

* Update gap

* Bump experimental in tempo

---------

Co-authored-by: Fabrizio <fabrizio.casati@grafana.com>
2024-01-16 13:27:51 +02:00
Ivan Ortega Alba
07778cb221
DashboardLinksSettings: Move them to Scenes (#79998) 2024-01-16 13:24:54 +02:00
Uladzimir Dzmitračkoŭ
313c43749c
Explore: Fix incorrect interpolation of table title (#80227) 2024-01-16 12:22:32 +01:00
renovate[bot]
31256bcc85 Update dependency @babel/core to v7.23.7 2024-01-16 11:16:27 +00:00
Ivana Huckova
b97170b01e
Loki: Remove dependency in test files on selectOptionInTest (#80546)
* Loki: Remove dependecy in test files on selectOptionInTest

* Remove await waitFor(() => where not needed
2024-01-16 12:07:53 +01:00
Ivana Huckova
67d77e76be
Loki: Refactor debug section to remove dependency on deprecated getFieldLinksForExplore (#80594)
* Refactor debug section

* Show href only if matched regex
2024-01-16 12:00:31 +01:00
Fabrizio
522519f671
Tempo: Decouple Tempo from Grafana core (#79888) 2024-01-16 11:36:40 +01:00
Fabrizio
3c9a93c86d
Update tests to protect against regression in #79938 (#80595) 2024-01-16 11:22:04 +01:00
renovate[bot]
cd8bf4c8cb Update dependency react-use to v17.4.3 2024-01-16 10:09:39 +00:00
Timur Olzhabayev
c02d57c6a9
Chore: removing folderId from plugindashboard service (#80570)
* removing folderId from plugindashboard service

* fixing linting
2024-01-16 11:08:39 +01:00
Kevin Yu
82c85de0e8
CloudWatch: remove DataSourcePicker core import (#79491) 2024-01-15 10:09:34 -08:00
Sonia Aguilar
ae23cd7cf7
Alerting: Fix validation of selected contact point being required in the alert form when simplified routing (#80565)
Fix validation of selected contact point being required in the alert rule form
2024-01-15 17:45:01 +01:00
Ida Štambuk
d3a89a28fa
Cloudwatch Metrics: Adjust error handling (#79911) 2024-01-15 17:19:26 +01:00
Torkel Ödegaard
084b9f060c
SharePanelQuery: Improve query editor UI (#80535)
* SharePanelQuery: Improve query editor UI

* tweak

* Update
2024-01-15 17:13:22 +01:00
Torkel Ödegaard
8157711893
DashboardDataSource: Implement sharing logic inside the data source (#80526)
* Make dashboard data source query actually use DashboardDataSource

* remove commented out bit

* Always wrap SceneQueryRunner with SceneDataTransformer

* Update Dashboard model compat wrapper tests

* DashboardQueryEditor test

* VizPanelManager tests update

* transform save model to scene tests update

* Betterer

* PanelMenuBehavior test update

* Few more bits

* Prettier

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-15 16:43:30 +01:00
Victor Marin
1cf53a34d1
Scenes: Render versions in dashboard settings (#80229)
* Add versions tab in dashboard settings

* Fetch and render dashboard versions

* PR discussion changes

* remove unnecessary async in test

* PR discussion mods

* linter fix
2024-01-15 16:57:45 +02:00
Ashley Harrison
d5db67a073
Chore: type improvements (#80464)
* type improvements

* some more fixes

* add TODOs to remove type assertions
2024-01-15 14:29:39 +00:00
Sonia Aguilar
10f0d094ad
Alerting: Visualize autogenerated policy tree for simplified routing. (#79509)
* WIP

* WIP: disable some actions when is autogenerated policy

* WIP

* Wip: add checks for group by in auto-generated policy

* Make autogenerated policy readOnly and enable Readonly modal for it

* Use real check for autogenerated root

* Fix test

* Refactor: rename consts

* Add test for policy form being read only

* Add tests

* Update some code comments

* Fix Switch component not being styled as disabled

* Rename isAutogeneratedChunkOpen property to isBranchOpen and fix test

* Revert fix for Switch as it has moved to another separate PR

* Split Policy component in smaller sub components

* use useAlertmanagerAbility form for checking autogenerated tree visibility and fix container for autogenerated policy being rendered when it's not supported

* Update useAbilities test and dont use toAbility for ViewAutogeneratedPolicyTree

* Fix Policy being unmounted every 10 secs and move the collapsed/expanded state to each Policy component

* remove permissions from createDropdownMenuActions method parameters and convert the method to a hook

* Revert using PolicyItem

* Add test for createDropdownMenuActions

* Revert having a read only view form for the policy

* Remove readonly from default policy form

* Only show collapsible when node has children

* Split DefaultPolicyIndicator

* use hidehideCurrentPolicy instead of showCurrentPolicy

* Address some review suggestions
2024-01-15 13:36:26 +01:00
Eric Leijonmarck
3979ea0c47
Anonymous Access: Pagination for devices (#80028)
* first commit

* add: pagination to anondevices

* fmt

* swagger and tests

* swagger

* testing out test

* fixing tests

* made it possible to query for from and to time

* refactor: change to query for ip adress instead

* fix: tests
2024-01-15 12:13:38 +00:00
Máté Szabó
e2b706fdd3
Jaeger: Add service dependency graph support (#72200)
* Jaeger: Add service dependency graph support

Add support for visualizing Jaeger's service dependency graph via the
Jaeger data source. Per the discussion[1], this is done by proxying the
internal Jaeger HTTP API endpoint used by Jaeger's own UI for fetching
graph data, and transforming it into a format suitable for the node
graph panel in Grafana.

---
[1] https://github.com/grafana/grafana/discussions/52035

* Small lint fixes

* Type fix

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-01-15 13:02:00 +01:00
Ashley Harrison
ec53487c99
NestedFolderPicker: separate toggle to force enable picker without nestedFolders (#80461)
* separate nestedFolderPickerOverride toggle to force enable it without nestedFolders

* let's call it newFolderPicker

* update unit tests and keyboard handling

* reduce spacing when no folder open chevron

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-15 11:43:19 +00:00
renovate[bot]
d91d4e87b9 Update dependency immer to v10.0.3 2024-01-15 11:31:54 +00:00
Ashley Harrison
15af2e5053
Connections: Pass keywords from the backend to CommandPalette (#80276)
* pass keywords from the backend to CommandPalette

* add csv and json to keywords
2024-01-15 11:30:55 +00:00
Josh Hunt
94ec6474d3
NestedFolders: Support Shared with me folder for showing items you've been granted access to (#80141)
* start shared with me frontend tweaks

* prevent linking to sharedwithme folder

* tests

* make divider take up 0 height

* Prevent sharedwithme from being selected

* test
git push

* pr feedback

* prevent setting url for sharedwithme

* split iconForItem/kind functions

* Hide sharedwithme in nested folder picker

* fix test fixture
2024-01-15 10:56:31 +00:00
Ashley Harrison
083605c17f
DockedMenu: only set the menu state to be docked if the window size is big enough (#80379)
* only set the menu docked in state if the window size is big enough

* adjust sizes

* remove top border on dockedMegaMenu

* another css tweak

* use xxl consistently

* CONSISTENTLY

* ok maybe not
2024-01-15 10:12:41 +00:00
Andreas Christou
702e7cb3ac
Azure: Fix type exports (#80469)
Fix type exports
2024-01-15 10:54:52 +01:00