Commit Graph

27100 Commits

Author SHA1 Message Date
Karl Atkinson
65ed8a76a6
CloudWatch: added HTTP API Gateway specific metrics and dimensions (#28780) 2020-11-17 19:27:20 +01:00
Torkel Ödegaard
0ab593b58f
Release: Adding release notes for 7.3.3 (#29168)
* Release: Adding release notes for 7.3.3

* Updates
2020-11-17 18:52:48 +01:00
Alexey Zhiltsov
2212c6dbbb
SQL: Define primary key for tables without it (#22255)
The annotation_tag and alert_rule_tag tables did not have
PRIMARY KEY defined what cause problems with migration to
MariaDB with Galera setup with
 innodb_force_primary_key=1
Or MySQL > 8.0.13 with
 sql_require_primary_key=ON

Which can manifest as follows:

MariaDB
Error 1173: This table type requires a primary key

MySQL
ERROR 3750 (HY000): Unable to create or change a table
without a primary key, when the system variable 'sql_require_primary_key' is set.

Extra reading for curious:
https://jfg-mysql.blogspot.com/2017/08/danger-no-pk-with-RBR-and-mariadb-protection.html

Fixes #12971

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-11-17 17:58:56 +01:00
Matthew Helmke
f70fa2ceb5
changed link format from MD to HTML (#29163) 2020-11-17 10:19:16 -06:00
Arve Knudsen
52c154a221
Backend: Rename variables for style conformance (#29097)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 17:09:14 +01:00
Torkel Ödegaard
94840b3a58
Docs: Fixes what'new menu and creates index page, adds first draft of release notes to docs (#29158)
* Docs: Fixes what'new menu and creates index page, adds first draft of release notes to docs

* Minor tweaks

* Fixed missing letter

* Updates

* Updated

Co-authored-by: Drone <drone@grafana.com>
2020-11-17 16:16:49 +01:00
Arve Knudsen
a6e72d5b61
Drone: Upgrade build pipeline tool and build image (#29161)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 15:58:58 +01:00
Grot (@grafanabot)
64ff84c4aa
ReleaseNotes: Updated changelog and release notes for 7.4.0 (#29160) 2020-11-17 14:26:09 +01:00
Grot (@grafanabot)
87023fc444
ReleaseNotes: Updated changelog and release notes for 7.3.3 (#29159) 2020-11-17 13:29:50 +01:00
Arve Knudsen
4485f4d878
Chore: Upgrade Go etc in build images (#29157)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 13:11:43 +01:00
Arve Knudsen
4dd7b7a82d
Chore: Remove unused Go code (#28852)
* Chore: Remove more unused Go code

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 11:51:31 +01:00
Arve Knudsen
8c765e8068
API: Rewrite tests from goconvey (#29091)
* API: Rewrite tests from goconvey

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

* Fix test

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

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 11:31:35 +01:00
Arve Knudsen
2bf964c61e
Chore: Fix linting issues caught by ruleguard (#28799)
* Chore: Fix linting issues caught by ruleguard

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

* Improve error check

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 11:27:45 +01:00
Victor Cinaglia
967e9b39e8
Fix panic when using complex dynamic URLs in app plugin routes (#27977)
* remove unused function to interpolate URLs

* share function to add headers between ds/plugin proxies

* stop performing unnecessary plugin setting lookup

* fix bug causing runtime errors when using complex templated URLs

* lower case util functions not used outside of pluginproxy package

* change test URL to a (valid) dummy URL to make intent clearer

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-17 10:56:42 +01:00
Torkel Ödegaard
0f3bebb38d
Snapshots: Fixes so that dashboard snapshots show data when using Stat, Gauge, BarGauge or Table panels (#29031) 2020-11-17 10:25:36 +01:00
Sofia Papagiannaki
9d58a4fca2
Fix authomation text: remove hyphen (#29149) 2020-11-17 10:43:30 +02:00
Domas
3423ef864c
respect fronted-logging.enabled flag (#29107) 2020-11-17 08:49:39 +01:00
Andrew Mattheisen
4430ca2317
build paths in an os independent way (#29143)
Use filepath instead of path to manipulate filename paths in a way compatible with the target operating system-defined file paths.
2020-11-17 08:03:16 +01:00
Alexander Zobnin
4f9123ebe2
Provisioning: always pin app to the sidebar when enabled (#29084) 2020-11-17 09:45:40 +03:00
Torkel Ödegaard
d6d5d8cf4a
Automation: Adds new changelog actions (#29142)
* Automation: Adds new changelog actions

* Update

* Add newline

* added link

* Another fix
2020-11-16 21:34:19 +01:00
Emil Hessman
8c7e7e6d22
Chore: Rewrite preferences test from GoConvey to stdlib and testify (#29129) 2020-11-16 12:54:12 +01:00
Arve Knudsen
115f38f5c3
Chore: Upgrade Go dev tools (#29124)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-16 07:50:39 +01:00
Torkel Ödegaard
a84fba5f9b Automation: Adding version bump action 2020-11-15 11:50:43 +01:00
Ryan McKinley
88b59ae3c7
DataFrames: add utility function to check if structure has changed (#29006)
* add common flag for knowing if the structure changes

* remove property

* fix test

* fix test

* update comment

* fix jsdoc comments
2020-11-14 18:22:42 -08:00
Arve Knudsen
01df8f177c
Drone: Fix Drone config verification for enterprise on Windows (#29118)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-14 11:44:56 +01:00
Emil Hessman
bdc6e2fe0a
Chore: Require OrgId to be specified in delete playlist command (#29117) 2020-11-14 09:49:07 +01:00
Arve Knudsen
fbf0d2c086
Plugin proxy: Handle URL parsing errors (#29093)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-13 19:38:09 +01:00
Arve Knudsen
113e288668
Drone: Verify Drone config at beginning of pipelines (#29071)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-13 19:28:46 +01:00
Torkel Ödegaard
28ce2f12ed
Legend/GraphNG: Refactoring legend types and options (#29067)
* Legend/GraphNG: Refactoring legend types and options

* Rename label

* Minor update

* Fixed legend placement crash issue

* remove unused

* Minor tweaks and fixes
2020-11-13 17:08:55 +01:00
Diana Payton
ec864f6461
Doc: Update documentation-style-guide.md (#29082)
* Update documentation-style-guide.md

* Update documentation-style-guide.md
2020-11-13 07:33:33 -08:00
Hugo Häggmark
1bdcd2f9ab
Chore: Bumps types for jest (#29098) 2020-11-13 14:48:11 +01:00
Andrej Ocenas
bbb1f72963
LogsPanel: Fix scrolling in dashboards (#28974) 2020-11-13 14:26:29 +01:00
Ivana Huckova
71df15738f
sort alphabetically unique labels, labels and parsed fields (#29030) 2020-11-13 14:17:00 +01:00
Arve Knudsen
e503188b6f
Data source proxy: Convert 401 from data source to 400 (#28962)
* Data source proxy: Convert 401 from data source to 400

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-13 13:21:43 +01:00
Timothy Palpant
fc7edab8fd
Plugins: Implement testDatasource for Jaeger (#28916)
* Implement testDatasource for Jaeger

* Unit tests

* Run prettier
2020-11-13 13:11:24 +01:00
Alex Khomenko
9e5f0a48f6
Update react-testing-library (#29061)
* Update react-testing-library

* Update package.json

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

* Update lockfile

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2020-11-13 12:55:19 +02:00
Torkel Ödegaard
dff451992d
Graph: Fixes stacking issues like floating bars when data is not aligned (#29051)
* Graph: Remove interpolation logic from graph stacking

* Improving tooltip
2020-11-13 10:32:08 +01:00
Torkel Ödegaard
01a4951da0
StatPanel: Fixes hanging issue when all values are zero (#29077)
* StatPanel: Fixes hanging issue when all values are zero

* Minor tweak
2020-11-13 10:28:03 +01:00
Will Browne
eba046d3cb
Auth: Enable more complete credential chain for SigV4 default SDK auth option (#29065)
* Force more complete credential chain for default auth option

* simplify

* allow assume role for default
2020-11-13 10:27:35 +01:00
Arve Knudsen
cb62e69997
Chore: Convert API tests to standard Go lib (#29009)
* Chore: Convert tests to standard Go lib

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

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2020-11-13 09:52:38 +01:00
Diana Payton
df8f63de7f
Update README.md (#29075) 2020-11-12 10:51:31 -08:00
Diana Payton
da24016da3
Update CODEOWNERS (#28906) 2020-11-12 09:53:44 -08:00
Sofia Papagiannaki
610fcba747
Enhance automation text for missing information (#29052)
Ask to follow the issue template
2020-11-12 19:00:54 +02:00
Torkel Ödegaard
a8c417f09d
GraphNG: Adding ticks test dashboard and improves tick spacing (#29044)
* GraphNG: Adding ticks test dashboard and improves tick spacing

* Added comments

* Trying to trigger CI

* Update
2020-11-12 17:23:05 +01:00
kay delaney
1bb61660f1
Chore: Migrate Dashboard List panel to React (#28607)
* Chore: Migrate Dashlist to React
Closes #28491
2020-11-12 16:21:09 +00:00
kay delaney
9659c98d61
Test Datasource/Bug: Fixes division by zero in csv metric values scenario (#29029)
Closes #8705
2020-11-12 16:20:08 +00:00
Arve Knudsen
8f9e5a839f
Plugins: Bring back coreplugin package (#29064)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-12 17:16:04 +01:00
Tom Daly
18f3969fdb
Add 'EventBusName' dimension to CloudWatch 'AWS/Events' namespace (#28402) 2020-11-12 16:48:35 +02:00
Marcus Efraimsson
ded4be0435
CloudWatch: Add support for AWS/ClientVPN metrics and dimensions (#29055)
Fixes #28778
2020-11-12 15:47:02 +01:00
Sofia Papagiannaki
43f580c299
AlertingNG: manage and evaluate alert definitions via the API (#28377)
* Alerting NG: prototype v2 (WIP)

* Separate eval package

* Modify eval alert definition endpoint

* Disable migration if ngalert is not enabled

* Remove premature test

* Fix lint issues

* Delete obsolete struct

* Apply suggestions from code review

* Update pkg/services/ngalert/ngalert.go

Co-authored-by: Kyle Brandt <kyle@grafana.com>

* Add API endpoint for listing alert definitions

* Introduce index for alert_definition table

* make ds object for expression to avoid panic

* wrap error

* Update pkg/services/ngalert/eval/eval.go

* Swith to backend.DataQuery

* Export TransformWrapper callback

* Fix lint issues

* Update pkg/services/ngalert/ngalert.go

Co-authored-by: Kyle Brandt <kyle@grafana.com>

* Validate alert definitions before storing them

* Introduce AlertQuery

* Add test

* Add QueryType in AlertQuery

* Accept only float64 (seconds) durations

* Apply suggestions from code review

* Get rid of bus

* Do not export symbols

* Fix failing test

* Fix failure due to service initialization order

Introduce MediumHigh service priority and assign it to backendplugin
service

* Fix test

* Apply suggestions from code review

* Fix renamed reference

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2020-11-12 15:11:30 +02:00