Commit Graph

46893 Commits

Author SHA1 Message Date
Santiago
73776f37eb
Alerting: Send state to the remote Alertmanager (#78538)
* Alerting: Introduce a Mimir client as part of the Remote Alertmanager

Mimir client that understands the new APIs developed for mimir. Very much a WIP still.

* more wip

* appease the linter

* more linting

* add more code

* get state from kvstore, encode, send

* send state to the remote Alertmanager, extract fullstate logic into its own function

* pass kvstore to remote.NewAlertmanager()

* refactor

* add fake kvstore to tests

* tests

* use FileStore to get state

* always log 'completed state upload'

* refactor compareRemoteConfig

* base64-encode the state in the file store

* export silences and nflog filenames, refactor

* log 'completed state/config upload...' regardless of outcome

* add values to the state store in tests

* address code review comments

* log error from filestore

---------

Co-authored-by: gotjosh <josue.abreu@gmail.com>
2023-11-29 12:49:39 +01:00
Gabriel MABILLE
72d32eed27
ExtSvcAuth: Assign roles locally (#78669)
* ExtSvcAuth: Assign roles locally

* Fix test

* HandlePluginStateChanged in the OrgID

* Remove Global from command

* Use AssignmentOrgID instead of OrgID

* Remove unecessary test case
2023-11-29 12:12:30 +01:00
Joey
5a6ac44902
Tempo: Update status operators (#78730)
* Set keyword operators

* Tests for keyword, string, number option types
2023-11-29 11:07:35 +00:00
Dominic Evans
f41cf40344
Dashboard: DashboardGrid - don't animate if reduced-motion set (#75540) 2023-11-29 12:07:01 +01:00
Ieva
791881f910
RBAC: Change annotation filter to use dashboard based annotation scopes (#78635)
change annotation filter to use dash based annotation scopes
2023-11-29 05:34:44 -05:00
Brendan O'Handley
ff7dd17c56
Prometheus: Azure auth update select and input to not use legacy components (#78774)
update select and input to not use legacy components
2023-11-29 11:29:52 +01:00
Greg Tan
f53839e4fd
Dashboard: Call destroy when panel is removed (#77017) 2023-11-29 10:53:15 +01:00
Gabriel MABILLE
059ba25973
AuthN: Check API Key is not trying to access another organization (#78749)
* AuthN: Check API Key is not trying to access another organization

* Revert local change

* Add test

* Discussed with Kalle we should set r.OrgID

* Syntax sugar

* Suggestion org-mismatch
2023-11-29 10:25:46 +01:00
Neel
d177770560
TraceView: Fix cursor not matching visual guide in the timeline when resizing (#76587)
* Reset bounds on mouse leave event from trace graph

* trigger CI

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2023-11-29 09:52:49 +01:00
brendamuir
808e76ca05
Docs: adds note on gma alert limits (#78737)
* Docs: adds not on gma alert limits

* prettier
2023-11-29 08:46:38 +01:00
Gábor Farkas
033446523b
mysql/postgres: vendor in unit-test helper function (#78744) 2023-11-29 08:07:14 +01:00
Matthew Jacobson
ce90a1f2be
Alerting: Apply query optimization to eval endpoints (#78566)
* Alerting: Apply query optimization to eval endpoints

Previously, query optimization was applied to alert queries when scheduled but
not when ran through `api/v1/eval` or `/api/v1/rule/test/grafana`. This could
lead to discrepancies between preview and scheduled alert results.
2023-11-28 19:44:28 -05:00
Adela Almasan
a6c9a9db92
StatusHistory: Add tooltip multi mode (#78703) 2023-11-28 21:23:05 +00:00
Darren Janeczek
a5377f85ce
data-trails: hightlight current node and its ancestry (#78660)
* feat: data-trails: show current node and ancestry
2023-11-28 13:16:22 -05:00
Andre Pereira
01ad2918d6
Data trails: Store recent and bookmarked trails in local storage (#78508)
* WIP

* Restore trail using history and updateFromUrl()

* Limit stored recent trails to 20

* Rename and refactor

* Bookmark and store trails

* No export

* Remove unused event

* Organise

* Address feedback

* Added button to remove bookmark. Added trail to home card

* Added tests for trail store

* Update

* remove import

* Fix home not updating after removing bookmark. Remove trail for home card

* Remove button no longer absolute

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-11-28 18:00:08 +00:00
Leon Sorokin
0daf0ad4b8
FlameGraph: Optimize rendering of muted regions (#78510)
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2023-11-28 11:01:14 -06:00
Ashley Harrison
9789c0cc79
Remove type assertions in VizLegendTable (#78742)
no type assertions
2023-11-28 15:15:27 +00:00
Giordano Ricci
98da1fa0b3
Explore: Deprecate exploreId in QueryEditorProps (#78692)
* Explore: Deprecate exploreId in QueryEditorProps

* remove exploreId from cloudwatch editor
2023-11-28 14:55:20 +00:00
Ayan Bhadury
b8bfa86815
Whats'new : Added new datasource permission api changes (#78571)
* Update index.md

added datasource permission api changes that have been introduced from version 9.2

For info - https://raintank-corp.slack.com/archives/C5PG2JK8W/p1700641440476549

* Update docs/sources/upgrade-guide/upgrade-v10.2/index.md

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

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-11-28 09:35:27 -05:00
Santiago
01d274852c
Alerting: Add GetFullState method to FileStore (#78701)
* Alerting: Add GetFullState method to FileStore

* make tests compile, create stateStore in NewAlertmanager

* return errors instead of logging, accept an arbitrary number of strings

* make NewAlertmanager() accept a stateStore
2023-11-28 15:34:45 +01:00
Jack Baldry
ea54d679fd
Update in repository guidance for contributing to What's new in Grafana Cloud (#78731)
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-11-28 14:34:31 +00:00
Josh Hunt
6f658f5aae
Remove mandatory backport checks (#78678)
* Remove mandatory backport checks

* update backporting docs
2023-11-28 14:03:32 +00:00
Kristina
fc4b0faacd
Explore: Hide support button (#78710)
Only show support button if there is a dashboard
2023-11-28 07:30:58 -06:00
Joey
a49e1ded8f
Tracing: Full text search (#78628)
* Full text search

* Tests
2023-11-28 13:29:04 +00:00
Matias Chomicki
630b8a30be
Popover menu: update tracking attributes + move under Explore/logs (#78739)
* Popover menu: update event tracking attributes

* Popover menu: move under explore/loggs

* Popover menu: narrow down support to only Explore app
2023-11-28 15:21:37 +02:00
Matias Chomicki
ec7d09b8e0
Popover menu: refactor event tracking (#78733) 2023-11-28 12:44:08 +00:00
Misi
98c767abd3
Auth: Add TOML tags back to OAuthInfo (#78734)
Add TOML tags back to OAuthInfo
2023-11-28 13:18:19 +01:00
Gábor Farkas
4f899e3576
sql: removed dependency on test-db-check (#78717) 2023-11-28 12:46:01 +01:00
Dominik Prokop
6e4418ffd2
DashboardScene: Show plugin extensions in panel menu (#78702)
* DashboardScene: Show plugin extensions in panel menu

* FIx test

* Nits

* Nit

* Review nits
2023-11-28 03:26:09 -08:00
Sven Grossmann
777d119a80
Loki: Fix nil pointer in api.go (#78727) 2023-11-28 12:48:23 +02:00
Oscar Kilhed
6e0a06e52a
Transformations: Fix regression transformation adding predictions after last x point of data (#78724)
Fix regression stransformation prediction spacing
2023-11-28 11:28:26 +01:00
Josh Hunt
eea35b9eb7
Login: Improve accessibility of Login form (#78652)
* Chore: Fix a11y debt in Login form

* fix tests

* token styles

* more styles

* pa11y

* fix pa11y
2023-11-28 10:22:20 +00:00
Gilles De Mey
7dbbdc16a3
Alerting: useAbility hook for alert rules (#78231) 2023-11-28 11:48:42 +02:00
Joey
add096ac8c
Tempo: Switch to sdk logger from infra logger (#78524)
Switch to sdk logger from infra logger
2023-11-28 09:41:26 +00:00
Ieva
d201d3f7db
RBAC: correctly fetch nested folder metadata (#78655)
fix a bug with nested folder metadata
2023-11-28 09:28:47 +00:00
Todd Treece
529271d7a8
Perf: Disable core kind registry (#78568)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-11-28 09:09:54 +01:00
Leon Sorokin
b022ddeee8
VizLegend: Implement natural sort, simplify, optimize (#78570) 2023-11-27 16:39:43 -06:00
Isabel
e9573a613d
docs: update panels and visualizations TOC order (#78539)
* Changed weights of pages under panels and visualizations

* Fixed weights

* Moved calculation types under Query and transform data

* Changed weight of Troubleshoot queries

* Updated Grafana (not Cloud) links

* commit changes

* Revert change made directly to transform-data.md

* Updated Cloud links

* Added alias for calculation-types.md

* Updated calculation types links

* Rebuilt markdown file

* Reverted weight setting for troubleshoot-queries.md and updated cloud link

* Updated cloud links to point to cloud docs

* Update existing aliases

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Added docs reference shortcode to legend-mode.md

* Reverted addition of docs reference shortcode

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-11-27 15:00:57 -05:00
Sven Grossmann
a73be4b963
Loki: Cancel inflight /stats requests when new requests are issued (#78654)
* add requestId to stats requests

* add `exploreId`

* change from `exploreId` to `useId`

* change ref id

* add comment
2023-11-27 19:36:53 +01:00
Adela Almasan
4aea1107b3
Tooltip: Improved Trend tooltip (#77251)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-11-27 12:12:24 -06:00
Dominik Prokop
5015b5b2b0
DashboardScene: Add inspect submenu to panel menu (#78679)
* DashboardScene: Add inspect submenu to panel menu

* Test fix
2023-11-27 08:23:16 -08:00
Misi
7a5f76d547
Docs: Fix incorrect information in docs related to accessTokenExpirationCheck (#78604)
Fix docs
2023-11-27 16:40:50 +01:00
Khushi Jain
b7c74a1af6
Alerting: Migrate from aria-label e2e selectors to data-testid (#78437)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2023-11-27 16:24:31 +01:00
Lucy Chen
6708848056
Add tracking dashboard toolbar options v2 (#78237)
* Add share, save, add tracking

* change event name

* revert naming

* change naming of action
2023-11-27 09:53:48 -05:00
Usman Ahmad
4e40da5554
added youtube video link to the documentation (#78680)
Added Grafana Office Hours video link to this documentation which covers more explanation on using Grafana with Docker
2023-11-27 08:31:21 -06:00
ismail simsek
5eae18c166
InfluxDB SQL: Don't show dataset dropdown (#78553)
* Don't show dataset dropdown

* Default dataset is iox

* introduce sql dialect
2023-11-27 15:23:54 +01:00
William Wernert
f7bf818527
Alerting: Make alert state history Loki http client public (#78291)
* Make state history Loki client public

* Make historian metrics subsystem configurable
2023-11-27 09:20:50 -05:00
Usman Ahmad
17f3bbe4a1
Fixed broken url link for applying annotation in this doc page (#78673)
* Fixed broken url link

Fixed the incorrect link for applying annotation to the correct documentation page

* fixed the links using Shortcodes

fixed the [annotate visualizations] links using Shortcodes

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2023-11-27 15:19:51 +01:00
brendamuir
5fc68312c5
Docs: adds info on location for mute timings (#78462)
* Docs: adds info on location for mute timings

* ran prettier

* Update docs/sources/alerting/manage-notifications/mute-timings.md

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

* Update docs/sources/alerting/manage-notifications/mute-timings.md

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

* Adds note on not being able to retrieve alerting resources once deleted

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-11-27 14:30:41 +01:00
Sven Grossmann
177496a686
Loki: Filter by labels based on the type of label (structured, indexed, parsed) (#78595)
* add label addition based on labeltype

* add `logRowToDataFrame`

* change to single row dataframe

* add documentation

* add tests for `LogDetailsRow`

* add tests for datasource

* remove row

* update tests

* fix tests

* PR comments

* removed comment

* add comment

* remove params

* remove unused jsdoc

* move `getLabelTypeFromFrame` to `languageUtils`

* add tests

* remove `refId` and use `frame`

* fix tests

* Update public/app/plugins/datasource/loki/modifyQuery.ts
2023-11-27 14:29:00 +01:00