Commit Graph

47398 Commits

Author SHA1 Message Date
Alexander Weaver
90d4704cd7
Alerting: Fix URL timestamp conversion in historian API in annotation mode (#80026)
Fix timestamp conversion when calling annotation store
2024-01-04 12:40:21 -06:00
Esteban Beltran
fc8e2472e1
Chore: Simplify Levitate breaking changes workflow (#80014)
* Test using an app instead of token for this workflow

* Rename workflow for testing

* Add a test workflow

* Test 1

* Integrate report

* Checkout repository

* Try with github token instad of the app

* Use short slog instead of adding org

* Add failure to pipeline when breakikng

* Change exit code to report

* Improve message

* Restore files

* Temporarily lift restriction

* Put pack path restriction

* remove comment
2024-01-04 18:19:20 +01:00
Sven Grossmann
91e49ec0d6
Loki: Fix getParserAndLabelKeys not returning parsed labels (#80029) 2024-01-04 17:58:03 +01:00
Yuri Tseretyan
f6a46744a6
Alerting: Support hysteresis command expression (#75189)
Backend: 

* Update the Grafana Alerting engine to provide feedback to HysteresisCommand. The feedback information is stored in state.Manager as a fingerprint of each state. The fingerprint is persisted to the database. Only fingerprints that belong to Pending and Alerting states are considered as "loaded" and provided back to the command.
   - add ResultFingerprint to state.State. It's different from other fingerprints we store in the state because it is calculated from the result labels.
  -  add rule_fingerprint column to alert_instance
   - update alerting evaluator to accept AlertingResultsReader via context, and update scheduler to provide it.
   - add AlertingResultsFromRuleState that implements the new interface in eval package
   - update getExprRequest to patch the hysteresis command.

* Only one "Recovery Threshold" query is allowed to be used in the alert rule and it must be the Condition.


Frontend:

* Add hysteresis option to Threshold in UI. It's called "Recovery Threshold"
* Add test for getUnloadEvaluatorTypeFromCondition
* Hide hysteresis in panel expressions

* Refactor isInvalid and add test for it
* Remove unnecesary React.memo
* Add tests for updateEvaluatorConditions

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2024-01-04 11:47:13 -05:00
Eric Leijonmarck
29c251851d
Doc: fix remove link to enterprise issue for datasource permission breaking change changelog for 10.2.3 (#80030)
* fix: link to enterprise issue

* fix: remove link to enterprise
2024-01-04 17:37:03 +01:00
Joey
ef6b35ad3b
Tempo: Copy trace query to TraceQL tab (#79935)
* Copy trace query to TraceQL tab

* Remove datasourceType

* Update button position

* Update test

* Remove extra check

* Update text
2024-01-04 16:10:09 +00:00
Ishan Jain
e508c83538
Adding the link to the E2C migration guide (#79868)
* Adding the link to the E2C migration guide

* Update docs/sources/introduction/grafana-enterprise.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-01-04 09:52:29 -06:00
Bryan Huhta
e64cb8541f
Pyroscope: Send start/end with profile types query (#77523) 2024-01-04 16:35:47 +01:00
Dominik Prokop
e93c150406
DashboardScene: Enable scene tracking information (#79963)
* DashboardScene: Enable scene tracking information alt

* tests update

* Review

* Revert "tests update"

This reverts commit 43f894236a.

* nit
2024-01-04 16:34:15 +01:00
Haris Rozajac
20096259d3
Explore: Add active state to ContentOutlineItemButton (#78779)
* Add active state to ContentOutlineItemButton

* Improve

* WIP: improve

* Cleanup

* Fix

* Improve betterer, remove extra curly braces
2024-01-04 08:15:50 -07:00
Alvaro Huarte
40583aec0f
Table: Add select/unselect all column values to table filter (#79290)
* Add/Remove columns values to the filter using a UX similar to the github inbox

* Align select all checkbox and fix wording

* Update docs/sources/panels-visualizations/visualizations/table/index.md

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

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-04 16:09:16 +01:00
Torkel Ödegaard
f0c38611a2
Scenes: Remove old scenes stuff (#79760)
* Scenes: Remove old scenes stuff

* Fixes

* Fixes

* update
2024-01-04 15:44:41 +01:00
Adela Almasan
692e8958a3
VizTooltips: Disable newVizTooltips when dashboard shared cursor is enabled (#79996) 2024-01-04 08:29:39 -06:00
Sonia Aguilar
d29f9cfd3c
Fix: Switch component not being styled as disabled when is checked (#80012)
* Fix Switch component not being styled as disabled when checked

* Remove unnecessary code
2024-01-04 15:07:22 +01:00
Alex Khomenko
0844b87b2f
PluginDetails: Fix usage list height (#79695) 2024-01-04 15:42:28 +02:00
Torkel Ödegaard
a349ef6c0b
Themes: Fixes system theme asset paths (#80019) 2024-01-04 14:33:19 +01:00
Eric Leijonmarck
89a3337afa
Fix: Text area for devices not found to say no devices (#80011)
* initla commit

linting

make it along the area

* linting
2024-01-04 14:04:45 +01:00
Jamin
576b8ccff6
Frontend: Migrate PageToolbar.tsx from aria-label e2e selectors to data-testid (#79663)
* refactor: update PageToolbar to use data-testid

* refactor: update selector text

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-04 13:52:38 +02:00
Ashley Harrison
5154a9d99c
Chore: wait for component to render properly to prevent act warning (#80016)
wait for component to render properly to prevent act warning
2024-01-04 11:25:48 +00:00
Joey
70a25eaf2c
Pyroscope: Update data source name in variable editor tooltip (#79974)
Update data source name in tooltip
2024-01-04 11:24:01 +00:00
Agnès Toulet
1cec6195f1
Rendering: Fix plugin initialization (#80013) 2024-01-04 11:30:01 +01:00
Zoltán Bedi
b2b4e8f68d
MySQL: Update documentation around timezone (#79213)
* MySQL: Update documentation around timezone

* Update docs/sources/datasources/mysql/_index.md

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Update formatting

* see -> refer to

---------

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2024-01-04 12:28:00 +02:00
Giordano Ricci
2d18961768
Explore: Fix URL sync with async queries import (#79584)
* cancel pending queries

* Update public/app/features/explore/hooks/useStateSync/index.ts

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

* Update public/app/features/explore/hooks/useStateSync/index.ts

* Fix test

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2024-01-04 09:50:27 +00:00
Jo
5ae3249c36
Auth: Hide forgot password if grafana auth is disabled (#79895)
* hide forgot password if grafana auth is disabled

* fix test
2024-01-04 10:46:55 +01:00
Torkel Ödegaard
e924627659
Frontend: Reload the browser when backend configuration/assets change (#79057)
* Detect frontend asset changes

* Update

* merge main

* Frontend: Detect new assets / versions / config changes (#79258)

* avoid first check

* Updates and add tests

* Update

* Update

* Updated code

* refine

* use context

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-04 08:00:07 +01:00
Leon Sorokin
7210e378b8
TimeSeries: Fix stacking opacity accumulation on exit from PanelEdit (#80006) 2024-01-03 22:56:03 -06:00
Andreas Christou
dd77ff6bcd
Plugins: Externalise Azure Monitor data source (#79545)
* Set up frontend linting for Azure

- Fix final frontend import
- Fix other lint issues

* Add Azure Monitor to backend linting

* Remove featuremgmt dependency

* Add intervalv2 to list of disallowed imports

* Remove config dependency

- Replace with function from azure-sdk

* Remove util dependency

* Duplicate interval functionality from core

* Add required backend wrappers

* Update frontend

* Add testing helper

* Add missing package

* Bump minimum grafana dependency

* Fix dependency

* Regen cue

* Fix lint

* Update expected response file

* Update import and dependency
2024-01-03 19:20:22 +00:00
Ashley Harrison
d680a020cc
Command Palette: Adjust command palette extensions priority (#79992)
adjust command palette extensions priority
2024-01-03 16:18:27 +00:00
Esteban Beltran
5c67c4b082
Chore: Log error from App loading in console and faro (#79977)
* Chore: Log error from App loading in console and faro

* Add error spy for console
2024-01-03 15:51:31 +01:00
Mihai Doarna
c219a19f97
Auth: Add missing 404 status code from the SSO Settings delete endpoint (#79982)
add missing 404 status code from sso settings delete endpoint
2024-01-03 16:05:11 +02:00
Ivana Huckova
7be8301a26
Loki: Add integration tests to query builder (#79978)
* Loki: Add integration tests

* Use findBy instead of getBy

* Fix console error
2024-01-03 15:57:53 +02:00
Ashley Harrison
54369158ce
Betterer: update results file (#79979)
update results file
2024-01-03 13:21:36 +00:00
Ashley Harrison
9de79fb5e9
Chore: remove react-popper-tooltip in favour of @floating-ui/react (#79465)
* use floating-ui instead of react-popper-tooltip in Tooltip

* remove useTheme2 usage

* remove escape handling logic in favour of useDismiss

* don't need this useEffect anymore

* convert Toggletip to use floating-ui

* use explicit version

* convert OperationInfoButton to use Toggletip

* convert nestedFolderPicker to use floating-ui

* convert Dropdown to use floating-ui and remove react-popper-tooltip

* fix Modal/Tooltip tests

* revert to old toggletip behaviour

* revert OperationInfoButton to not use Toggletip

* add mock for requestAnimationFrame

* remove requestAnimationFrame mock

* remove fakeTimers where they're not used

* use floating-ui in ButtonSelect

* Fix filters unit tests

* only attach description if label is different

* use 'fixed' strategy for Toggletip

* use stroke and strokeWidth

* set move: false to only show the tooltip if a hover event occurs

* update type for onClose
2024-01-03 12:42:26 +00:00
Tobias Skarhed
9c9a055c3e
Chore: Remove gf-form from PluginDashboards (#79300)
Remove gf-form in PluginDashboards
2024-01-03 13:30:39 +01:00
Tobias Skarhed
65a655cfc9
Chore: Remove gf-form in DashboardLinks (#79762) 2024-01-03 13:30:17 +01:00
Adela Almasan
070e41d136
Exemplars: Update UX to match new tooltips (#79916) 2024-01-03 06:27:34 -06:00
Adela Almasan
552fa78564
StateTimeline: Add tooltip multi mode (#79944)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-03 06:27:17 -06:00
Marco Schaefer
7d5432e10a
Faro: Add missing SessionInstrumentation for Faro config (#79826) 2024-01-03 13:00:27 +01:00
Giuseppe Guerra
b1c7aa269b
Dependencies: Bump github.com/grafana/grafana-plugin-sdk-go from v0.197.0 to v0.198.0 (#79928)
* chore: Bump google.golang.org/grpc from 1.59.0 to 1.60.1

* Bump google.golang.org/protobuf to v1.32.0

* Fix make protobuf failing with latest protoc and protoc-gen-go

* Re-generate protobuf files

* Re-generate protobuf files

* Bump grafana-plugin-sdk-go

* go mod tidy
2024-01-03 13:36:44 +02:00
Joey
00bc13e37c
Pyroscope: Remove unnecessary import and logic (#79568)
* Remove unecessary import and logic

* Update test
2024-01-03 11:25:38 +00:00
Mihai Doarna
ade91e5038
Auth: Implement the SSO Settings update endpoint (#79676)
* merge with system settings before storing them in the db

* add base for validating sso settings

* add unit tests for sso settings validation

* call Reload() from sso service upsert()

* remove actual validation because it was moved in a separate pr

* use constant to fix lint error

* check if provider is configurable in service Upsert() method

* add unit tests for update provider settings api method

* fix lint error
2024-01-03 13:04:35 +02:00
Ida Štambuk
a255058ccf
Query Editor: Display error even if error field is empty (#79943) 2024-01-03 11:31:59 +01:00
Fabrizio
ed5c90a8b1
Tempo: Fix Spans table format (#79938) 2024-01-03 11:28:13 +01:00
Joey
e372b54722
Tempo: Easily filter by trace duration (#79931)
* Easily filter by trace duration

* Add test

* Update onChange
2024-01-03 10:00:22 +00:00
Esteban Beltran
fd2c326964
Faro: Send context with faro logError function (#79499)
* Faro: Send context with faro logError function

* Empty commit
2024-01-03 11:45:23 +02:00
Mihai Doarna
6465d87afd
Auth: Add basic validation for SSO settings (#79696)
* add basic validation for sso settings

* remove validation for the client secret
2024-01-03 10:02:03 +02:00
Leon Sorokin
fb79be4a43
Transformations: Add frame source picker to allow transforming annotations (#77842)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-02 23:33:31 -06:00
Todd Treece
a5957ba555
DevEnv: Add pyroscope to self-instrumentation (#78430) 2024-01-02 15:35:59 -05:00
Drew Slobodnjak
2502fe4d19
Canvas: Add Pan and Zoom (#76705)
* Canvas: Add Zoom

* Scale selecto components based on zoom state

* Fix pan by reverting to 3.1.0 for zoom-pan

* Update to latest library that fixes pan regression

* Add mini map to canvas pan zoom

* Fix selecto and anchors on hover

* Update naming to be more clear

* Switch back to contentComponent

* Apply transformScale to drag and resize

* Update connection source and target scaling

* Add option to display mini map

* Update yarn lock

* Revert "Update yarn lock"

This reverts commit 3d1dd65d57.

* Set yarn lock to main

* Revert "Set yarn lock to main"

This reverts commit 64bc50557e.

* Update to Yarn 4

* Add react-zoom-pan-pinch

* Update react-zoom-pan checksum

* Revert changes to json files

* Remove last line of api merged

* Remove last lines of all impacted jsons

* Update home json

* Update coordinate calc function to include scale

* Fix types in coordinate calc function

* Fix util calculation for transform

* Fix arrow anchor shift behavior

* Fix scale offset when adding elements during zoom

* Fix drag of selected group during zoom

* Add feature flag for canvas pan zoom

* Revert "Add feature flag for canvas pan zoom"

This reverts commit b026e31d8d.

* Regenerate feature flag after merge

* Apply feature flag to enable pan zoom wrappers

* Add mini map toggle behind feature flag

* Simplify minimap behavior

* Update feature flag registry

* Set minimap to false by default

* fix gen-cue

* Set toggles gen to main

Add blank line to toggle gen csv

* Add canvas pan zoom to csv

* Remove old comment

* Change ref parameter to be more descriptive

* Rename visibleFun to be more descriptive

* Consolidate transformScale transformRef in util

* Remove non-null assertion on connection parentRect

* Consolidate parentRect null coalescing into object

* Remove minimap and change toggle

* Add controls inline help for pan and zoom

* Clean up mouse events

* Pull scale out of ref and isolate transform

* Remove transform ref from scene div

* Fix context menu visible behavior

* Fix connections and update util functions

* Move transform component instance to util

* fix backend test

* minor updates

* Clean up connections / fix minor bug where offset of arrow wasn't being calculated correctly

* missed connection code cleanup

* cleanup scene code a bit more

* actually fix backend test

* move eslint disable line closer to actual issue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-02 11:52:21 -08:00
Ryan McKinley
c598306523
K8s: Enable api-server by default (#79942) 2024-01-02 09:54:57 -08:00