3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Commit Graph

48347 Commits

Author SHA1 Message Date
George Robinson
0726c7c3fa
Alerting: Prevent inhibition rules in Grafana Alertmanager ()
This commit prevents saving configurations containing inhibition
rules in Grafana Alertmanager. It does not reject inhibition
rules when using external Alertmanagers, such as Mimir. This meant
the validation had to be put in the MultiOrgAlertmanager instead of
in the validation of PostableUserConfig. We can remove this when
inhibition rules are supported in Grafana Managed Alerts.
2024-02-01 14:53:15 +00:00
Oscar Kilhed
88feccf632
Dashboards: Add duration to dashboard init tracking ()
* Add duration to dashboard init

* remove optional chaning, performance should be there

* Fix tests
2024-02-01 15:52:27 +01:00
Bruno
89fb56bc11
Add secureSocksDSProxyEnabled label to grafana_datasource_request_duration_seconds ()
* Add secureSocksDSProxyEnabled label to grafana_datasource_request_duration_seconds

* rename label from secureSocksDSProxyEnabled to secure_socks_ds_proxy_enabled

* DataSourceMetricsMiddleware: add secure_socks_ds_proxy_enabled label to every metric
2024-02-01 11:42:43 -03:00
Bruno
2332bfb007
Set DatasourceName and DatasourceType in proxy.Options ()
* Set DatasourceName and DatasourceType in proxy.Options

* upgrade github.com/grafana/grafana-plugin-sdk-go to v0.206.0 and fix merge conflicts
2024-02-01 11:09:58 -03:00
Piotr Jamróz
d7ded807a2
Explore: Disable cursor sync () 2024-02-01 15:09:48 +01:00
Piotr Jamróz
572c182a81
Unify frontend monitoring ()
* Unify frontend monitoring

* Add missing mock

* Add missing mock

* Keep source:sandbox

* Create separate logger for plugins/sql package

* chore: rename "logAlertingError" to "logError"

* Use internal Faro logging for debugging instead of redundant browser logging

* Post-merge fix

* Add more docs about debug levels

* Unify logger names

* Update packages/grafana-runtime/src/utils/logging.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* Update packages/grafana-runtime/src/utils/logging.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-02-01 15:08:40 +01:00
Torkel Ödegaard
7c2622a4f1
ShareModal: Fixes url sync issue that caused issue with save drawer ()
* ShareModal: Fixes url sync issue that caused issue with save drawer

* Updated fix
2024-02-01 15:07:01 +01:00
Gilles De Mey
7f6806e220
Alerting: Refactor useExternalDataSourceAlertmanagers () 2024-02-01 14:18:43 +01:00
Gilles De Mey
eb889c41ee
Alerting: Fix support check for export with modifications () 2024-02-01 14:17:48 +01:00
Ashley Harrison
3e01ba0f57
QueryEditor: remove slateAutocomplete toggle ()
remove toggle
2024-02-01 13:03:11 +00:00
Andre Pereira
d0ecf863df
Datatrails: Metric as breadcrumb and style improvements ()
* Fixed duplicate trails entry for first time users. Show header with description for first time users

* Renamed trail to history in History component

* Use metric name in breadcrumb

* Style tweaks around search field in metric select

* Address PR comments

* prettier
2024-02-01 13:01:24 +00:00
kay delaney
874ce14f0c
Scenes/PanelEditor: Add support for overrides tab and searching () 2024-02-01 12:48:07 +00:00
Ivana Huckova
9de5e9754c
Loki: Add to .eslintrc list to restrict imports from core ()
Loki: Add to .eslintrc list to restrict imports from core
2024-02-01 14:46:32 +02:00
Fabrizio
2d60c0123b
Chore: Improve how we install Python () 2024-02-01 13:27:29 +01:00
Ivana Huckova
fe1ed307c0
Loki: Use fixed components from @grafana/experimental 1.7.9 ()
* Loki: Use fixed components from experimental

* Update

* Remove downloads.html
2024-02-01 13:22:18 +01:00
Ivana Huckova
1671b77546
Loki: Fix processing of all lines labels in getParserAndLabelKeys ()
* Loki: Fix processing of all lines labels in getParserAndLabelKeys

* Refactor

* Update comment
2024-02-01 13:22:03 +01:00
Josh Hunt
85a745ca9d
I18n: Trigger crowdin upload () 2024-02-01 12:15:32 +00:00
Laura Benz
967a650d2d
I18n: Refactor crowdin workflow ()
* refactor: crowdin config

* feat: add GH actions

* refactor: remove old GH action

* refactor: fix formatting issue

* refactor: adjust docs

* refactor: add changes after code review

* refactor: add changes after code review

* refactor: update CODEOWNERS file
2024-02-01 11:44:18 +00:00
brendamuir
bac4c7fb32
Alerting docs: corrects save text ()
* Alerting docs: corrects save text

* updates numbering
2024-02-01 12:43:11 +01:00
Gabriel MABILLE
3df0611f81
RBAC: Fix authorize in org ()
* RBAC: Fix authorize in org

* Implement option 2

* Fix typo

* Fix alerting test

* Add test to cover the not member case
2024-02-01 12:37:01 +01:00
Joao Silva
0f1ba3a9fe
Chore: Change codeowners of annotations folder () 2024-02-01 10:59:47 +00:00
ismail simsek
536153c336
InfluxDB: Run queries in parallel behind influxdbRunQueriesInParallel feature toggle ()
* create the feature flag

* bring the concurrency in to the play

* Update feature flag

* Use concurrency number from settings

* update influxdb dependency

* use ConcurrentQueryCount from plugin-sdk-go

* use helper method for concurrent query count

* log the error

* add value guard

* add unit tests

* handle concurrency error
2024-02-01 11:58:24 +01:00
Mihai Doarna
c43a170009
SSO Auth: fix typos on field description ()
fix typos on field description
2024-02-01 11:27:39 +01:00
ismail simsek
4561863fca
Chore: Remove unused header params in prometheus request ()
Remove unused header params
2024-02-01 11:17:38 +01:00
Joey
fd54d25496
Tempo: Fix issue with button click area being too large ()
Fix issue with button click area being too large
2024-02-01 09:48:18 +00:00
Joey
1606095a5c
Tempo: Remove unused code ()
* Remove unused code

* Remove unused code from tests
2024-02-01 09:48:04 +00:00
idafurjes
1a51240dc7
Remove some folderIDs from database test ()
* Remove some folderIDs from database test

* Add folderUID to insertTestDashboardForPlugin
2024-02-01 10:13:15 +01:00
Alex Khomenko
a416bd761d
Chore: Remove Form usage from admin components ()
* Chore: Remove Form usage from AdminEditOrgPage

* Chore: Remove Form usage from UserCreatePage.tsx

* Chore: Transform LdapPage to FC

* Chore: Remove Form usage from LdapPage.tsx
2024-02-01 07:58:50 +02:00
ismail simsek
177fa1b947
InfluxDB: Fix template variable interpolation ()
* use regex as templateSrv replace format

* use regex as templateSrv replace format for raw queries

* import path fix

* don't use regex formatter

* tag value escape

* tag value escape with wrappers

* polished interpolation logic

* update unit tests

* comments and more place to update

* unit test update

* fix escaping

* handle the string and array of string type separately

* update variable type
2024-02-01 00:30:21 +01:00
ajwerner
c9bdf69a46
Stat: Fix data links that refer to fields () 2024-02-01 01:08:40 +02:00
Dai Nguyen
11997a6d35
Docs: Grafana.com skip_org_role_sync update ()
* Update Grafana.com org sync index.md

Included additional information regarding logging in with Grafana.com credentials that it will override what is defined within the Grafana instance.

* Update docs/sources/setup-grafana/configure-security/configure-authentication/grafana-com/index.md

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

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-02-01 00:03:08 +01:00
Matthew Jacobson
0ce1ccd6f9
Alerting: Fix inconsistent AM raw config when applied via sync vs API ()
AM config applied via API would use the PostableUserConfig as the AM raw
config and also the hash used to decide when the AM config has changed.
However, when applied via the periodic sync the PostableApiAlertingConfig would
be used instead.

This leads to two issues:
- Inconsistent hash comparisons when modifying the AM causing redundant applies.
- GetStatus assumed the raw config was PostableUserConfig causing the endpoint
to return correctly after a new config is applied via API and then nothing once
 the periodic sync runs.

Note: Technically, the upstream GrafanaAlertamanger GetStatus shouldn't be
returning PostableUserConfig or PostableApiAlertingConfig, but instead
GettableStatus. However, this issue required changes elsewhere and is out of
scope.
2024-01-31 21:05:30 +02:00
Ryan McKinley
e013cd427c
K8s: Add basic query service () 2024-01-31 20:36:51 +02:00
Galen Kistler
d1b938ba15
Logs: Table UI - Allow users to resize field selection section ()
* allow user resize of fields section in table ui

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-31 19:58:02 +02:00
Alex Khomenko
1749ec9d5e
Chore: Remove Form usage from SharedPreferences.tsx ()
* Chore: Remove Form usage from SharedPreferences.tsx

* Update betterer

* Update betterer
2024-01-31 19:33:17 +02:00
Ieva
c310a20966
AuthZ: add headers for IP range AC checks for cloud data sources ()
* add feature toggle

* add a middleware that appens headers for IP range AC

* sort imports

* sign IP range header and only append it if the request is going to allow listed data sources

* sign a random generated string instead of IP, also change the name of the middleware to make it more generic

* remove the DS IP range AC options from the config file; remove unwanted change

* add test

* sanitize the URLs when comparing

* cleanup and fixes

* check if X-Real-Ip is present, and set the internal request header if it is not present

* use split string function from the util package
2024-01-31 18:09:24 +01:00
Ivana Huckova
e00aba0ce5
Prometheus: Fix OperationEditor and mounting of components ()
* Prometheus: Fix OperationEditor

* Remove redundant import
2024-01-31 18:57:16 +02:00
Andrej Ocenas
cb945aa5df
NodeGraph: Use layered layout instead of force based layout () 2024-01-31 17:26:12 +01:00
Mihai Doarna
395a06ab86
Auth: fix swagger responses for the SSO settings API ()
fix swagger responses for the sso settings API
2024-01-31 18:06:22 +02:00
Laura Fernández
91b2909c39
ReturnToPrevious: add shadow to be consistent () 2024-01-31 17:04:34 +01:00
Alexander Zobnin
1bcd597bc0
Nested folders: Improve performance of shared with me dashboards listing ()
* Nested folders: Improve performance of shared with me dashboards listing

* Fix tests

* Clean up guardian
2024-01-31 16:25:11 +01:00
Alexander Zobnin
b4d363e8fe
Chore: Fix broken anonymous devices test () 2024-01-31 17:09:32 +02:00
Darren Janeczek
7319a75110
feat: datatrails: include metric prefix filter ()
* feat: datatrails: include metric prefix filter

* fix: remove current metric from related metrics list

* fix: Cascader issues

- handle empty items list when generating searchable options
- correct state management to ensure cascade shows cascade
  path of selection from search

* fix: remove custom value creation
2024-01-31 09:33:27 -05:00
Darren Janeczek
c8f47e0c54
datatrails: UI improvements ()
* fix: datatrails: limit width of metric description

* fix: datatrails: use vertical radio list for long label list

* fix: datatrails: reduce spacing between header items

* fix: datatrails: reduce gap in lower toolbar

* fix: change to use Select component for longer lists
2024-01-31 09:27:44 -05:00
renovate[bot]
a7f2249878
Update dependency react-zoom-pan-pinch to v3.4.0 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 14:25:50 +00:00
Gábor Farkas
607ec6c96a
CODEOWNERS: better root-file selection () 2024-01-31 15:02:29 +01:00
renovate[bot]
0633f5501c
Update dependency dompurify to v3 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 13:32:18 +00:00
renovate[bot]
5c258b7a4b Update dependency @grafana/scenes to v2.2.2 2024-01-31 14:49:08 +02:00
Ivana Huckova
c9bc937919
Loki: Limit running of samples based on query and time range ()
* Loki: Limit running of samples based on query and time range

* Update
2024-01-31 13:39:07 +01:00
Ivan Ortega Alba
a9f17a3f24
QueryVariable: Be able to edit the variable using scenes () 2024-01-31 13:31:08 +01:00