Erik Sundell
2aae7e0c87
stackdriver: fix froamt annotation text for value
2018-09-28 13:50:10 +02:00
Erik Sundell
ca50e315fa
stackdriver: make it possible to use point values of type string
2018-09-28 13:41:28 +02:00
Daniel Lee
a63877bd4f
stackdriver: pattern formatting for annotations
2018-09-27 16:18:48 +02:00
Daniel Lee
03b43ab769
stackdriver: wip annotation support
2018-09-27 15:18:10 +02:00
Erik Sundell
c099074d2c
stackdriver: remove debug logging
2018-09-27 10:41:51 +02:00
Erik Sundell
0507ff69fb
stackdriver: resolve merge conflict
2018-09-27 10:32:30 +02:00
Erik Sundell
481b8653d9
stackdriver: update alignment period rules according to stackdriver
2018-09-27 10:20:01 +02:00
Daniel Lee
6358d3f314
stackdriver: set target to be raw query
2018-09-27 10:14:10 +02:00
Erik Sundell
3c6c456592
stackdriver: use more appropriate test data
2018-09-27 09:19:24 +02:00
Erik Sundell
284d0b7edf
Merge branch 'stackdriver-plugin' of https://github.com/grafana/grafana into stackdriver-plugin
2018-09-26 18:04:30 +02:00
Erik Sundell
75a2ea5c71
stackdriver: fix broken test
2018-09-26 18:04:04 +02:00
Daniel Lee
66c95991c1
Merge remote-tracking branch 'origin/master' into stackdriver-plugin
2018-09-26 17:59:56 +02:00
Erik Sundell
ed6d3bf6ed
stackdriver: WIP - implement stackdriver style auto alignment period. also return the used alignment period and display it in the query editor
2018-09-26 17:50:08 +02:00
Erik Sundell
af9033f3e0
stackdriver: distinct grafana auto from stackdriver auto in alignment period
2018-09-26 15:44:09 +02:00
Erik Sundell
13c68e6ed8
stackdriver: use correct name for variable
2018-09-26 15:37:29 +02:00
bergquist
b04052f515
alerting: move all notification conditions to defaultShouldNotify
2018-09-26 14:34:10 +02:00
Erik Sundell
49cd31ab78
stackdriver: get value type and metric kind from metric descriptor instead of from latest metric result
2018-09-26 11:17:24 +02:00
Carl Bergquist
af0f3f2119
Merge pull request #13391 from grafana/provisioning-interval
...
provisioning: changed update interval default 3 to 10 seconds
2018-09-25 22:43:34 +02:00
Carl Bergquist
4520962ac2
Merge pull request #13401 from grafana/render-limits
...
Concurrent render limits
2018-09-25 15:28:57 +02:00
Erik Sundell
b6a918ba79
stackdriver: merge commit
2018-09-25 15:13:24 +02:00
Torkel Ödegaard
862ca07f03
fix: updated tests
2018-09-25 14:01:38 +02:00
Axel Pirek
d2f2c3f220
Fix spelling of your and you're
2018-09-25 12:38:02 +02:00
Torkel Ödegaard
cb96c6d942
Changed setting to be an alerting setting
2018-09-25 12:17:04 +02:00
Erik Sundell
b700c6b0e4
stackdriver: populate alignment and aggregation dropdowns based on metric type and value type
2018-09-25 09:34:14 +02:00
Torkel Ödegaard
4dab595ed7
rendering: Added concurrent rendering limits
2018-09-24 16:14:11 +02:00
Daniel Lee
4777689f29
stackdriver: skeleton for more query types on the backend
2018-09-24 16:02:35 +02:00
Daniel Lee
681cd7496e
stackdriver: alias patterns WIP
...
This is using the {{}} syntax for alias patterns. Might
switch to the syntax instead.
2018-09-23 22:04:24 +02:00
Torkel Ödegaard
98dad530e2
provisioning: changed provisioning default update interval from 3 to 10 seconds
2018-09-22 10:06:57 +02:00
Torkel Ödegaard
6db0880fd8
invalidate access token cache after datasource is updated
2018-09-21 14:24:44 +02:00
Mario Trangoni
60dfff11a0
Fix datbase > database
2018-09-21 13:41:31 +02:00
Mario Trangoni
da46cc2fca
Fix changed want md5 hash
2018-09-21 13:41:03 +02:00
Mario Trangoni
80fa66fcb0
Fix some typos found by codespell
...
See,
$ codespell -S "./.git*,./vendor*,./public*"
2018-09-21 11:54:52 +02:00
Mario Trangoni
3689bb778c
Fix misspell issues
...
See,
$ gometalinter --disable-all --enable misspell --deadline 10m --vendor ./...
pkg/api/dtos/alerting_test.go:32:13⚠️ "expectes" is a misspelling of "expects" (misspell)
pkg/api/static/static.go:2:18⚠️ "Unknwon" is a misspelling of "Unknown" (misspell)
pkg/components/imguploader/azureblobuploader.go:55:48⚠️ "conatiner" is a misspelling of "container" (misspell)
pkg/login/ldap_settings.go:51:115⚠️ "compatability" is a misspelling of "compatibility" (misspell)
pkg/middleware/auth_proxy_test.go:122:22⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/middleware/logger.go:2:18⚠️ "Unknwon" is a misspelling of "Unknown" (misspell)
pkg/services/notifications/codes.go:9:13⚠️ "Unknwon" is a misspelling of "Unknown" (misspell)
pkg/services/session/mysql.go:170:3⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/services/session/mysql.go:171:24⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/services/session/session.go:95:4⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/services/session/session.go:96:1⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/services/session/session.go:167:25⚠️ "Destory" is a misspelling of "Destroy" (misspell)
pkg/setting/setting.go:1:18⚠️ "Unknwon" is a misspelling of "Unknown" (misspell)
pkg/tsdb/cloudwatch/cloudwatch.go:199:14⚠️ "resolutin" is a misspelling of "resolutions" (misspell)
pkg/tsdb/cloudwatch/cloudwatch.go:270:15⚠️ "resolutin" is a misspelling of "resolutions" (misspell)
pkg/tsdb/elasticsearch/response_parser.go:531:24⚠️ "Unkown" is a misspelling of "Unknown" (misspell)
pkg/tsdb/elasticsearch/client/search_request.go:113:7⚠️ "initaite" is a misspelling of "initiate" (misspell)
Note: Unknwon is a library name, and Destory a mysql typo.
2018-09-21 11:54:36 +02:00
Torkel Ödegaard
040095b5a8
fix: use same User-Agent header as in other places in grafana when making external requests
2018-09-21 11:35:55 +02:00
Torkel Ödegaard
c282f39121
Merge branch 'master' into stackdriver-plugin
2018-09-21 10:17:13 +02:00
Mario Trangoni
03a2a39a2a
pkg/tracing/tracing.go: replace deprecated cfg.New function
...
$ gometalinter --vendor --disable-all --enable=megacheck --disable=gotype --deadline=6m ./...
pkg/tracing/tracing.go:81:25⚠️ cfg.New is deprecated: use NewTracer() function (SA1019) (megacheck)
2018-09-20 22:32:22 +02:00
Daniel Lee
ddee919edc
stackdriver: remove WIP tests
2018-09-20 20:34:16 +02:00
Mario Trangoni
0dea8fe1e0
pkg/services/sqlstore/user.go: empty branch
...
$ gometalinter --vendor --disable-all --enable=megacheck --disable=gotype --deadline=6m ./...
pkg/services/sqlstore/user.go:274:3⚠️ empty branch (SA9003) (megacheck)
2018-09-20 20:16:14 +02:00
Mario Trangoni
303e70db25
pkg/tsdb/elasticsearch/response_parser.go: simplify redundant code
...
$ gometalinter --vendor --disable-all --enable=megacheck --disable=gotype --deadline=6m ./...
pkg/tsdb/elasticsearch/response_parser.go:95:41⚠️ should use make(map[string]string) instead (S1019) (megacheck)
pkg/tsdb/elasticsearch/response_parser.go:125:41⚠️ should use make(map[string]string) instead (S1019) (megacheck)
pkg/tsdb/elasticsearch/response_parser.go:317:5⚠️ redundant break statement (S1023) (megacheck)
pkg/tsdb/elasticsearch/response_parser.go:358:5⚠️ redundant break statement (S1023) (megacheck)
2018-09-20 20:07:03 +02:00
Mario Trangoni
b609d81194
pkg/tsdb/elasticsearch/client/search_request.go: simplify loop with
...
append.
$ gometalinter --vendor --disable-all --enable=megacheck --disable=gotype --deadline=6m ./...
pkg/tsdb/elasticsearch/client/search_request.go:59:4⚠️ should replace loop with sr.Aggs = append(sr.Aggs, aggArray...) (S1011) (megacheck)
pkg/tsdb/elasticsearch/client/search_request.go:303:4⚠️ should replace loop with agg.Aggregation.Aggs = append(agg.Aggregation.Aggs, childAggs...) (S1011) (megacheck)
2018-09-20 20:00:02 +02:00
Daniel Lee
8211f7d0ea
stackdriver: add templating support for metric, filter and group by
...
Still have to figure out if we should have templating for aggregation
fields
2018-09-20 11:44:17 +02:00
Daniel Lee
8d1f293676
stackdriver: use group by fields to create default alias
2018-09-20 00:52:14 +02:00
Mario Trangoni
13a1d0a026
pkg/tsdb/elasticsearch/client/client.go: use time.Since instead of time.Now().Sub
...
$ gometalinter --vendor --disable=all --enable=megacheck --deadline=10m ./...
pkg/tsdb/elasticsearch/client/client.go:147:13⚠️ should use time.Since instead of time.Now().Sub (S1012) (megacheck)
pkg/tsdb/elasticsearch/client/client.go:190:14⚠️ should use time.Since instead of time.Now().Sub (S1012) (megacheck)
pkg/tsdb/elasticsearch/client/client.go:218:13⚠️ should use time.Since instead of time.Now().Sub (S1012) (megacheck)
2018-09-18 23:42:25 +02:00
Mario Trangoni
f19fd1a9b0
pkg/plugins/dashboards_updater.go: Simplify err check
...
$ gometalinter --vendor --disable=all --enable=megacheck --deadline=10m ./...
pkg/plugins/dashboards_updater.go:51:2⚠️ 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)
2018-09-18 23:42:25 +02:00
Mario Trangoni
bb5aaa2dce
pkg/services/sqlstore/alert_notification.go: Simplify err check
...
$ gometalinter --vendor --disable=all --enable=megacheck --deadline=10m ./...
pkg/services/sqlstore/alert_notification.go:242:3⚠️ 'if err != nil { return err }; return nil' can be simplified to 'return err' (S1013) (megacheck)
2018-09-18 23:42:20 +02:00
Daniel Lee
408d4bda95
stackdriver: add custom User-Agent header
2018-09-18 16:07:14 +02:00
Daniel Lee
e05b86375b
stackdriver: remove hardcoding of test project name
2018-09-18 16:02:38 +02:00
Torkel Ödegaard
d964a6505f
Merge pull request #13305 from bergquist/devenv_cleanup
...
removes unused files
2018-09-18 12:32:26 +02:00
Nick Triller
f8ca55bb1f
Fix setting test
2018-09-17 17:56:52 +02:00
bergquist
8dbba467f1
moves /tests to /pkg/plugins
...
ref #11433
2018-09-17 17:29:47 +02:00