Commit Graph

20753 Commits

Author SHA1 Message Date
Ezequiel Victorero
25ff4baa76
UI: New share button and toolbar reorganize (#77563) 2024-01-08 10:42:24 -03:00
Sven Grossmann
d1b0e9082d
Loki: Fix metric time splitting to split starting with the start time (#80085)
* Loki: Fix metric time splitting to split starting with the start time

* add test case to gdev-dashboard

* fix splitting test
2024-01-08 13:26:16 +01:00
Joey
f0cb88e3b5
Pyroscope: Add Span ID to options collapsed info (#79981)
* Pyroscope: Add Span ID to options collapsed info

* Update for multiple

* Update public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

---------

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
2024-01-08 12:07:19 +00:00
Ivana Huckova
0440b29ebf
Chore: Bump @grafana/experimental from 1.7.4 to 1.7.5 (#80074)
* For LLM, replace enabled() with health()

* For LLM, replace enabled() with health()

* Update experimental in azueremonitor and testdata plugins
2024-01-08 10:29:08 +01:00
Konrad Lalik
6fd0ae0474
Alerting: Fix alertmanager query param when returning to silences list (#80021)
* Add alertmanager query param when returning to silences list. Sync query and storage alertmanager param

* Remove unused imports
2024-01-08 10:16:37 +01:00
Ivana Huckova
9cdd519e53
Loki: Use localStorage to set and get showExplain (#80069)
* Loki: Use localStorage to set and get showExplain

* Move hooks outside of shared folder
2024-01-07 12:51:21 +01:00
Matthew Jacobson
aa03b8f8a7
Alerting: Guided legacy alerting upgrade dry-run (#80071)
This PR has two steps that together create a functional dry-run capability for the migration.

By enabling the feature flag alertingPreviewUpgrade when on legacy alerting it will:
    a. Allow all Grafana Alerting background services except for the scheduler to start (multiorg alertmanager, state manager, routes, …).
    b. Allow the UI to show Grafana Alerting pages alongside legacy ones (with appropriate in-app warnings that UA is not actually running).
    c. Show a new “Alerting Upgrade” page and register associated /api/v1/upgrade endpoints that will allow the user to upgrade their organization live without restart and present a summary of the upgrade in a table.
2024-01-05 18:19:12 -05:00
Leon Sorokin
200c71f5d6
VizTooltips: Optimize performance (#80102) 2024-01-05 16:07:04 -06:00
Leon Sorokin
1ec04243da
Heatmap: All tooltip mode selector (#79956)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-05 13:11:24 -06:00
Oscar Kilhed
583b9797af
Transformations: Move moving average, regression analysis and format string transformations to public preview (#80067)
* move transformation features to public preview

* update docs

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

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

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

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

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

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

* fix formating of ffs

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-05 19:39:02 +01:00
Nathan Marrs
3609dbd0a2
Barchart: Fix percent stacking regression (#79903)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 18:58:47 +02:00
Ivana Huckova
c48e2c7d0d
Loki: Update mocks and move into __mocks__ (#79993)
Loki: Update mocks and move into __mocks__
2024-01-05 17:11:58 +01:00
Ivana Huckova
45f157e5db
Loki: Fix import of escapeLabelValueInExactSelector to be from Loki (#80063)
* Loki: Fix import of escapeLabelValueInExactSelector to be from Loki

* Add test

* Update test nane
2024-01-05 16:54:46 +01:00
Giordano Ricci
c3934ba60b
Explore: Preserve time range when creating a dashboard panel from Explore (#80070)
* Explore: Preserve time range when creating a dashboard panel from Explore

* fix tests
2024-01-05 15:10:31 +00:00
Oscar Kilhed
f5a221e93f
Transformations: Fix bug where having NaN in the input to regression analysis transformation causes all predictions to be NaN (#80079)
Make regression analysis transformation handle NaN
2024-01-05 15:50:20 +01:00
Julien Duchesne
c7f515b9b2
fix(swagger): POST -> GET method for two access control endpoints (#80082)
Missed those here: https://github.com/grafana/grafana/pull/80053
2024-01-05 09:40:08 -05:00
Giordano Ricci
61623a4a9b
Chore: move PrometheusListView specific utils in the correct directory (#80072) 2024-01-05 14:19:50 +00:00
Giordano Ricci
8bd053e5f4
Explore: Init with mixed DS if there's no root DS in the URL and queries have multiple datasources (#80068) 2024-01-05 14:19:39 +00:00
Marco Schaefer
329ec2624a
fix: Faro usage issue (#80033) 2024-01-05 14:47:32 +01:00
Tobias Skarhed
fbd0ceec7c
Chore: Remove gf-form in Permissions (#79908)
* Remove empty table in favor of Alert

* Change to using Box and Text
2024-01-05 14:32:01 +01:00
Julien Duchesne
5e74c19628
fix(swagger): Add new access control endpoints (#80053)
There were a few errors that prevented these endpoints (which are the most up-to-date ones) from being present in the openapi spec:
- The `enterprise` tag excluded the endpoints from being generated
- `okRespoonse` typo
- Invalid templating on the parameters
- Missing parameter structs
2024-01-05 08:12:01 -05:00
Dominik Prokop
47b986606e
DashboardScene: Update tracking behavior (#80057) 2024-01-05 14:32:06 +02:00
Alex Khomenko
99f7110e39
React Hook Form: Update to v 7.49.2 (#79493)
* Update RHF to latest

* Update Form types

* Fix alerting types

* Fix correlations types

* Update tests

* Fix tests

* Update LabelsField.tsx to use InputControl

* Update RuleEditorGrafanaRules.test.tsx

* Update RuleEditorCloudRules.test.tsx

* Only require one label

* Update RuleEditorRecordingRule.test.tsx

* Fix labels rules

* Revert

* Remove RHF from ignore rules

* Revert

* update form validation for overriding group timings

* Fix changes to correlations

* Fix auth type errors

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-01-05 12:41:49 +02:00
Ivana Huckova
2b02ada7ad
Loki: Remove dependency on appNotification (#80035)
* Loki: Remove dependency on appNotification

* Fix and add tests

* Fix lint
2024-01-05 11:01:47 +01:00
Ivana Huckova
b6bee6f72b
Loki: Remove usage of store from app/core/store and use localStorage directly (#80023)
Loki: Remove usage of store from  and use localStorage directly
2024-01-05 10:33:44 +01:00
Matthew Jacobson
c18da48e50
Alerting: Separate overlapping legacy and UA alerting routes (#76517)
* Separate overlapping legacy and UA alerting routes

api/alert-notifiers, alerting/list, and alerting/notifications existed in both
legacy and UA.
Rename legacy route paths and nav ids to be independent of UA ones.
2024-01-04 18:01:57 -05:00
Adela Almasan
935ecdd809
XYChart: Improved new tooltip (#75818)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 00:55:23 +02:00
Galen Kistler
098e47747f
Logs Panel: Table UI - add explore viz type to grafana_explore_logs_result_displayed event (#80037)
* add explore visualisation type to grafana_explore_logs_result_displayed event

* add log row count

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-01-04 14:01:28 -06:00
Nathan Marrs
339ea65a58
Gdev: Fix breaking gdev testdata datasource (#80007)
fix for breaking gdev testdata datasource
2024-01-04 11:13:55 -08: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
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
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
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
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
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
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
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