Commit Graph

27437 Commits

Author SHA1 Message Date
Ryan McKinley
8250b59dfe GraphNG: support fill gradient (#29765) 2020-12-16 11:17:56 -08:00
Arve Knudsen
0c8498401e Backend style guide: Add more guidelines (#29871)
* backend style guide: Add more guidelines

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Apply suggestions from code review

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-12-16 19:35:07 +01:00
Ivana Huckova
6cdf0ab5d9 Keep query keys consistent (#29855) 2020-12-16 18:24:47 +01:00
Will Browne
af47d28499 Alerting: Copy frame field labels to time series tags (#29886)
* Alerting: Copy frame field labels to time series tags

* keep comment

* add test case
2020-12-16 18:07:45 +01:00
Mario Mann
eee4f92435 Update configure-docker.md (#29883)
It's not possible to stop an image, you can only start/stop container. I know it's just a little mistake and it sounds a bit like crumb cracker but your description is not correct.
2020-12-16 11:16:34 -05:00
Vardan Torosyan
de22374751 Usage Stats: Introduce an interface for usage stats service (#29882)
Adding an interface type for usage stats service allows us to not depend on the implementation outside of the package, for example when testing we can easily mock the service
2020-12-16 16:12:02 +01:00
Ryan McKinley
56b8124afb DataFrame: add a writable flag to fields (#29869) 2020-12-16 06:59:31 -08:00
Torkel Ödegaard
1506ec7bfc InlineForms: Changes to make inline forms more flexible for query editors (#29782)
* Chore: Remove internal import for QueryEditorRow

* WIP inline forms fixes

* Added segment group component

* Added component status doc tag

* Chore: add as prop to InlineLabel to control rendered element (#29876)

* Use div for InlineLabel & fix iconbuttons positioning

Co-authored-by: Elfo404 <gio.ricci@grafana.com>
2020-12-16 15:14:19 +01:00
Vardan Torosyan
fac34f65c9 Usage Stats: Allow to add additional metrics to the stats (#29774)
The change allows to add external, additional metrics which will be reported with the rest of hardcoded metrics, allowing to add metrics without a need to change the service itself.
2020-12-16 12:44:33 +01:00
Raymond
f4fcd875c1 Fix the broken link of XORM documentation (#29865) 2020-12-16 10:39:02 +01:00
Alex Khomenko
3a27dc55eb Move colors demo under theme colors (#29873) 2020-12-16 10:51:45 +02:00
maximka
e491bdabe2 Dashboard: Increase folder name size in search dashboard (#29821)
* Increase folder name size in search dashboard

* Use new fontsize in dashboard list panel as well

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-12-16 10:17:47 +02:00
Hugo Häggmark
7c55621749 MSSQL: Config UI touches (#29834) 2020-12-16 08:01:41 +01:00
Ryan McKinley
d54e62197a QueryOptions: Open QueryEditors: run queries after changing group options #29864 2020-12-16 07:24:56 +01:00
Leon Sorokin
75761bf67b GraphNG: uPlot 1.5.2, dynamic stroke/fill, Flot-style hover points (#29866)
* upgrade uPlot 1.5.2 (dynamic stroke & fill, cursor.points API)

* flot-style hover points

* fix tests?
2020-12-16 07:22:25 +01:00
Hugo Häggmark
662eb6506b Variables: Fixes so numerical sortorder works for options with null values (#29846) 2020-12-16 06:50:54 +01:00
Ryan McKinley
6cc6a7822d GraphNG: only initialize path builders once (#29863) 2020-12-15 19:23:51 -06:00
Torkel Ödegaard
4e1cab1e69 GraphNG: Do not set fillColor from GraphNG only opacity (#29851)
* GraphNG: Do not set fillColor from GraphNG only opacity

* use color settings if they exist

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2020-12-15 21:50:40 +01:00
drew jess
f3694935ed add an example cloudwatch resource_arns() query that uses multiple tags (ref: #29499) (#29838) 2020-12-15 14:01:19 -05:00
Arve Knudsen
dd2d206d99 Backend: Remove more globals (#29644)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 19:09:04 +01:00
Diana Payton
aa8fb1ae98 MS SQL: Fix MS SQL add data source UI issues (#29832)
* Update config.html

* Update mssql.md

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-12-15 08:17:21 -08:00
Alex Khomenko
8d9b4e4ac2 Display palette and colors for dark and light themes in storybook (#29848) 2020-12-15 17:40:24 +02:00
Caetra
555d3c275d Docs: Fix broken link in logs-panel (#29833)
Fixes #29799
2020-12-15 16:19:24 +01:00
Alex Khomenko
dd1cbd21f0 Docs: Add info about typing of connected props to Redux style guide (#29842)
* Add info about typing of connected props

* Update with suggestions
2020-12-15 16:27:43 +02:00
Ivana Huckova
2a76195aed Loki: Remove unnecessary deduplication (#29421)
* Remove unnecessary deduplication

* Remove dedup test as we are not doing dedup on all logs  anymore

* Create unique ids in Loki

* Fix comment

* Fix comment

* Store prev response uids in usedUids

* Revert "Store prev response uids in usedUids"

This reverts commit 05c496e2a8.

* Add comment
2020-12-15 15:18:12 +01:00
Hugo Häggmark
dd326d296e Varibles: Fixes so clicking on Selected will not include All (#29844) 2020-12-15 15:04:34 +01:00
Ivana Huckova
356fa0dce6 Explore/Logs: Correctly display newlines in detected fields (#29541)
* Fix using of newlines in detected fields

* Wrapping depends on main selection

* Update props to be optional

* Add missing wrapLogMessage prop to test
2020-12-15 14:43:12 +01:00
Dominik Prokop
683ce69347 Link suppliers: getLinks API update (#29757)
* ContextMenuPlugin WIP

* Remove Add annotations menu item from graph context menu

* ts ifx

* WIP

* Tests updates

* ts check fix

* Fix rebase

* Use replace function in angular graph data links
2020-12-15 13:29:37 +01:00
Hugo Häggmark
5f4b528122 Select: Changes default menu placement for Select from auto to bottom (#29837)
* Select: Changes default menuPlacement from auto to bottom

* Tests: Fixes snapshot
2020-12-15 12:46:31 +01:00
Alex Khomenko
b1a57c6f77 Chore: Automatically infer types for dashgrid connected components (#29818)
* Refactor DashboardPanel

* Refactor PanelEditor

* Fix missing initializer

* Update public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>

* Simplify type

* Remove unused type

* Move prop connectors on top

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2020-12-15 13:18:40 +02:00
Ivana Huckova
dbf0470994 Chore: Remove unused Loki and Cloudwatch syntax providers (#29686)
* Remove syntax provider in Cloudwatch

* Remove syntax provider and refactor useLokiLabels
2020-12-15 12:17:29 +01:00
Ivana Huckova
854f6229f7 Pass row (#29839) 2020-12-15 12:16:52 +01:00
Dominik Prokop
69b05aae46 GraphNG: Context menu (#29745)
* Refactor Context menu and add Menu component to grafana/ui

* ContextMenuPlugin WIP

* Fix docs issues

* Remove Add annotations menu item from graph context menu

* ts ifx
2020-12-15 10:53:04 +01:00
Dominik Prokop
92527c2647 GraphNG: Enable scale distribution configuration (#29684)
* Enable scale distribution configuration

* use uPlot's rangeLog() instead of rangeNum() for log scales

* merge master

* Remove unsupported log bases

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2020-12-15 10:18:30 +01:00
Ivana Huckova
3ee2e49d9a Explore: Improve Explore performance but removing unnecessary re-renders (#29752)
* Fix Explore and Logs rerenders

* Create ReturnToDashboardButton

* Add test for new component

* Remove queryKeys change on keystroke

* Move rendering conditions to Button

* Remove redundant logic
2020-12-15 10:12:53 +01:00
Hugo Häggmark
681cefbb18 DashboardDS: Fixes display of long queries (#29808) 2020-12-15 10:08:02 +01:00
Torkel Ödegaard
b8025c7702 Sparkline: Fixes issue with sparkline that sent in custom fillColor instead of fillOpacity (#29825)
* Sparkline: Fixes issue with sparkline that sent in custom fillColor instead of fillOpacity

* Updated
2020-12-15 09:56:09 +01:00
Arve Knudsen
c2cad26ca9 Chore: Disable default golangci-lint filter (#29751)
* Disable default golangci-lint filter

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Chore: Fix linter warnings

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 09:32:06 +01:00
achatterjee-grafana
5d4910dd52 Update style guide with correct usage of MS SQL (#29829)
* Added correct usage of MS SQL

* Updated as per Diana's comment.

* Fixed wording.

* Update contribute/style-guides/documentation-style-guide.md

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-12-14 16:36:03 -05:00
Ryan McKinley
530e0f86e4 QueryEditor: do not auto refresh on every update (#29762) 2020-12-14 12:22:21 -08:00
Ryan McKinley
d1a20f62f5 Chore: remove unused datasource status enum (#29827) 2020-12-14 11:28:31 -08:00
Kyle Brandt
c6b11a8f90 Expressions: support ${my var} syntax (#29819) 2020-12-14 14:21:16 -05:00
Diana Payton
e7447c5067 Docs: Update types-options.md (#29777) 2020-12-14 09:30:17 -08:00
Arve Knudsen
3fdf4be529 Chore: Enable more go-ruleguard rules (#29781)
* Chore: Enable more go-ruleguard rules

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-14 15:51:59 +01:00
Dominik Prokop
e33c7cfbd2 GraphNG: Load uPlot path builders lazily (#29813) 2020-12-14 15:45:03 +01:00
Giordano Ricci
93649e1fb5 Elasticsearch: ensure query model has timeField configured in datasource settings (#29807) 2020-12-14 14:36:07 +00:00
Arve Knudsen
ac09baae7d Chore: Use Header.Set method instead of Header.Add (#29804)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-14 15:13:01 +01:00
John Losito
ebb8b4286b Allow dependabot to check actions (#28159) 2020-12-14 14:16:45 +01:00
Alex Khomenko
8587e9fe6c Grafana-UI: Support optgroup for MultiSelect (#29805)
* Grafana-UI: Support optgroup for MultiSelect

* Update packages/grafana-ui/src/components/Select/Select.story.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-12-14 15:11:25 +02:00
Torkel Ödegaard
98c0b09564 Sliders: Update behavior and style tweak (#29795)
* Sliders: Update behavior and style tweak

* More style tweaks, and changed new graph opacity option from 0 - 1 to 1 to 100

* Updated point size max

* Fixed hooks useCallback dependency issue

* Update test
2020-12-14 11:34:12 +01:00