Commit Graph

56805 Commits

Author SHA1 Message Date
Bogdan Matei
f51571db5d
Dashboards: Refactor types for dynamic dashboards (#100064) 2025-02-05 11:08:41 +02:00
Rares Mardare
bea62aa615
Alerting: Update IRM copies in Configuration Tracker (#100069)
* updated alerting configuration tracker with new IRM copies

* Configuration tracker steps

* copy

* CI trigger

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2025-02-05 09:58:19 +01:00
Mihai Doarna
5ad31ebe39
API keys: Migrate API keys to service accounts at startup (#96924)
* migrate API keys to SA at startup

* send metrics with api key migration stats

* address feedback

* run API keys migration in a server lock

* update logging
2025-02-05 10:55:47 +02:00
Todd Treece
17e21bff97
Dashboards: Fix title conversions (#100084) 2025-02-04 16:22:42 -05:00
Brendan O'Handley
7ebc81fbbf
Explore metrics: Fix otel bug (#100092) 2025-02-04 15:18:30 -06:00
owensmallwood
f9c4d3edce
Unified Storage: Updates index latency logging (#100085)
updates index latency logging
2025-02-04 13:33:44 -06:00
Yuri Tseretyan
68f1730461
Alerting: set updated_by for system owned operations (#100068) 2025-02-04 14:23:15 -05:00
Nathan Marrs
6eac07c3a7
Image Renderer: Add support for SSL in plugin mode (#98009) 2025-02-04 10:44:02 -08:00
Matias Chomicki
ff926c5ac5
Logs Panel: Base elements for the new visualization (#99084)
* Create base components

* Create measurement service

* Add container for list

* Use measurement to render virtualized log lines

* Match rendered styles in 2d context for measuring

* Improve virtualization initialization and handle resize

* Introduce log line processing

* Virtualization: fix measurement of lines with line endings

* Virtualization: include scrollbar width in calculation

* Remove logs

* Virtualization: optimize text measurement

* Add support for forceEscape

* Log line: properly style wrapped/unwrapped lines

* Virtualization: handle possible overflows

* Improve overflow handling

* LogList: remove scroll position ref

* Remove logs

* Remove log

* Add top/bottom navigation buttons

* Add timestamp to pre-processing

* Add showtime support

* Fix imports

* Chore: simplify dedup

* Show level

* Refactor measurement and measure level and timestamp

* Virtualization: skip unnecessary measurements

* Improve measurements to minimize overflow chance

* Introduce logline colors

* Update palette

* Remove pretiffying

* Add comment

* Remove unused variable

* Add color for info level

* Fix dependencies

* Refactor overflow to account for smaller estimations

* Debounce resizing

* Fix imports

* Further optimize height calculation

* Remove outline

* Unused import

* Use less under/overflow method

* Respond to height changes

* Refactor size adjustment to account for layout changes

* Add Logs Panel support

* Add margin bottom to log lines

* Remove unused option

* LogList: container div should never be null

Bad API design

* Log List: make app not undefined and update containerElement usages

* New Logs Panel: Create as new visualization (#99427)

* Logs Panel: clean up old panel

* Logs Panel New: create as new visualization

* Plugin: mark as alpha

* Logs panel new: hold container in a state variable

* Logs panel: fix no data state

* Create newLogsPanel feature flag

* Logs: use new feature flag

* Prettier

* Add new panel to code owners

* Logs Navigation: add translations

* Address betterer issues

* Fix import

* Extract translations

* Update virtualization.ts

* Virtualization: add DOM fallback for text measurement

* Run gen-cue

* plugins_integration_test: add logs-new to expected plugins
2025-02-04 18:40:17 +01:00
Sven Grossmann
87bb7c3947
Explore: Fix casing for exploreHideLogsDownload setting (#100081) 2025-02-04 18:32:08 +01:00
Todd Treece
3fd1b67381
Dashboards: Apply schemaVersion migration in v2 conversion (#99973) 2025-02-04 12:11:08 -05:00
Christopher Lord
e74cf72d99
Plugin Metrics: Eliminate data race in plugin metrics middleware (#99396)
fix: eliminate data race in plugin metrics middleware

A data race was detected when multiple goroutines accessed the `MetricsMiddleware`
simultaneously. The race occurred because a single `MetricsMiddleware` instance
was being shared across goroutines while its `BaseHandler` field was being
modified during middleware chain setup.

Fix by creating a new `MetricsMiddleware` instance for each middleware chain,
while safely sharing the thread-safe Prometheus metrics and plugin registry.
This maintains proper metrics collection while eliminating the mutable shared
state that caused the race condition.

Original error was detected here:

```
WARNING: DATA RACE
Read at 0x00c0039c0790 by goroutine 4486:
  github.com/grafana/grafana-plugin-sdk-go/backend.(*ErrorSourceMiddleware).CallResource()
      /Users/clord/src/grafana/irm-devstack/.devenv/state/go/pkg/mod/github.com/grafana/grafana-plugin-sdk-go@v0.261.0/backend/error_source_middleware.go:93 +0x40
  github.com/grafana/grafana-plugin-sdk-go/backend.BaseHandler.CallResource()
  ...

```
2025-02-04 16:54:27 +00:00
Karl Persson
b16e290444
Auth: Remove feature toggle authAPIAccessTokenAuth (#100055)
Remove feature toggle
2025-02-04 16:31:24 +01:00
Tom Ratcliffe
bb15f24dcd
Alerting: Update design of rule details tab and add updated by (#99895) 2025-02-04 16:56:17 +02:00
Victor Marin
00bcb61382
DynamicDashboards: Open edit overlay on selection if pane is collapsed (#99885)
* open edit pane on selection

* stuff

* use drawer instead for override panel options

* reverts

* closing edit pane while selection exists should also clear selection

* set width
2025-02-04 16:54:29 +02:00
Sergey Naumov
eb2f8182c0
Dashboards: Allow custom quick time ranges specified in dashboard model (#93724)
* TimeRangePicker: allow to customize quick ranges per dashboard

* TimeRangePicker: show selected custom time range using its name

* rangeutil: add tests for describeTextRange + quickRanges

* Fix up tests, and add an extra case for hidden time ranges

* Don't construct an object to find options, add findRangeInOptions util

* fix type errors detected by TypeScript

---------

Co-authored-by: joshhunt <josh@trtr.co>
2025-02-04 14:36:28 +00:00
beejeebus
cfae9d20d2
Add errorsource to InfluxDB datasource plugin fixes #1072 (#99900)
This PR adds `backend.ErrorSourceDownstream` values to all `backend.DataResponse`
values where it's certain that the error wasn't the result of the
InfluxDB datasource plugin.
2025-02-04 09:33:32 -05:00
Todd Treece
1f0ff19471
Dashboards: Fix schemaVersion test order (#100016) 2025-02-04 09:16:03 -05:00
Isabel Matwawana
4009433792
Docs: fix link text (#99932) 2025-02-04 09:06:39 -05:00
Victor Marin
2efb120737
DynamicDashboards: Fix scroll positioning when returning to dashboard (#100047)
* fix scroll positioning in new layouts editor

* refactor
2025-02-04 15:51:43 +02:00
Karl Persson
958d6e5e3a
Auth: Update authlib (#100041)
Bump authlib
2025-02-04 14:36:48 +01:00
Agnès Toulet
cd7c9f8666
Share: Fix short links when root_url is different from the browser URL (#99950)
Share: Fix short links when appUrl is misconfigured
2025-02-04 14:00:55 +01:00
Ivana Huckova
6e7e389ee2
Report grpc canceled timeouts as cancelled status and not error (#99981) 2025-02-04 13:31:03 +01:00
Bogdan Matei
d06d646aa1
DashboardList: Throttle the re-renders (#99982) 2025-02-04 14:14:28 +02:00
brendamuir
5d232daf0b
Adds johnny as codeowner for alerting docs (#99877)
* Adds johnny as codeowner for alerting docs

* changes maintainer
2025-02-04 13:10:57 +01:00
Bogdan Matei
c0f8d58079
Bump Scenes to 5.41.2 (#100036) 2025-02-04 13:18:37 +02:00
Alexa V
0fced84796
Dashboards: SchemaV2 - Fix saving dashboards on folder (#100037)
* Remove folder annotations not relevant to v2 api
* Add unit test for folder annotations
2025-02-04 12:57:38 +02:00
jackyin
73e3b04565
Dashboard: Playlist - Fix issue with back button (#99401)
* Playlist: Goback not work
* add unit test
* format code
2025-02-04 11:44:52 +01:00
Ashley Harrison
c94b8b78ae
API client generation: Add verify-api-clients step to drone (#99987)
* add verify-api-clients step to drone

* change to check the verify step fails

* ignore conf dir

* rerun make drone

* undo change to make step fail
2025-02-04 09:13:44 +00:00
Alex Khomenko
443cb092b4
RTK APIs: Support multiple source files (#100029) 2025-02-04 10:32:29 +02:00
Stephanie Hingtgen
0fa2d182d6
K8s: Fix dashboard deletion in folders (#100023) 2025-02-04 06:38:57 +02:00
Stephanie Hingtgen
8ac9c47222
Folders: Validator: add temporary fix (#100019) 2025-02-03 17:08:15 -06:00
Jev Forsberg
88c62cd828
Chore: Manually update versions and update grafana-test-datasource to "workspace:*" (#99999)
* baldm0mma/ manually update deps and run yarn

* baldm0mma/ update version from workspace to actual version

* baldm0mma/ revert some workspaces

* baldm0mma/ update workspace

* baldm0mma/ update deps
2025-02-03 15:12:05 -07:00
Jev Forsberg
46af49f907
Chore: Update alpine build docker image (#99998)
baldm0mma/ update alpine build image
2025-02-03 15:06:29 -07:00
Pepe Cano
5fe6479a10
Alerting docs: update screenshot (modify NoData/Error state) (#99996) 2025-02-03 22:01:18 +01:00
Scott Lepper
9677f4b692
[search] fix folder sync (#99913)
[search] fix folder sync
2025-02-03 15:55:22 -05:00
Nick Richmond
29fa6dfc8d
ExploreMetrics: Add toggle to enable routing to externalized Explore Metrics app plugin (#99481)
* feat: toggle for explore metrics app plugin

* chore: put app navigation settings behind feature toggle

* chore: require restart

* feat: context-driven applinks toggling

* fix: toggle ownership

* docs: note restart requirement

* refactor: prefer global feature toggle check

* chore: undo rm newlines

* fix: minimize changes

* fix: app id, `chromeless`, sidebar ordering
2025-02-03 15:46:54 -05:00
Yuri Tseretyan
ac41c19350
Alerting: Rule version history API (#99041)
* implement store method to read rule versions

* implement request handler

* declare a new endpoint

* fix fake to return correct response

* add tests

* add integration tests

* rename history to versions

* apply diff from swagger CI step

Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>

---------

Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2025-02-03 13:26:18 -05:00
Andreas Christou
8a259ecafa
Graphite: Ensure frames have refId set (#99911)
Ensure frames have refIDs

- Sanitise the refID
- Alias the query target with the refID
- Set the appropriate refID on the created frames
- Update tests
2025-02-03 17:43:28 +00:00
Matheus Macabu
66aec9ec1f
Docs: Fix typos in Cloud Migration Assistant standalone guide (#99959)
* Docs: fix typo important admonition in Cloud Migration Assistant page

* Docs: fix typo in feature toggle name in Cloud Migration Assistant page

* Docs: fix bullet point <li> missing in Cloud Migration Assistant page
2025-02-03 17:21:34 +01:00
Matias Chomicki
6805c5283c
LogsPanel: do not re-render while data is loading (#99882) 2025-02-03 16:47:26 +01:00
Yuri Tseretyan
807f94b2c7
Alerting: Remove feature toggle alertingNoNormalState (#99905) 2025-02-03 17:32:50 +02:00
Ashley Harrison
f728b2df12
API client generation: Dedupe scripts and centralise them (#99970)
dedupe scripts and centralise them
2025-02-03 15:26:23 +00:00
Victor Marin
d96c1169c2
DashboardLayouts: Multi-select elements (#99257)
* wip

* refactor to map

Co-authored-by: Sergej-Vlasov <sergej.vlasov@grafana.com>

* refactor + allow selecting any kind of elements

* rename class

* refactor + tests

* cr changes

* fix deselection on shift clicking multiselected objects

* i18n

* fix

* move logic to elementSelection

* lint fix

* unselecting last multiselected item should reopen dashboard options

---------

Co-authored-by: Sergej-Vlasov <sergej.vlasov@grafana.com>
2025-02-03 17:21:38 +02:00
Eric Leijonmarck
62aaec14b6
LBAC for datasources: Enabled by default - expression "true" (#99971)
* add expression "true"

* update gen json
2025-02-03 14:46:34 +00:00
Alexander Akhmetov
d6c1e3bb45
Alerting: Use org store to read organization IDs (#99938) 2025-02-03 15:38:16 +01:00
Joey
a18fa4af8f
Tempo: Fix devenv (#99750)
Fix Tempo devenv
2025-02-03 15:14:41 +01:00
Joey
302e90b8f8
TraceView: Add class name for Explore Traces to hide span details row (#98946)
Add class name for Explore Traces to hide span details row
2025-02-03 15:09:51 +01:00
Mitch Seaman
c3a55ab8cb
Docs: Correct license token renewal frequency (#99969)
Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com>
2025-02-03 14:09:36 +00:00
Sonia Aguilar
489c5006b4
Alerting: Update irm links for incident and oncall in case new irm plugin is present (#99952)
Update irm links for incident and oncall in case new irm plugin is present
2025-02-03 15:00:32 +01:00