Commit Graph

58087 Commits

Author SHA1 Message Date
ismail simsek bf456179e7
Prometheus: Use timeRange parameter in each language provider method (#101889)
* remove range from class

* remove range from language provider

* use range parameters in MetricsLabelsSection

* use range parameters in metric_find_query

* pass range parameter in monaco-query-field

* typo

* use range in prometheus metrics browser languageProvider calls

* fix unit tests

* fix unit tests

* update unit tests

* lint
2025-03-21 10:08:23 +01:00
Jo d7fe097630
Docs: Add documentation on the cloud access policy permissions (#102550)
* add admonition

* add to menu

* add missing entry

* make it prettier

* fix ref
2025-03-21 10:07:52 +01:00
Ryan McKinley 2e2b5942c8
K8s/Unified: Consolidate generation logic in apistore client (#102260) 2025-03-21 10:45:25 +02:00
Stephanie Hingtgen 996ff7d65e
K8s: Fix dashboard history list timestamps (#102580) 2025-03-21 09:19:33 +02:00
Stephanie Hingtgen da95ee22cc
K8s: Fix dashboard creation timestamp (#102578) 2025-03-21 07:47:09 +02:00
grafana-pr-automation[bot] 08335a0068
I18n: Download translations from Crowdin (#102576)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-21 02:32:21 +02:00
Alex Bikfalvi a5665c06cf
docs: Span details includes events and links (#102520)
* docs: Span details includes events and links

Adds to the explore trace integration information about trace span
events and links, which are also available in the trace view.

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>

* Update trace-integration.md

* Apply suggestions from code review

* Fix prettier issues

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>

---------

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2025-03-20 19:14:57 -04:00
owensmallwood 4e27ee2ff6
Unified Storage: Add index on dashboard_tag table for dashboard_uid column (#102551)
add index on dashboard_tag table for dashboard_uid column
2025-03-20 16:51:37 -06:00
Stephanie Hingtgen 1483dee75c
Unistore: undo protobuf version change (#102572) 2025-03-21 00:51:03 +02:00
Jev Forsberg ac90e314a6
Chore: Add pushes to `main` in the `backend-unit-test` workflow (#102570)
* baldm0mma/ update backend unit tests to run on push to `main`

* baldm0mma/ update naming
2025-03-20 16:24:36 -06:00
Sven Grossmann 1067bf9025
Loki: Remove range options from query builder (#102566)
* Loki: Remove range options from query builder

* Loki: Improve description

* Loki: Fix test

* Loki: Add default `$__auto`

* Loki: Fix test
2025-03-20 23:50:18 +02:00
Stephanie Hingtgen c33a53a47a
K8s: Remove restore functionality; can be done with list (#102560) 2025-03-20 16:38:32 -05:00
Matias Chomicki 92cc10f983
Logs: Prevent automatic scrolling on refresh after changing scroll position (#102463) 2025-03-20 21:14:02 +00:00
Ryan McKinley b3a529de48
K8s/Dashboard: Use upsert to create or update dashboards (#102536) 2025-03-20 22:50:04 +03:00
Haris Rozajac 26acc66ea3
Dashboard - Schema V2 Stateless (ds ref independent) queries (#101661)
- Rename `initializeMapping` into `initializeElementMapping`
- Create new  `initializeDSReferencesMapping` to track queries without explicit datasources
- Fix panel datasource detection to use default datasource when none is specified
- Improve datasource resolution by searching for best match by query kind
- Add unit test

---------

Co-authored-by: alexandra vargas <alexa1866@gmail.com>
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2025-03-20 12:45:25 -06:00
Ivana Huckova 307974f20d
Data sources: Improve error messages for grpc errors (#102372)
* Data sources: Improve error messages for grpc errors

* Improve code comments

* Fix lint

* Update connection issue message

* Update name

* Update comment

* Update, rename and add test

* Update, remove POC change

* Fix lint
2025-03-20 18:44:47 +01:00
Alexander Akhmetov 3ef583aa05
Alerting: Set MissingSeriesEvalsToResolve to 1 for Prometheus-imported rules (#101973) 2025-03-20 18:44:27 +01:00
Ieva 163546d40f
RBAC: Remove dashboard guardians pt 1 (#102314)
* replace the usage of dashboard guardians with calling AC evaluators or checking access in middleware

* linting fixes

* fix test

* more test fixes

* remove a todo comment
2025-03-20 17:38:09 +00:00
Alexander Akhmetov ad71270ee0
Alerting: Support query_offset in the Prometheus conversion (#102499)
Adds support for rule group-level query_offset in Prometheus to Grafana rule conversion. It allows specifying a time offset for rule evaluation, which gets applied and saved during the conversion.
2025-03-20 18:05:55 +01:00
Ryan McKinley 0845c781ae
K8s/Storage: Refactor Upsert (create from update) (#102528) 2025-03-20 19:57:05 +03:00
Ben Sully 9fce4311e9
Live: allow publishing over Centrifuge subscription (#102325)
* Live: allow publishing over Centrifuge subscription

Currently when publishing over a Grafana Live channel,
the data is sent over the HTTP API. This works fine when
there is only a single Grafana instance running, but
when there are multiple instances, the data will only hit
one instance, which is often not desired: sometimes you need
to guarantee that the data appears on the same instance that
the frontend is connected to.

An example of this is in the Grafana LLM app when running the
MCP server. The MCP protocol is stateful; users subscribe to
a channel to get a long-lived stream of server-sent events,
then send subsequent requests to the server to get further
results. If there are multiple Grafana instances running then
the requests are likely to land on an instance other than the
one that the user is connected to.

This commit adds a new option to the `GrafanaLiveSrv` interface
that allows the user to publish data over the Centrifuge
subscription instead of the HTTP API. This is not the default and
should rarely be used, but is required to fulfil certain use cases.

* Address nits from code review

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

---------

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2025-03-20 16:50:52 +00:00
Yuri Tseretyan 24ebacb10b
Alerting: Add migration to clean up rule versions table (#102484)
* add migration to clean up rule versions
* drop index right before creating a new one.
* fetch only rules which version greater than toKeep
2025-03-20 12:34:36 -04:00
Ben Sully 8cdbc51b04
feat: expose Live message size limit to frontend (#100169)
Developers using Grafana Live need to know whether a message is too
big to be sent over the Grafana Live websocket. Since this limit
is configurable, it is useful to expose it to the frontend.

This commit adds a new field to the frontend settings,
`liveMessageSizeLimit`, which the frontend can use to access the
limit configured in the backend.

Relates to #99770.
2025-03-20 18:26:09 +02:00
Peter Štibraný 8db050af6b
Use in-memory sequence number generator when running integration tests against Spanner emulator. (#102522) 2025-03-20 16:50:50 +01:00
Gilles De Mey 9ad7fef4f4
Alerting: Simplified alert rule toggle bug fixes (#102119) 2025-03-20 17:46:13 +02:00
Jo 7970f0c79f
Docs: Fix broken dependency documentation (#101631) 2025-03-20 16:31:29 +01:00
Jo 7411472f52
Docs: Make role definitions more precise (#102391)
* fix missing clarification

* remove OnCall admonitions
2025-03-20 16:12:29 +01:00
Jean-Philippe Quéméner 58eabf8ad6
fix(unified-storage): inherit parent context with auth for background ops (#102537) 2025-03-20 15:32:52 +01:00
Alexander Akhmetov 756b45402c
Alerting: Add rule_query_offset setting for Prometheus rule conversion (#102500)
Adds a new configuration option to specify a time offset for rule evaluation, which gets applied and saved during the Prometheus -> Grafana conversion. For example:

[unified_alerting.prometheus_conversion]
rule_query_offset = 1m

Changing this option affects only the rules imported after the change. If query_offset is set at the group level, it takes precedence over this setting.

Default is set to 1m.
2025-03-20 15:31:21 +01:00
Konrad Lalik 41a2aa41f8
Alerting: Remove rule type switch for modified export mode (#102287) 2025-03-20 15:19:52 +01:00
Bogdan Matei d3832c7f8b
Dynamic Dashboards: Implement new toolbar (#102195) 2025-03-20 15:45:20 +02:00
Alexa V 47b94cf17b
Dashboard: Fix Core Panel Migrations - table panel (#102146)
*add the automigrate logic to the dashboard migrator
* Add unit tests to the dashboard migrator version 24
2025-03-20 07:43:31 -06:00
Felix Dreissig 1e0d7102cc
Docs: Add auth for metrics to hardening page (#102475) 2025-03-20 14:22:54 +01:00
Mustafa Sencer Özcan 8bea901306
Revert "test(unified-storage): Create initial e2e test scenario for unified storage" (#102514) 2025-03-20 13:43:05 +01:00
Juan Cabanas 7b94308c3e
CollapsableSection: Change css properties (#101630) 2025-03-20 09:17:11 -03:00
Oscar Kilhed 0f14bccc68
Dynamic dashboards: Duplicate tabs and rows (#102370)
Duplicate tabs and rows
2025-03-20 12:39:48 +01:00
renovate[bot] bc0c650cf4
Update scenes to v6.5.2 (#102525)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 13:22:01 +02:00
Sven Grossmann 5fc6d253f8
Logs: Always keep displayed fields with changed queries (#102493)
* Logs: Always keep displayed fields with changed queries

* Remove unused var
2025-03-20 11:58:00 +01:00
Beverly Buchanan d9ca794b30
Docs: Update service account doc (#102498)
added content from support ticket
2025-03-20 11:37:45 +01:00
Mihai Doarna bf53d278b7
Revert "Team: Include user UID in GetTeamMembers() output" (#102519)
Revert "Team: Include user UID in GetTeamMembers() output (#102373)"

This reverts commit e5b6b7b370.
2025-03-20 12:24:41 +02:00
Mariell Hoversholm 07bfa602f2
App Platform: Pin bleve to fix CVE-2022-31022 (#102513)
This pins Bleve to a soon-to-be v2.5.0 commit.

Fixes CVE-2022-31022. We can unpin when v2.5.0 releases (likely March 25th).
We do not need any new features or similar, though there are some fixes that are nice to receive.

We will **not** backport this fix as we aren't actually vulnerable to anything via CVE-2022-31022; we never use its code, nor does Bleve. The reason we are fixing this is to get Trivy to stop complaining.

Fixes: #97439
2025-03-20 11:19:57 +01:00
Jean-Philippe Quéméner 72c9d0dd28
fix(unified-storage): use new context for background operations (#102518) 2025-03-20 11:15:13 +01:00
Gábor Farkas 30f5445bcd
datasources: querier: single-tenant: explicit permission-check (#102189) 2025-03-20 11:14:53 +01:00
Will Browne 5b67ae1876
Plugins: Remove support for secrets manager plugins (#101467)
* remove secrets manager code

* remove unused struct

* add test toggles back

* rollback golden file changes

* add missing TestMain

* update betterer
2025-03-20 10:00:59 +00:00
Timur Olzhabayev a1a3aa0665
Feat: Make expressions work with plugins that set `alerting:false` but `backend:true` in their `plugin.json` files (#102232)
* Making expressions depend on backend parameter instead of alerting

* Fallback to old behavior just in case we have weird edge cases

* adding render test for the button

* prettier fixes
2025-03-20 10:49:10 +01:00
Bogdan Matei 3ddfa3229a
Dynamic Dashboards: Add repeat responsive items (#102440) 2025-03-20 11:37:27 +02:00
Denis Vodopianov 06545aa770
Chore: Migrate bwplotka/bingo-managed go-swagger with go tools directive (#102434)
* Preparation to migrate go-swagger to go tool

* Replace bingo managed go-swagger with go tool

* rollback bingo managed go-swagger to golang 1.18

* add swagger to the Dockerfile

* update go-swagger version

* Revert "update go-swagger version"

This reverts commit c06008f386.

* update golang.go/x/crypto to v0.31.0

* update workspace
2025-03-20 10:09:00 +01:00
Matthew Jacobson 371ea5cda7
Alerting: Fix loss of TimeInterval location on remote AM apply (#102510)
* Alerting: Fix loss of TimeInterval location on remote AM apply

deepcopy.Copy does not correctly copy PostableUserConfig because it ignores
unexported fields. As a result, TimeInterval locations default to UTC instead
of retaining their original values.

* make update-workspace
2025-03-20 09:54:33 +01:00
a3exodus 7b8e5467bb
Docs: Fix Incorrect LBAC Data Source Reference (#102509) 2025-03-20 08:51:56 +00:00
Yulia Shanyrova cbdf2eecab
Plugins: Update some links in plugin jsons due of mistakes in previous PR (#102214)
* update some links in plugin jsons update backend tests

* fix the test

* fix the test

* Update public/app/plugins/datasource/azuremonitor/plugin.json

Co-authored-by: David Harris <david.harris@grafana.com>

* more docs links added, fix tests

---------

Co-authored-by: David Harris <david.harris@grafana.com>
2025-03-20 09:25:04 +01:00