Commit Graph

44106 Commits

Author SHA1 Message Date
Ludovic Viaud
671cac2688
Devenv: self-instrumentation (#63730)
* Devenv: self instrumentation
2023-07-19 14:25:18 +02:00
Laura Fernández
64e7b0be3e
Grafana-ui: always apply target='_blank' and rel='noreferrer' on TextLink (#71934) 2023-07-19 14:06:21 +02:00
Andreas Christou
0ec8b99b8b
Remove code coverage (#71917)
* Remove code coverage

* Remove unneeded codeowners line
2023-07-19 15:03:41 +03:00
Dominik Prokop
11b235e348
Use latest scenes 0.22.0 (#71936) 2023-07-19 05:01:06 -07:00
Andres Martinez Gotor
5d07b1c884
Chore: Move getSearchFilterScopedVar to @grafana/data (#71839) 2023-07-19 13:56:14 +02:00
George Robinson
f1af0502db
Alerting: Add tests for matching captures (#71928)
This commit adds tests for matching captures, which we do not have
at present.
2023-07-19 12:52:26 +01:00
brendamuir
58729a331f
Docs: adds aliases to fix 404s (#71926)
* Docs: adds aliases to fix 404s

* fixes alias

* updates alias re jack
2023-07-19 13:48:31 +02:00
Gábor Farkas
709e4de7c6
logs: log-details: test for datalink without field value (#71922)
* logs: log-details: test for datalink without field value

* added more test-cases
2023-07-19 14:12:49 +03:00
George Robinson
89dcaaf049
Alerting: Sort NumberCaptureValues in EvaluationString (#71927)
This commit changes extractEvalString to sort NumberCaptureValues
in ascending order of Var before building the output string. This
means that users will see EvaluationString in a consistent order,
but also make it possible to assert its output in tests.
2023-07-19 12:09:21 +01:00
Sol
dbc0642009
Tooltip: Set tooltip of active panel to front of zIndex (with object syntax emotion CSS) (#71925) 2023-07-19 11:37:13 +01:00
Adam Yeats
ccc38e760c
Docs: Fix instructions for backend Datasource plugins (#70381)
* Change references to plugin.go -> datasource.go

* Add section on starting Grafana in development mode

* Update docs/sources/developers/plugins/create-a-grafana-plugin/develop-a-plugin/build-a-data-source-backend-plugin.md

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

* Clarify starting Grafana in dev mode

---------

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2023-07-19 12:17:28 +02:00
Gábor Farkas
eaeeb5c698
logs: improved unit tests (#71840) 2023-07-19 11:42:23 +02:00
Ieva
25c4292a5f
RBAC: search v1 permission filter part 1 - cleanup & updating tests (#71913)
* update tests and remove some AC disabled checks

* remove test for old permission filter builder
2023-07-19 10:37:27 +01:00
Sofia Papagiannaki
3a50d7ea84
Docs: Update HTTP API docs for nested folders (#67412)
* Docs: Update HTTP API docs for nested folders

* Apply suggestions from code review

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-19 12:20:21 +03:00
Frank Villaro-Dixon
3b257b151b
Units: Added support for Candela (cd) (#71696)
Field Config: Add new unit cd (Candela)
2023-07-19 10:55:28 +02:00
Sol
b1555c9595
Tooltip: Set tooltip of active panel to front of zIndex (#70747)
* Set active graph tooltip to front

* added zIndexOffset to Props

* Use className in TooltipPlugin

Co-authored-by: sjd210 <solomon.dubock@grafana.com>

* Change to UseStyles2 pattern

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
Co-authored-by: sjd210 <solomon.dubock@grafana.com>
2023-07-19 09:49:21 +01:00
Andreas Christou
116e971af3
AzureMonitor: Set timespan in Logs Portal URL link (#71841)
Set timespan in Logs Portal URL link
2023-07-19 09:15:14 +01:00
Selene
f75a3d04cf
Chore: Remove pfs.GrafanaPlugin from schemas (#71884)
Remove pfs.GrafanaPlugin from schemas
2023-07-19 03:46:13 -04:00
Piotr Jamróz
173c87beb5
DatasourcePicker: Call onChange only if data source changes (#71630)
Call onChange only when data source changes
2023-07-19 08:39:52 +02:00
Nathan Marrs
ad272b7984
Geomap: Fix field lookup to match against the entire provided gazetteer (#71805)
Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
2023-07-18 15:09:47 -07:00
Isabel
ef0de1af32
docs: add docker commands for enabling alpha layers (#71897)
added docker commands for enabling alpha layers
2023-07-18 18:08:03 -04:00
Kevin Yu
44a1f10b10
Cloudwatch Logs: Add autosuggest to logs query editor (#71800)
* Cloudwatch: Add autosuggest to logs query editor

* move getSuggestion to LogsCompletionItemProvider

* remove debug stuff

* add tests

* fix lint
2023-07-18 14:26:11 -07:00
Stephanie Hingtgen
4ece133fce
Secure socks proxy: use Grafana Plugin SDK (#71616) 2023-07-18 15:23:02 -06:00
Ibrahim
600f623610
Adminstration: Feature toggle for feature toggle admin page (#71887) 2023-07-18 16:43:32 -04:00
Guilherme Caulada
4c80bcf35f
CI: Allow RGM to create msi for multiple editions (#71883)
* Allow RGM to create msi for multiple editions

* Remove suffix from build-windows-installer step

* Invert exit code on verify_release_pipeline
2023-07-18 17:09:08 -03:00
David Harris
017ab9ddd8
docs: add flowcharting-canvas migration, update styling (#71671)
* docs: add canvas migration, update styling

* docs: make pretty

* docs: add windrose alternative

* Add H1 and description

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/developers/angular_deprecation/angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

---------

Co-authored-by: Joe Perez <joseph.perez@grafana.com>
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2023-07-18 22:56:20 +03:00
Todd Treece
d280fedb3f
Chore: Wrap provisioning in dskit service (#71598) 2023-07-18 15:37:25 -04:00
Sol
d3ab1c1c1e
Docs: Added queried table to start of Time Series section (#70594)
* Added table being queried to start of Time Series section

* Update _index.md
2023-07-18 20:37:07 +01:00
Alexander Weaver
d6db9a5b3c
Alerting: Add exported constructor for panelKey (#71872)
Exported constructor for panelKey
2023-07-18 13:37:43 -05:00
Kat Yang
36264a095f
tool: generate owners for modules in go.mod (#69583)
* test: add test for getFiles

* fix: fix getFiles test to take in a module name (not modfile name)

* move functionality unrelated to getFiles into main func

* attempt to getFiles with ParseDir, empty map returned; TODO: restore modowners_generation_script_test.go

* test

* Revert "test"

This reverts commit 2b519f3725.

* Revert "attempt to getFiles with ParseDir, empty map returned; TODO: restore modowners_generation_script_test.go"

This reverts commit eb95247487.

* attempt to getFiles with ParseDir, empty map returned; TODO: restore modowners_generation_script_test.go

* post-pairing with daniel, can access imports in a file

* clean up comments for readability

* try to return map of importName: files that import the improt

* refactor: change getFiles to accept single import name and return list of files that import it

* add log to see importPath and importName

* hasImport working

* start modowners script & add comments for hasImport

* fix modules() and uncomment main

* start script to add team names to go.mod, currently can access a map of the import and name

* 💩

* calculate root directory to point to correct go.mod

* chore: delete unnecessary files

* chore: uncomment tests

* chore: remove unnecessary comments, update documentation comments with correct cli commands

* fix: revert changes in go.mod and go.sum

* where is my dependency flag value??

* fix: owners function now can list all owners (with counts) or list a specific owner for a given dependency

* fix: change fmt.Println to logger.Println for owners func

* partial fix: modules now only prints dependencies owned by given team. -i functionality still not working properly

* fix: fix TestModules, modules

* chore: update check error message to specify user needs to assign owner to new dependency

* fix: adjust punctuation in error string

* fix: clean up comments in modowners

* chore: remove note in modowners_test
2023-07-18 13:42:09 -04:00
Ivana Huckova
72c92ca187
Logs: Fix shouldRemoveField (#71882) 2023-07-18 19:12:25 +02:00
ismail simsek
dfb94ff396
Chore: Influxdb variable type cleanup (#71874)
type cleanup
2023-07-18 18:43:30 +02:00
Charandas
614f1af190
Tempo: remove deprecated model package usage (remove replace) (#71687)
* Tempo: remove deprecated model package usage (remove replace)

* fix root test
2023-07-18 19:30:29 +03:00
Sonia Aguilar
4a59022fe8
Alerting: Update texts in alert rule form (#71831)
* Update texts in alert rule form

* Update default policy text
2023-07-18 16:58:45 +02:00
Gilles De Mey
ba470fb34d
Alerting: Fix renaming queries and rewiring expressions (#71657) 2023-07-18 16:44:36 +02:00
Kristin Laemmert
d183a241e9
chore: wrap HTTP server in a dskit module (#71601)
* chore: wrap HTTP server in a dskit module

Much of the logic from this comes from the POC branch, so:
- credit for this work goes to everyone else
- mistakes are my own
This is needed to support microservice deployment modes.
* added an arbitrarily-chosen 30second timeout
2023-07-18 10:37:53 -04:00
renovate[bot]
eff871add9
Update dependency marked to v5 (#71627)
* Update dependency marked to v5

* add marked-mangle to preserve previous behaviour

* turn off headerIds

* also need to initialise mangle here

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-18 17:30:10 +03:00
Andreas Christou
bf91fb76fa
QueryBuilder: Preserve queries when switching from Mixed (#71224)
* When switching from mixed to another datasource preserve relevant queries

- Update query refs
- Update tests

* Ensure templateVars are handled correctly

- Add test

* Comment

* Unused var

* For ds template variable only preserve if going from&to template

- Add test
2023-07-18 15:15:43 +01:00
Haris Rozajac
fd01f6cf31
Explore: Unify trace view panel (#70408)
* PanelChrome scales vertically

* Trace View with old Trace View Header works with PanelChrome

* Add top margin

* Remove console.log

* Use contain: 'strict' only when height is passed

* Clean up: use title prop in PanelChrome and everything else should be put under

* Remove test as the title will be passed to PanelChrome

* Remove unused import

* Remove titleWithLinks from PanelChrome

* Make NewTracePageHeader compatible with PanelChrome

* Fix test

* Remove margin

* Remove unused css

* Revert config changes

* Clean up: remove console log and commented out css

* Clean up unused css

* Fix tests

* Revert to a brighter color

* Show links next to duration

* Cleanup

* Remove container style and use default displayMode in PanelChrome

* Clean up

* Revert 'Give feedback' styling

* PanelChrome's width auto scales

* Fix GraphContainer's props

* TraceViewContainer doesn't need a div wrapper

* Remove loading

* Fix build issue

* FIx merge conflict

* Revert old trace page header so the header items shows correctly in dashboards

* Revert to match old trace view header

* Revert NewTracePageHeader so it can show header items in dashboards

* Revert

* Revert tests

* Make 'Give feedback' link aligned vertically

* Remove unused css

* Reduce spacing between title and container in dashboards; remove top padding for NewTracePageHeader

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-07-18 08:15:07 -06:00
Dimitris Sotirakis
5f8ace33fb
Bug: Compare semver digits for frontend packages config (#71829)
* Compare semver digits

* Fix lint
2023-07-18 17:10:40 +03:00
Jara Suárez de Puga García
679365960b
docs: Update Transform Data (#71013)
* Update Transform Data :docs:

* Apply suggestions from code review Update Transform Data

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

* Fix link

* Various suggestions

* Various suggestions

* Various suggestions

* Reset make file

* Add example for extract field

* Add example for field lookup

* Add example for histogram

* Update

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: ludovio <ludovic.viaud@gmail.com>
2023-07-18 10:07:57 -04:00
Andres Martinez Gotor
5b2721b4f1
Chore: Add linter rule to avoid imports from Grafana core in test datasource (#71779) 2023-07-18 15:57:31 +02:00
Virginia Cepeda
5faf5e48ea
Alerting: Changes to evaluation group step (#71251)
* Initial changes to evaluation group step

* Add separate buttons for folder and eval group creation

* Implement folder creation from a modal

* Reset group upon folder creation

* Implement creation of evaluation group in modal

* Changes to evaluation group edit modal

* Fix tests

* Address review comments

* Fix tests

* Refactor to avoid passing AsyncRequestState as prop

* Refactor to avoid passing AsyncRequestState as prop
2023-07-18 10:56:02 -03:00
Haris Rozajac
e586c4549b
Explore: Moved 'handles open/close splits in UI and URL' test to the spec folder (#71674)
* Move handles open/close splits in UI and URL test to the spec folder

* Remove reference to explore

* Fix what was missing

* Remove afterEach

* Use standard, non-compact format
2023-07-18 07:47:26 -06:00
Dominik Prokop
34c9faf140
PanelContext: Provide events scope identifier (#71561)
* PanelContext: Provide events scope identifier

* What a console log
2023-07-18 06:27:33 -07:00
Alexander Weaver
18b910e654
Alerting: Refactor annotation historian to isolate dashboard service dependency (#71689)
* Refactor annotation historian to isolate dashboard service dependency

* Export PanelKey

* Don't export parsePanelKey

* Remove commented out code
2023-07-18 08:18:55 -05:00
lwandz13
f7bffb4c1c
Docs: add azure auth section to prometheus data source doc (#71491)
* added initial azure auth settings section

* updated with additional azure auth info
2023-07-18 08:16:36 -05:00
Gábor Farkas
9b6c7b74c7
logs: added test for parsing a dataplane-logs-frame (#71758)
logs: added tests for parsing a dataplane-logs-frame
2023-07-18 13:33:49 +02:00
linoman
130f142c7f
Rework Okta OAuth2 (#71349)
* Rework Okta OAuth2

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-07-18 13:28:35 +02:00
Jack Baldry
37ef4e940f
Add canonical URLs to all alerting pages (#71830)
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2023-07-18 11:29:00 +01:00