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
bergquist
dafd7afb97
changelog: adds note about closing #15651
2019-03-02 20:35:53 +01:00
bergquist
60fef31748
moves social package to /login
...
ref #14679
2019-02-25 15:30:40 +01:00
bergquist
0c67194b45
moves tracing packge into /infra
2019-02-25 15:29:25 +01:00
bergquist
8a3a3cccc3
moves metric package to /infra
...
ref #14679
2019-02-24 21:12:51 +01:00
bergquist
7754c37a1f
reduce loglevel to debug
2019-02-19 08:22:33 +01:00
bergquist
c68da40710
run db tests in all packages
2019-02-15 16:26:24 +01:00
bergquist
af5a2468e8
fix spelling error
2019-02-14 20:18:24 +01:00
bergquist
191f9c8407
whats new: rename security section
2019-02-14 19:42:39 +01:00
bergquist
72f522bb51
rearrange bullet points in PR template
...
[skip ci]
2019-02-14 15:24:52 +01:00
bergquist
b37e05714c
link to contributing guidelines in pr template
2019-02-14 15:22:13 +01:00
bergquist
3f714fbd1b
contributing: adds link to help wanted label
2019-02-14 14:54:09 +01:00
bergquist
681269b3fe
contributing: adds link to our CLA
2019-02-14 14:53:46 +01:00
bergquist
e22cba67dc
removes testing instruction from contributing doc
2019-02-14 14:26:25 +01:00
bergquist
94c1335f11
docs: move alerting above session
2019-02-14 14:17:02 +01:00
bergquist
933d4729db
docs: mention samesite setting
2019-02-14 14:06:50 +01:00
bergquist
7f7cc85ef0
docs: adds note about new login cookie name
2019-02-14 13:24:41 +01:00
bergquist
982f262089
make bug/feature titles more verbose
2019-02-14 09:13:58 +01:00
bergquist
0e6800495f
mentioned closes/fixes for new features
2019-02-14 09:02:51 +01:00
bergquist
058debee67
contributing: improve guide for bug fixes
2019-02-13 14:25:26 +01:00
bergquist
e163aadfe4
use authtoken for session quota restrictions
...
closes #15360
2019-02-12 15:10:55 +01:00
bergquist
1310d356fc
removes unused session code
2019-02-12 12:33:54 +01:00
bergquist
3b9105e1be
enable testing provsioned datasources
...
closes #12164
2019-02-12 08:45:21 +01:00