Commit Graph

20676 Commits

Author SHA1 Message Date
Fabrizio
05fb9b5ecb
Parca: Decouple frontend (#79876) 2023-12-28 17:48:59 +01:00
Todd Treece
e28bbd50d8
PanelQueryRunner: Skip shallow diff when streaming (#79860) 2023-12-26 16:23:41 -05:00
Brendan O'Handley
a9f4ffab5d
Prometheus: Migrate from aria-label to data-testid for selectors (#78554)
* migrate from aria-label to data-testid for selectors

* fix e2e tests with shared components

* fix e2e tests with more shared components

* pass data-testid to SelectBase component

* pass data-testid to value container and traverse the dom to access the input in e2e
2023-12-26 13:43:06 -06:00
Jamin
f41a0559fa
Frontend: Migrate NewsContainer.tsx from aria-label e2e selectors to data-testid (#79666) 2023-12-26 15:06:33 +00:00
Leon Sorokin
36a3508a0f
BarChart: Show "No data" message for zero-length frames (#79844) 2023-12-22 22:04:50 -06:00
ismail simsek
094cfdd8dd
Chore: Start language provider only once in prometheus variable editor (#79763)
Start language provider only once
2023-12-21 22:46:16 +01:00
Sven Grossmann
99a821e665
Log Context: Add cacheFilters property (#79784)
* add `forceApplyFilters` property

* PR review

* fix tests

* remove import

* comment flaky test

* add context tab documentation

* review

* doc
2023-12-21 17:02:29 +01:00
Santiago
a77ba40ed4
Alerting: Use the forked Alertmanager for remote secondary mode (#79646)
* (WIP) Alerting: Use the forked Alertmanager for remote secondary mode

* fall back to using internal AM in case of error

* remove TODOs, clean up .ini file, add orgId as part of remote AM config struct

* log warnings and errors, fall back to remoteSecondary, fall back to internal AM only

* extract logic to decide remote Alertmanager mode to a separate function, switch on mode

* tests

* make linter happy

* remove func to decide remote Alertmanager mode

* refactor factory function and options

* add default case to switch statement

* remove ineffectual assignment
2023-12-21 15:26:31 +01:00
Alex Khomenko
fde8a00721
SSO: Add GitHub auth configuration page (#78933)
* Setup route

* Set up the page

* Add orgs

* Load settings

* Make API call

* Remove log

* Add FormPrompt

* Update types

* Add tests

* Fix tests

* Cleanup

* Load settings

* Fix naming

* Switch to PUT endpoint

* Switch to CSS object

* Setup fields

* Render fields

* Extend types

* Dynamic provider page

* Rename page

* Filter out non-implemented providers

* Fix types

* Add teamIDs validation

* Update tests

* Fix URL

* Update name

* Send full data

* Add password input

* Update test

* Expand default values

* Fix test

* Use SecretInput

* Remove dev mode for the feature toggle

* Convert fields

* Remove fieldFormat utils

* Update fields logic

* Update tests

* Update betterer

* SSO: Make client secret not required

* Update field name

* Revert feature toggle to dev mode

* Use provider endpoint

* Fix form state check

* Update tests

* Fix URL redirect after form submit

* Mock locationService

* Separate Form component

* Fix trailing slash
2023-12-21 15:26:42 +02:00
Sven Grossmann
f05cbe589a
Loki: Open log context in new tab (#79723)
* pass `getLogRowContextQuery` to component

* reset `appliedContextFilters` in `getLogRowContextQuery`

* open show context in new tab

* open window before crafting url

* only open in new tab if getRowContextQuery is set

* only open `about:blank`

* change conditional
2023-12-20 22:10:29 +01:00
linoman
824e0f9ce8
Plugins: Display plugin permissions required (#78355)
* Add definition of external service registration

* Add style and tables for permissions needed

* Add external service registration to local without counterpart

* Add feature toggle check

* Add feature flag check in the backend as well

* Add the disclaimer for permissions

---------

Co-authored-by: Gabriel MABILLE <gabriel.mabille@grafana.com>
2023-12-20 16:29:13 +01:00
Alyssa Bull
e27e2f66ba
Cloud Monitoring: Remove dependencies (#79282) 2023-12-20 08:26:39 -07:00
Andrew Hackmann
8ff0cfddf4
Azure Monitor: Fix multi-resource bug "Missing required region params, requested QueryParams: api-version:2017-12-01-preview..." (#79669)
* actually fix the bug

* prettier
2023-12-20 09:24:44 -06:00
ismail simsek
516d7a74f2
Prometheus: Fix sending time parameter for query result template variable request (#79754)
* Send time parameter for query result template variable request

* fix tests
2023-12-20 16:08:54 +01:00
Hugo Kiyodi Oshiro
edddbe1f53
Plugins: Add uninstall requested message for cloud plugins (#79748) 2023-12-20 14:47:11 +01:00
Galen Kistler
0db19a7924
Loki: strip out backticks in query editor line filter (#79340)
* pull in @svennergr's solution to switch delimiter on existence of backtick

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-12-20 15:33:58 +02:00
Andre Pereira
16dffaf501
Data trails: Sort related metrics and hide empty panels (#79397)
* Use levenshtein method to sort metric names

* Optionally hide empty panels in MetricSelectScene

* Transform ignore leven

* Refactor code to use $behaviours. Move preview cache to class variable instead of state

* Use lazy loading for metric scene

* Update scenes lib

* simplify behavior

* Remove hide empty toggle

* Bump scenes

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-12-20 13:14:57 +00:00
Eric Leijonmarck
ae3cb8231b
Anonymous: Fix anonymous access needs anonymousEnabled in config to show in UI (#79738)
* fix: anonymous access needs anonymousEnabled in config to show

* add enabled to tests
2023-12-20 10:59:29 +01:00
Gabriel MABILLE
e7bc913dfd
ServiceAccounts: Lock role picker for external service accounts (#79727) 2023-12-20 10:16:33 +01:00
Domas
b312f48c10
Loki: Replace pre-calculated $__interval values for backend interpolation (#79697)
Loki datasource: pass through interval variables
2023-12-20 10:24:06 +02:00
Adela Almasan
209619c8c1
Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
Gilles De Mey
324f7d7534
Alerting: Allow linking to library panels (#79693) 2023-12-19 18:41:49 +02:00
Gilles De Mey
52dc425458
Test: Prevent jest from failing on accessing variable before declaration (#79705) 2023-12-19 18:30:06 +02:00
Torkel Ödegaard
82af0d6230
PanelQueryRunner: Fix loading state (#79690) 2023-12-19 15:13:11 +01:00
Jára Benc
315dd75767
Dashboards: Skip inherited object variable names (#79567) 2023-12-19 15:08:28 +01:00
Hugo Kiyodi Oshiro
ecfc8048e1
Plugins: Disable add new data source for incomplete install (#79658) 2023-12-19 14:53:31 +01:00
Dominik Prokop
73eab8fcd6
DashboardScene: Data source and query options edit for a panel (#79267)
* Scenes bump

* Refactor query group components so that they are reusable

* Basic queries rendering and datasource change

* Store last used ds in local storage

* maxDataPoints and minInterval queries options

* Progress on query options

* Query options tests

* Allow panel inspection / queries inspection from panel edit

* Add counters to data pane tabs

* Betterer update

* Handle data source changes

* Minor fixes

* Data source change tests

* Handle scenario of data source change when transformations are in place

* Review comment

* Fix test
2023-12-19 05:51:19 -08:00
Sven Grossmann
96b5b10e20
Loki: Fix language provider's start method won't fetch labels with changed timerange (#79631)
Loki: Fix issue with timeranges in language provider
2023-12-19 14:45:33 +01:00
Torkel Ödegaard
f7429b79ba
Variables: Interpolate variables used in custom variable definition (#78800)
* Variables: Interpolate variables used in custom variable definition

* Update

* Fixing tests
2023-12-19 14:23:57 +01:00
Sven Grossmann
a15681c93c
Loki: Drop all errors in volume requests (#79686) 2023-12-19 14:21:08 +01:00
ismail simsek
ea079ebf0c
InfluxDB: Enable SQL support by default (#79474)
* remove alpha notification

* enable the feature toggle by default

* fix
2023-12-19 14:12:36 +01:00
Galen Kistler
598a2a6fa9
Logs Panel: Table UI - Explore default state (#79653)
* save explore visualisation type in local storage
2023-12-19 07:10:27 -06:00
Gilles De Mey
d0714a5303
Alerting: Small cleanup to remove mute timing as inheritable property (#79680) 2023-12-19 14:39:31 +02:00
Matias Chomicki
c58ed41d50
Loki Logs volume: Added a query splitting loading indicator to the Logs Volume graph (#79681)
* Logs volume: distinguish annotations from time series frames

* Update unit tests

* Update unit tests

* Formatting
2023-12-19 14:33:18 +02:00
Agnès Toulet
fdaf6e3f2e
PublicDashboards: Add setting to disable the feature (#78894)
* Replace feature toggle with configuration setting

* Fix permission alert

* Update documentation

* Add back feature toggle

* revert unwanted commited changes

* fix tests

* run prettier

* Update SharePublicDashboard.test.tsx

* fix linter and frontend tests

* Update api.go

* Apply docs edit from code review

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

* Update index.md

* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* add isPublicDashboardsEnabled + test

* fix test

* update ff description in registry

* move isPublicDashboardsEnabled

* revert getConfig() update

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-12-19 11:43:54 +01:00
Aaron Godin
eb490193b9
[IAM] - Add swagger docs for resource permissions API (#79525)
* IAM: Apply swagger-go comments for generating docs on resource permissions endpoints

* Update pkg/services/accesscontrol/resourcepermissions/api.go

Clarifies swagger note on assigning to service accounts

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-12-18 16:47:17 -06:00
Nathan Marrs
3fc7aa97d6
Dashboard: Track every panel type usage (count) (#79421) 2023-12-18 23:49:13 +02:00
Sven Grossmann
2165c9b3f0
Loki: Add lokiQueryHints feature flag (#78953)
* add `lokiQueryHints` feature flag

* language provider tests

* fix unwrap tests

* add feature toggle
2023-12-18 22:43:16 +02:00
Dominik Prokop
ecb5d94b2d
Prometheus: Replace pre-calculated $__interval values for backend interpolation (#79645) 2023-12-18 07:52:33 -08:00
Oscar Kilhed
110a41b3db
Transformations: Move moving average and cumulative sum to private preview (#79495)
* Move moving average and cumulative sum to private preview

* update docs

* rebuild docs

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

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2023-12-18 16:46:03 +01:00
Marco Schaefer
1260451af3
Faro: Upgrade to v1.3.5 (#79559) 2023-12-18 16:20:21 +01:00
Sven Grossmann
68189cdaeb
Logs: Hide filters for derived fields in table viz (#78955)
Logs: Hide filters from derived fields
2023-12-18 16:07:46 +01:00
Karl Persson
0437a74956
RBAC: Render team, service account and user list when a user can see entities but not roles attached to them (#79642)
* Render list even when user cannot list roles assigned for entities
2023-12-18 15:55:02 +01:00
Eric Leijonmarck
03f39f2167
Rolepicker: Fix remove query parameter not being used (#79629)
fix: query parameter not being used
2023-12-18 12:10:26 +01:00
Mihai Doarna
9648a06dde
Auth: Add swagger metadata for the update SSO Settings endpoint (#79580)
* add swagger doc for sso settings update endpoint

* add generated api specs
2023-12-18 11:18:19 +02:00
Eric Leijonmarck
57ca8fa368
Anonymous: Add device limits to stats (#79494)
* add device limits

* feat: tabs the anon and session stats w. highlight
2023-12-18 09:32:57 +01:00
Khushi Jain
54dc5846c2
Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-17 02:10:04 +02:00
Khushi Jain
dba690d653
Chore: Removes gf-form from profile/user (#79552)
* Chore: Removes gf-form from profile/user

* message

* better
2023-12-16 09:46:54 +02:00
Adela Almasan
4dc4c285f1
Heatmap: Update tooltip UX (#79429) 2023-12-15 19:17:49 -06:00
Drew Slobodnjak
b166bdc3fc
Stat: Add Percent Change Option (#78250)
* Stat: Add Percent Change Option

* Ensure div style only applied for percent change

* Add metrics section to gdev

* Apply new style and fix nan truthy

* Handle no text case properly

* Only display percent change with value

* Improve styling

* Remove VizOrientation dep and improve styling

* Display percent change for text mode name

* Add check for undefined percentChange

* Don't show percent change option for all values

* Make metric alignment more robust

* Make percent change column case tighter

Check undefined directly to avoid truthy issues

* Simplify percentChange calculation

* Add documentation for show percent change

* Add tests for percent change

* Refactor big value and pull out percent change

* minor changes

* initial approach at addressing setting % change colors to be conventional (not super happy with handling of contrast)

* Clean up initial color change approach (no need to handle 0 case as is handled as NaN currently

* Update shadow styling and include icon

* Update docs/sources/panels-visualizations/visualizations/stat/index.md

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

* Stat: Add Percent Change Option (refactor and color exploration)  (#79504)

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>

* some missed cleanup :D

* update percent change to show to not be tied to text value; update docs accordingly

* initial start for fixing scaling of % change for no text mode

* Fix styling for case where textmode is none

* Tweak styling a bit for icon and minimum padding

* Apply flex wrap to container styles

* Update gdev for stat panel tests

* attempt at fixing horizontal percent change styling / placement

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-12-15 16:15:31 -08:00