Commit Graph

20224 Commits

Author SHA1 Message Date
Gilles De Mey
e61ebd4b06
Alerting: Do not show missing integration while loading oncall plugin status (#77710) 2023-11-06 15:51:36 +01:00
Gilles De Mey
901a6bfa69
Alerting: Use correct URL for modify export (#77714) 2023-11-06 15:50:29 +01:00
Alexander Zobnin
a558d287a7
Role picker: Remove unnecessary table wrapper (#77707) 2023-11-06 15:33:58 +01:00
Ashley Harrison
b6e2db7d91
Navigation: Report megamenu state when clicking a navigation item (#77705)
report megamenu state when clicking a navigation item
2023-11-06 14:32:29 +00:00
Sonia Aguilar
df7b760f37
Alerting: Disable cache in rktq when fetching export data. (#77678)
* Disable cache in rktq when fecthing export rules group

* Fix export rules data being cached

* Disable cache for the rest of export endpoints
2023-11-06 15:15:53 +01:00
Ashley Harrison
c0afa74876
QueryRows: Fix being able to reorder rows with keyboard (#77355)
* Revert "Explore: A tooltip for reorder icon in query operation (#75978)"

This reverts commit 76e102d1a3.

* update type

* CI driven development
2023-11-06 13:52:50 +00: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
Ivana Huckova
a1718aafce
Elasticsearch: Add error source for DataQuery (#77386)
* WIP

* Refactor, plus update source of error in response_parser

* Adjust test

* Use methods and httpclient from errorsource

* Update pkg/tsdb/elasticsearch/data_query.go

Co-authored-by: Scott Lepper <scott.lepper@gmail.com>

* Return nil error

* Fix test

* Fix integration test

---------

Co-authored-by: Scott Lepper <scott.lepper@gmail.com>
2023-11-06 11:36:39 +01: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
Julien Duchesne
c3962acf98
Swagger: Rename annotations model (#77605)
Currently, in the schema, it's a global definition called `ItemDTO`. It's hard to figure out what that is
Renaming it to `Annotation` should be more helpful
2023-11-03 18:32:06 -04:00
Ashley Harrison
d68d31c63c
Navigation: Hide Undock menu button when docked (#76965)
* small dock menu exploration

* fix e2e tests

* revert back to web-section-alt
2023-11-03 17:07:15 +00:00
Gabriel MABILLE
bf363b3234
ServiceAccounts: Use isManaged in DTO instead of isExternal (#77634)
* ServiceAccounts: Use IsManaged in DTO instead of isExternal

* Revert omitempty

* Modify the other DTO

* Swagger
2023-11-03 17:49:11 +01:00
kay delaney
c98add6e5a
Dashboards: Fix issue causing crashes when saving new dashboard (#77620)
Closes #77593
2023-11-03 18:33:59 +02: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
Gilles De Mey
3dac37380d
Alerting: Fix export with modifications URL when mounted on subpath (#77622) 2023-11-03 16:36:53 +01:00
Andrew Hackmann
dc1b4ceb06
Azure monitor/remove reference to core config (#77601)
remove app config
2023-11-03 10:18:02 -05:00
Victor Marin
61d63d3034
Transformations: Cumulative and window modes for Add field from calculation (#77029)
* cumulative sum

* refactor and create new mode

* refactor - use reduceOptions for new mode also

* revert naming

* Add window function, rename statistical to cumulative (#77066)

* Add window function, rename statistical to cumulative

* Fix merge errors

* fix more merge errors

* refactor + add window funcs

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* add ff + tests + centered moving avg

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* make sum and mean cumulative more efficient (#77173)

* make sum and mean cumulative more efficient

* remove cumulative variance, add window stddev

* refactor window to not use reducer for mean. wip variance stdDev

* fix tests after optimization

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>

* optimize window func (#77266)

* make sum and mean cumulative more efficient

* remove cumulative variance, add window stddev

* refactor window to not use reducer for mean. wip variance stdDev

* fix tests after optimization

* fix test lint

* optimize window

* tests are passing

* fix nulls

* fix all nulls

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>

* change window size to be percentage

* fix tests to use percentage

* fixed/percentage window size (#77369)

* Add docs for cumulative and window functions of the add field from calculation transform. (#77352)

add docs

* splling

* change WindowType -> WindowAlignment

* update betterer

* refactor getWindowCreator

* add docs to content.ts

* add feature toggle message

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2023-11-03 16:39:58 +02:00
Jacob Zelek
6bf4d0cbc6
DashboardGrid: Add support to filter panels using variable (#77112)
* DashboardGrid panel filter

* Missed segment and changes per PR discussion

* Hide feature flag from docs

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-11-03 05:15:54 -07:00
Ashley Harrison
f32bc17422
Navigation: Use LoadingBar in CommandPalette (#77506)
try using LoadingBar in CommandPalette
2023-11-03 09:54:25 +00:00
Alexander Zobnin
dcdd334663
RolePicker: Use portal to render menu (#77499)
* RolePicker: Use portal for menu

* Remove logging

* Fix submenu styles

* Fix ROLE_PICKER_MAX_MENU_WIDTH calculation

* Fix first menu open glitch

* Fix menu closing on ckick

* Fix menu position
2023-11-03 11:06:51 +02:00
Torkel Ödegaard
beb84384da
Theme: Update old css class add-data-source-item to use card styling (#77487) 2023-11-03 07:28:45 +01: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
Kristina
9e0ca0d113
Correlations: Add transformations to Explore Editor (#75930)
* Add transformation add modal and use it

* Hook up saving

* Add transformation vars to var list, show added transformations

* Form validation

* Remove type assertion, start building out transformation data in helper (WIP)

* Style expression better, add delete logic

* Add ability to edit, additional styling on transformation card in helper

* simplify styling, conditionally run edit set up logic

* Keep more field information in function, integrate it with new editor

* Show default label on collapsed section, use deleteButton for confirmation of deleting transformations

* Change transformation add calculations from function to hook, add label to collapsed header, add transformation tooltip

* Make correlation and editor dirty state distinctive and integrate, WIP

* Track action pane for more detailed messaging/actions

* Better cancel modal logic

* Remove changes to adminsitration transformation editor

* Remove debugging line

* Remove unneeded comment

* Add in logic for closing editor mode

* Add tests for modal logic

* Use state to build vars list for helper

* WIP

* Fix labels and dirty state

* Fix bad message and stop exiting mode if discard action is performed

* Fix tests

* Update to not use unstable component and tweak default label
2023-11-02 15:09:30 -05:00
Dominik Prokop
6e80a3d59b
DashboardScene: Viewer role only support (#76748)
* Allow starring DashboardScene

* Add feature toggle to enable dashbaord scene for viewers

* Basics for proxying viewers to a dashboard scene

* Removed isHomeDashboard flag

* Don't use proxy for rendering dashboard page

* Revert "Don't use proxy for rendering dashboard page"

This reverts commit 95836bdb2c.

* Pre-fetch dashboard prior page rendering

* Depend only on dashboard permissions

* Update default home dashboard to proper model...

* Fix breadcrumbs

* Types update

* Dashboards page proxy tests

* Fix missing controls

* URLs generation

* DashboardScenePageStateManager caching test

* Tests updates

* Fix wrong import

* Test update

* Gen
2023-11-02 12:02:25 -07: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
Sonia Aguilar
0abfc3b6be
Alerting: Update 'Create alert' to 'New alert rule' in the panel and docs (#76950)
* Update 'Create alert' to 'New alert rule' in the panel and docs

* Fix test
2023-11-02 17:33:53 +01:00
Ryan McKinley
878235248e
Chore: avoid using deprecated ArrayVector (#77581) 2023-11-02 18:24:57 +02:00
Oscar Kilhed
0eda368d32
Transformations: Deduplicate names when using extract fields transformation. (#77569)
* dedupe field names

* add test to make sure we don't break normal case
2023-11-02 16:47:42 +01:00
Ryan McKinley
45d59cf31b
Dashboards: Remove dummy trim dashboard api (#77249)
Co-authored-by: nikimanoledaki <niki.manoledaki@grafana.com>
2023-11-02 08:35:14 -07:00
Kyle Cunningham
e714c9303e
Timeseries to table transformation: Update Output Changes (#77415)
* Break out labels into separate fields

* More Updates

* Minor test changes

* Use 'A' for transformed refId

* Make sure tests pass

* Add additional test

* Prettier

* Remove dead comment

* Update time field selection options

* remove console.log

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
2023-11-02 10:25:48 -05:00
Fabrizio
b13395afbc
Tempo: Handle empty responses in ServiceGraph (#77539) 2023-11-02 11:23:18 +01:00
Alex Khomenko
d62170e4ce
Grafana/ui: Move the Stack component out of unstable (#77495)
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports
2023-11-02 12:22:57 +02: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
Ryan McKinley
c6e27e00b4
Chore: Move internal GraphNG+Timeseries components into core (#77525)
* move to core where possible

* update imports

* ignore import order for now

* add graveyard files

* update codeowners
2023-11-01 21:59:55 -07:00
Ryan McKinley
fb9732e319
Chore: Prepare to remove <Graph /> from @grafana/ui (#77522) 2023-11-01 14:13:48 -07:00
Ryan McKinley
e3641d925c
K8s/Playlist: Support full CRUD from k8s to existing storage (#75709) 2023-11-01 12:32:24 -07:00
Drew Slobodnjak
9116043453
Storage: Add maxFiles to list functions (#76414)
* Storage: Add maxFiles to list functions

* Add maxDataPoints argument to listFiles function

* Add maxFiles to ResourceDimensionEditor

* Update pkg/services/store/http.go

* rename First to Limit

---------

Co-authored-by: jennyfana <110450222+jennyfana@users.noreply.github.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-01 09:42:24 -07:00
Nathan Marrs
124bf6bfa9
chore: canvas cleanup betterer styles object notation edition (#76315)
Co-authored-by: drew08t <drew08@gmail.com>
2023-11-01 18:25:26 +02:00
Ivana Huckova
a38c9d4f44
Loki: Add maxLines option to getParserAndLabelKeys (#77460)
* Loki: Add logsCount option to getParserAndLabelKeys

* Rename logsCount to maxLines
2023-11-01 17:22:33 +01:00
Andreas Christou
17a24c92e8
AzureMonitor: Add missing namespaces (#77308)
Add missing namespaces and order
2023-11-01 16:15:08 +00:00
Giordano Ricci
7737226786
Explore: Fix support for angular based datasource editors (#77486) 2023-11-01 15:49:45 +00:00
Sofia Papagiannaki
dfc33a70b7
Dashboards: Fix creating dashboard under folder using deprecated API (#77501)
* Dashboards: Add integration tests for creating a dashboard

* Fix creating dashboard under folder using deprecated API

* Update swagger response

* Fix comments
2023-11-01 17:01:54 +02:00
Josh Hunt
e8f0f6b7c8
Page: Remove Canvas background from primary background pages (#77008)
* Remove canvas background for primary background pages

* refactor styles
2023-11-01 12:58:18 +00:00
Utkarsh Deepak
20c0fbf92d
ValueFormats: Use plural for time units (#77337)
* Dashboard: Use plural values for time units

* Cleaned up code a bit and added support for negative values.

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-11-01 14:50:33 +02:00
Sven Grossmann
57835c71b1
Loki: Add supportingQueryType to datasample queries (#77482)
add `supportingQueryType` to datasamples
2023-11-01 13:42:28 +01:00
Ashley Harrison
2d5e602b2d
Navigation: Minor tweak to dockedMegaMenu to make it slightly tighter (#77493)
minor tweak to dockedMegaMenu to make it slightly tighter
2023-11-01 13:56:58 +02:00
Alexander Zobnin
cf7a2ea733
RolePicker: Optimise rendering inside lists of items (#77297)
* Role picker: Load users roles in batch

* Use orgId in request

* Add roles to OrgUser type

* Improve loading logic

* Improve loading indicator

* Fix org page

* Update service accounts page

* Use bulk roles query for teams

* Use POST requests for search

* Use post request for teams

* Update betterer results

* Review suggestions

* AdminEditOrgPage: move API calls to separate file
2023-11-01 11:57:02 +01:00
Ashley Harrison
78df641b38
Navigation: Make page container automatically scroll when overflowing (#77489)
add overflow: auto to page container
2023-11-01 12:41:30 +02:00