Carl Bergquist
15bff3114f
Usagestats: Add usage stats about what type of datasource is used in alerting. ( #23125 )
2020-04-02 08:45:04 +02:00
Carl Bergquist
540d1d9b4e
Support using multiple datasources for testing bulk alerting. ( #23258 )
2020-04-01 20:55:37 +02:00
Carl Bergquist
0f0481efaa
removes squadcast from docs ( #23213 )
...
removes squadcast since its not a core alert notifier. Mentioning all
services that support the Grafana webhook is not feasible for our docs
2020-03-31 09:07:07 +02:00
Carl Bergquist
3798ac903d
Upgrade golangci-lint and fixes some linting errors. ( #22909 )
...
Example: https://play.golang.org/p/cfPIPG3BwjJ
2020-03-23 13:37:53 +01:00
Carl Bergquist
579abad9cc
Plugins: Return jsondetails as an json object instead of raw json on datasource healthchecks. ( #22859 )
2020-03-18 12:08:52 +01:00
Carl Bergquist
0a094a7319
Datasource config was not mapped for datasource healthcheck ( #22848 )
...
closes #22825
2020-03-17 16:59:47 +01:00
Carl Bergquist
b0407b3578
upgrades plugin sdk to 0.30.0 ( #22846 )
...
ref grafana/grafana-plugin-sdk-go#94
ref grafana/grafana-plugin-sdk-go#70
2020-03-17 16:58:52 +01:00
Carl Bergquist
b1e112923b
aligns the severity dropdown with other fields ( #22779 )
2020-03-13 14:19:35 +01:00
Carl Bergquist
ebc9549cbc
Add support for sending health check to datasource plugins. ( #22771 )
...
closes #21519
ref grafana/grafana-plugin-sdk-go#93
2020-03-13 12:31:44 +01:00
Carl Bergquist
5f94d31da9
Send jsondata for Datasources on DatasourceConfig for backend plugins ( #22681 )
...
ref https://github.com/grafana/grafana-plugin-sdk-go/pull/84
2020-03-10 15:18:27 +01:00
Carl Bergquist
1dcfaf25fc
Adds signed in user to backend v2 plugins requests ( #22584 )
...
closes #12043
2020-03-06 14:37:36 +01:00
Carl Bergquist
0b86a371bb
remove section about alias imports ( #22585 )
...
this is not relevant anymore since we removed
all aliased imports.
2020-03-05 19:51:14 +01:00
Carl Bergquist
766d8a5888
avoid aliased import in cli ( #22566 )
2020-03-04 13:18:13 +01:00
Carl Bergquist
3fdd2648b1
Chore: Avoid aliasing importing models in api package ( #22492 )
2020-03-04 12:57:20 +01:00
Carl Bergquist
f9962eabff
chore: avoid aliasing imports in services ( #22499 )
2020-02-29 13:35:15 +01:00
Carl Bergquist
63fe7fd8c7
changelog: adds note about breaking change ( #22480 )
2020-02-28 12:51:53 +01:00
Carl Bergquist
67ec9edcc8
chore: avoid alias for models in plugins ( #22483 )
2020-02-28 12:51:21 +01:00
Carl Bergquist
f2f2722bb1
chore: avoid aliasing models in middleware ( #22484 )
2020-02-28 12:50:58 +01:00
Carl Bergquist and Marcus Efraimsson
b0b46991ec
Metrics: Add gauge for requests currently in flight ( #22168 )
...
Add gauge for requests currently in flight.
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-02-19 18:29:47 +01:00
Carl Bergquist and Marcus Efraimsson
ff9556229a
Data proxy: Log proxy errors using Grafana logger ( #22174 )
...
Now any errors logged by http.ReverseProxy are forwarded to
Grafana's logger and includes more contextual information like
level (error), user id, org id, username, proxy path, referer and
IP address.
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2020-02-18 13:26:01 +01:00
Carl Bergquist and Arve Knudsen
fe16028e02
Auth: Don't rotate auth token when requests are cancelled by client ( #22106 )
...
if the client closes the connection we should not
rotate token since the client will never receive the
new token.
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-02-17 17:31:44 +01:00
Carl Bergquist
5dbd7c9e58
Add link guide for installing new renderer ( #21702 )
2020-01-28 10:57:55 +01:00
Carl Bergquist
b98bb48d59
codestyle: styleguide and arch for grafanas backend ( #17545 )
2019-06-18 09:31:51 +02:00
Carl Bergquist
f9b691bd54
Docker: Switch base to ubuntu:latest ( #17066 )
2019-06-14 22:57:55 +02:00
Carl Bergquist
6809d2bb29
codestyle: moves cache to infra ( #17519 )
2019-06-13 10:55:38 +02:00
Carl Bergquist
912df2e284
gtime: some code style refactoring ( #17369 )
2019-06-10 07:38:31 +02:00
Carl Bergquist
1aadb4426a
metrics: expose stats about roles as metrics ( #17469 )
2019-06-06 16:39:35 +02:00
Carl Bergquist
fbf37eb402
docs: configuring custom headers in the dataproxy ( #17367 )
...
closes #17348
2019-06-03 15:22:59 +02:00
Carl Bergquist
d8736a2547
Alerting: golint fixes for alerting ( #17246 )
2019-06-03 10:25:58 +02:00
Carl Bergquist
fd741cbea4
Chore: upgrade webpack analyser ( #17340 )
...
* webpack: upgrade webpack analyser
* yarn.lock update
2019-05-29 10:27:57 +02:00
Carl Bergquist
2dc660d533
docs: remove my email from docs examples ( #17325 )
...
I dont want emails from companies who test
alert notifiers :)
2019-05-28 16:02:14 +02:00
Carl Bergquist
c87b2c9913
docs: fixes typo in provisioning docs ( #17248 )
...
closes #17196
2019-05-23 13:06:34 +02:00
Carl Bergquist
bfa7c3d963
alerting: golint fixes for alert notifiers. ( #17167 )
2019-05-20 15:23:06 +02:00
Carl Bergquist
bd5bcea5d0
alerting: fix a bunch of lint issues. ( #17128 )
2019-05-20 12:13:32 +02:00
Carl Bergquist
2904e2d9fe
Alertmanager: Replace illegal chars with underscore in label names ( #17002 )
...
closes #16624
2019-05-16 11:41:57 +02:00
Carl Bergquist
c55e6016bf
backend: replace /pkg/errors with errutil ( #17065 )
2019-05-15 12:20:17 +02:00
Carl Bergquist
aed3d0d3ad
Remotecache: Avoid race condition in Set causing error on insert. ( #17082 )
...
* remotecache: avoid race condition in set
since set called the database twice without transactions another
operation could insert a value before the first operation completed.
which would raise an error on insert since the data have been inserted
by the other request.
closes #17079
2019-05-15 11:24:04 +02:00
Carl Bergquist
3df94c6f27
serverlock: run tests async should be more linear time wise ( #17059 )
2019-05-14 15:38:18 +02:00
Carl Bergquist
13f137a17d
tech: avoid alias for importing models in alerting ( #17041 )
...
ref #14679
2019-05-14 08:15:05 +02:00
Carl Bergquist
a86b8c8a04
http: remove dualstack since its deprecated ( #16940 )
...
Deprecated: Fast Fallback is enabled by default. To
disable, set FallbackDelay to a negative value.
https://golang.org/src/net/dial.go
2019-05-08 10:37:48 +02:00
Carl Bergquist
b426ff5292
devenv: add slow reverse proxy ( #16943 )
...
this can be useful when testing timeouts etc
in the dataproxy
ref #16923
2019-05-08 10:09:48 +02:00
Carl Bergquist
f001815d9d
alerting: no notification when going from nodata -> pending ( #16905 )
...
ref #16496
2019-05-07 10:34:00 +02:00
Carl Bergquist
b8674f4ec1
rpm: start grafana after mysqld process ( #16917 )
...
closes #16850
2019-05-07 09:47:03 +02:00
Carl Bergquist
ec500ed416
devenv: add alert list panel ( #16896 )
2019-05-06 10:15:14 +02:00
Carl Bergquist
9660356638
Auth: Enable retries and transaction for some db calls for auth tokens ( #16785 )
...
the WithSession wrapper handles retries and connection
management so the caller dont have to worry about it.
2019-04-30 14:42:01 +02:00
Carl Bergquist
fef3638018
build: removes gopkg files from dev docker file ( #16817 )
2019-04-30 12:01:43 +02:00
bergquist
4beed35890
removes gopkg.lock from root folder
2019-04-30 07:52:12 +02:00
bergquist
945cbf4710
updates changelog for 6.1.6
2019-04-29 16:06:01 +02:00
bergquist
f7c8d90d1a
phantomjs: set web-security to true
2019-04-29 14:37:52 +02:00
bergquist
a8326e3e93
build: removes unused vendored files
2019-04-26 13:35:48 +02:00
Carl Bergquist
85e5835ddc
Chore: bump jQuery to 3.4.0 in grafana/ui ( #16781 )
...
CVE-2019-5428
Vulnerable versions: < 3.4.0
Patched version: 3.4.0
A prototype pollution vulnerability exists in jQuery versions < 3.4.0 that
allows an attacker to inject properties on Object.prototype.
https://nvd.nist.gov/vuln/detail/CVE-2019-5428
2019-04-26 10:29:40 +02:00
Carl Bergquist
8ca5add4ec
Build: Disables gosec until identified performance problems ( #16764 )
2019-04-25 14:49:32 +02:00
Carl Bergquist
eb8af01a8a
admin: add more stats about roles ( #16667 )
...
closes #14967
2019-04-24 13:18:16 +02:00
bergquist
b9e148f3ab
build: remove dep config files since they are not used anymore
2019-04-18 11:16:16 +02:00
Carl Bergquist
e4eb0817e4
Cloudwatch: fix for flaky tests ( #16649 )
...
The iteration order over maps is not specified and is not guaranteed
to be the same from one iteration to the next. If a map entry that
has not yet been reached is removed during iteration, the corresponding
iteration value will not be produced. If a map entry is created during
iteration, that entry may be produced during the iteration or may be skipped.
The choice may vary for each entry created and from one iteration to
the next. If the map is nil, the number of iterations is 0.
https://golang.org/ref/spec#For_range
2019-04-17 19:06:32 +02:00
Carl Bergquist
3f136e0da9
tech: replace bmizerany/assert with stretchr/testify ( #16625 )
...
bmizerany is old and unsupported. so we are replacing it
with stretchr which is an drop in replacement and something
we want to use more in Grafana.
2019-04-17 10:25:58 +02:00
Carl Bergquist
68f5ddf18c
replace dep with go modules ( #16017 )
...
- guide shamelessly stolen from prometheus/prometheus
- updates local interface of oauth exchange
- updates local impl of hclogger
- bump jaeger client version
closes #16088
2019-04-16 12:00:55 +02:00
Carl Bergquist
490515aec6
build: partially replace gometalinter with golangci-lint ( #16610 )
...
we still use gometalinter for goconst since it doesn't
report errors for duplicated in test files
2019-04-16 10:27:07 +02:00
Carl Bergquist
9134251417
build: upgrades to golang 1.12.4 ( #16545 )
...
fix govet issue in golang 1.12.4
2019-04-15 09:18:28 +02:00
Carl Bergquist
44b365028f
Build: Upgrades to go 1.12.3 ( #16491 )
...
fixes go vet issue that 1.12.3 detects
2019-04-12 09:44:02 +02:00
bergquist
98911e0708
adds backend code style guide
2019-03-15 20:19:24 +01:00
bergquist
1db7913a1c
changelog: adds note about closing #15836
2019-03-15 09:25:58 +01:00
bergquist
1ddf6dafb6
changelog: adds note about closing #6359 and #15931
2019-03-15 07:32:33 +01:00
bergquist
191a7e4b8d
changelog: adds note about closing #10816
2019-03-14 16:19:12 +01:00
bergquist
6d42d43b22
use constants for cache type
2019-03-14 15:48:20 +01:00
bergquist
5f059038c6
makes variables template prettier complient
2019-03-14 13:52:36 +01:00
bergquist
f059c25f95
white space formating
2019-03-14 10:59:13 +01:00
bergquist
7b692c1cfd
changelog: adds note about #15744
2019-03-14 10:10:58 +01:00
bergquist
0a86a1d7b6
updates old distcache names
2019-03-14 09:23:35 +01:00
bergquist
c001cfe1d9
dont allow inifinite expiration
2019-03-14 09:22:03 +01:00
bergquist
5186273731
return error if cache type is invalid
2019-03-14 08:57:38 +01:00
bergquist
f13263eb54
reduce loglevel to debug
2019-03-13 09:01:45 +01:00
bergquist
7aeab0a235
use Get instead of Find
2019-03-11 11:04:56 +01:00
bergquist
b2967fbb37
avoid exposing cache client directly
2019-03-11 10:49:56 +01:00
bergquist
085b631099
add docs about remote cache settings
2019-03-11 10:49:56 +01:00
bergquist
7e7427637c
renames distcache -> remotecache
2019-03-11 10:49:55 +01:00
bergquist
66e71b66dd
renames key to cache_key
...
apparently key is a reserved keyword in mysql.
and the error messages doesnt mention that.
can I please have 6h back?
2019-03-11 10:49:55 +01:00
bergquist
dbc1315d6f
build steps for cache servers
2019-03-11 10:49:55 +01:00
bergquist
daa3b17951
code layouts and comments
2019-03-11 10:49:42 +01:00
bergquist
9a78c23165
rename put -> set
2019-03-11 10:49:10 +01:00
bergquist
6231095f72
reverts package.json I made during the flight >.>
2019-03-11 10:49:10 +01:00
bergquist
98f5432659
memcache -> memcached
...
https://github.com/memcached/memcached
2019-03-11 10:49:09 +01:00
bergquist
995647be2c
removes memory as distcache option
...
if database caching is to expensive if should
not use distcache in the first place.
2019-03-11 10:49:09 +01:00
bergquist
b933b4efc8
test redis and memcached during integration tests
2019-03-11 10:49:09 +01:00
bergquist
196cdf9710
adds config to default settings
2019-03-11 10:49:09 +01:00
bergquist
f9f2d9fcf3
avoid exporting test helpers
2019-03-11 10:49:09 +01:00
bergquist
33935b09f0
uses set instead of add for memcache
...
set always sets the value regardless.
2019-03-11 10:49:09 +01:00
bergquist
8db2864fee
adds memory as dist storage alt
2019-03-11 10:49:09 +01:00
bergquist
a60bb83a70
extract tests into seperate files
2019-03-11 10:49:09 +01:00
bergquist
c8ff698d90
avoid exposing internal structs and functions
2019-03-11 10:49:04 +01:00
bergquist
3890bd14eb
fixes typo in redis devenv
2019-03-08 09:09:28 +01:00
bergquist
11d671c637
add support for memcached
2019-03-08 09:09:28 +01:00
bergquist
5ced863f75
add support for redis storage
2019-03-08 09:09:27 +01:00
bergquist
d99af23946
add garbage collector for database cache
2019-03-08 09:09:27 +01:00
bergquist
996d5059b1
test at interface level instead impl
2019-03-08 09:09:27 +01:00
bergquist
d4f5789660
cache: initial version of db cache
2019-03-08 09:09:27 +01:00
bergquist
d4c718091c
changelog: adds note about closing #15608
2019-03-05 14:41:04 +01:00
bergquist
ae9327ff3a
remove UseBool since we use AllCols
2019-03-05 13:41:40 +01:00
bergquist
27dc3586b1
changelog: adds note about closing #14239
2019-03-02 21:27:09 +01:00
bergquist
cde3a21434
changelog: adds note about closing #10506
2019-03-02 20:37:36 +01:00