Daniel Lee
0e228d582d
azuremonitor: builds a query and sends it to Azure on the backend
...
Lots of edge cases not covered and the response is not parsed. It only
handles one service and will have to be refactored to handle multiple
2019-02-08 17:20:31 +01:00
Marcus Efraimsson
e87ff5a06d
Merge pull request #15265 from larsjoergensen/cloudwatch/add-rds-aurora-serverlessdatabasecapacity-metrics
...
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 21:56:11 +01:00
Lars Jørgensen
749320002b
Added ServerlessDatabaseCapacity metric to list of AWS RDS metrics.
2019-02-05 20:57:51 +01:00
jeroenvollenbrock
28aafcd789
cloudwatch: Add tests for resource_arn template query
2019-02-05 18:37:05 +01:00
jeroenvollenbrock
fa977ce090
cloudwatch: Add resource_arns template query function
...
Implements feature request #8207
2019-02-05 18:37:04 +01:00
Marcus Efraimsson
d433ca7d40
fix util for splitting host and port
...
Now you can provide both a default host and a default port
2019-02-04 13:10:32 +01:00
Connor Patterson
48c8ff8899
Add AWS/Neptune to metricsMap and dimensionsMap
2019-02-03 16:29:35 -05:00
Daniel Lee
782c4eae98
Merge pull request #15127 from challengerdeep/fix-stackdriver-aggparams-reducer
...
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-30 00:45:22 +01:00
Torkel Ödegaard
416562bd90
Merge pull request #15102 from mjtrangoni/fix-golint-issues
...
Fix golint issues
2019-01-29 21:12:34 +01:00
Robert Edström
9b6746d808
Change primaryAggregation to crossSeriesReducer in Stackdriver
2019-01-29 19:11:54 +01:00
Mario Trangoni
8261613b51
pkg/util/{ip.go,url.go}: Fix some golint issues
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=golint ./...
ip.go:8:6⚠️ func SplitIpPort should be SplitIPPort (golint)
url.go:14:6⚠️ func NewUrlQueryReader should be NewURLQueryReader (golint)
url.go:9:6⚠️ type UrlQueryReader should be URLQueryReader (golint)
url.go:37:6⚠️ func JoinUrlFragments should be JoinURLFragments (golint)
2019-01-28 22:29:20 +01:00
Marcus Efraimsson
7023c957d7
Merge branch 'master' into nanosecond-postgresql
2019-01-28 20:04:46 +01:00
Marcus Efraimsson
f157c19e16
extract parsing of datasource tls config to method
2019-01-28 19:38:56 +01:00
Vlad Ellis
c208186f26
Parse database host correctly when using IPv6
2019-01-25 21:56:19 +00:00
bugficks
f31fe495e9
fix go fmt
2019-01-15 13:54:25 +01:00
bugficks
7db848f153
[Feature request] MySQL SSL CA in datasource connector
...
https://github.com/grafana/grafana/issues/8570
2019-01-15 13:29:56 +01:00
Marcus Efraimsson
130e4aa666
Merge pull request #14608 from marefr/es_bucket_script
...
Fix support bucket script pipeline aggregations
2019-01-14 15:58:42 +01:00
jaken551
64163f0198
14722 - removing unnecessary arn check that breaks assume role feature in other AWS partitions
2019-01-06 15:21:58 -05:00
Ander Arguiñano
089d85af63
Added macros to mysql
2019-01-03 22:29:57 +01:00
Ander Arguiñano
3801a75131
FIxed syntaxis mistake unixEpochNanoFrom and unixEpochNanoTo
2019-01-03 22:25:10 +01:00
Ander Arguiñano
ed6782402b
Merge remote-tracking branch 'upstream/master' into nanosecond-postgresql
2019-01-03 21:48:10 +01:00
Ander Arguiñano
b4eac406d5
Added previous macros to mssql
2019-01-03 21:43:08 +01:00
Ander Arguiñano
9105625f24
Added unixEpochNanoTo and unixEpochNanoFrom macros to postgresql
2019-01-03 21:31:47 +01:00
Ander Arguiñano
4d8d2a9690
Renamed unixEpochFilterNano to unixEpochNanoFilter
2019-01-03 20:40:17 +01:00
Sven Klemm
4c51e8df20
Don't cut off subsecond precision for postgres macros
...
Change time format to RFC3339Nano for $__timeFilter, $__timeFrom and
$__timeTo macros
2019-01-02 23:38:09 +01:00
Ander Arguiñano
1a67a8db80
Nanosecond timestamp support postgresql
2019-01-02 23:00:21 +01:00
Clément MATHIEU
c29c9d1664
Add support for InfluxDB's time zone clause (backend)
2018-12-21 16:49:01 +01:00
Marcus Efraimsson
b45f72a140
elasticsearch: support bucket script pipeline aggregations
2018-12-20 01:24:36 +01:00
Marcus Efraimsson
c46d01dc83
Merge pull request #14090 from marefr/8843_pipeline_doc_count
...
Fix pipeline aggregations on doc count
2018-12-12 13:21:13 +01:00
Scott Glajch
62a5cd27ba
Add the AWS/SES Cloudwatch metrics of BounceRate and ComplaintRate. Pull request #14399
2018-12-07 16:42:29 -05:00
Carl Bergquist
3c330c8e4c
Merge pull request #14317 from mjtrangoni/fix-misspell-issues
...
pkg/*: Fix misspelling issues using locale US
2018-12-05 10:34:28 +01:00
Mario Trangoni
fadd816d89
pkg/*: Fix misspell issues
...
See,
$ find . -type f | xargs misspell -locale US | grep -vi -e vendor -e devenv -e Unknwon -e Destory | grep pkg
./pkg/services/sqlstore/org_test.go:190:15: "frome" is a misspelling of "from"
./pkg/tsdb/elasticsearch/response_parser.go:544:24: "Unkown" is a misspelling of "Unknown"
./pkg/tsdb/opentsdb/opentsdb.go:87:20: "marshalling" is a misspelling of "marshaling"
./pkg/components/dynmap/dynmap_test.go:2:7: "Licence" is a misspelling of "License"
./pkg/components/dynmap/dynmap.go:2:7: "Licence" is a misspelling of "License"
2018-12-04 23:29:34 +01:00
Tom Nitti
1e53c12921
added support for influxdb cumulative_sum function in tsdb
2018-12-04 12:46:50 -06:00
Marcus Efraimsson
acb45867f8
Merge pull request #14179 from mattiarossi/master
...
Add support for offset in date histogram aggregation
2018-12-03 05:43:42 -08:00
Marcus Efraimsson
624e5e5b3d
let each sql datasource handle timeFrom and timeTo macros
2018-11-30 14:30:02 +01:00
Matthew Coltman
bbd0ec3a8b
Add AWS/CodeBuild namespace for CloudWatch datasource
2018-11-29 21:02:44 +01:00
Mattia Rossi
ce74b1ddc2
Requested Backend changes, removed link in popover description for the offset field
2018-11-27 03:42:20 -05:00
Mattia Rossi
f6fc7f7b64
Requested Backend changes, added details to popover description for the offset field
2018-11-26 08:58:25 -05:00
Marcus Efraimsson
a022284cb0
fix handle of elasticsearch 6.0+ version
2018-11-23 15:24:16 +01:00
Marcus Efraimsson
3534762f49
cloudwatch: handle invalid time ranges
2018-11-21 17:51:02 +01:00
Marcus Efraimsson
879aed7d06
cloudwatch: recover/handle panics when executing queries
2018-11-21 17:49:17 +01:00
Javier
0900470dda
Add Cloudwatch/CloudHSM Metrics and dimensionMaps
2018-11-19 18:10:34 +01:00
Marcus Efraimsson
9a8ad70013
fix pipeline aggregations on doc count
2018-11-15 19:06:47 +01:00
Mario Trangoni
e351e6e211
pkg/tsdb/influxdb/influxdb.go: Fix surrounding loop is unconditionally terminated.
...
See,
$ gometalinter --vendor --deadline 6m --disable-all --enable=megacheck ./...
pkg/tsdb/influxdb/influxdb.go:106:3⚠️ the surrounding loop is unconditionally terminated (SA4004) (megacheck)
2018-11-09 19:40:07 +01:00
Torkel Ödegaard
dcb5015022
Merge pull request #13951 from marefr/11977_6x_terms
...
Fix terms agg order deprecation warning on es 6+
2018-11-07 20:47:41 +01:00
Zac Coffy
9cce0f553a
Adding Cloudwatch AWS/Connect metrics and dimensions
2018-11-05 13:15:03 -05:00
Marcus Efraimsson
5803bfd2c7
fix terms agg order deprecation warning on es 6+
2018-11-02 17:53:47 +01:00
Marcus Efraimsson
6052257515
Merge pull request #13820 from grafana/13769_mysql_time_filter
...
mysql: fix timeFilter macro should respect local time zone
2018-10-26 09:02:59 +02:00
Mitsuhiro Tanda
220c4f4ab4
add test
2018-10-26 03:13:02 +09:00
Mitsuhiro Tanda
3447b8b299
cache region result
2018-10-26 01:23:44 +09:00
Mitsuhiro Tanda
c40baa1a23
use default region to call DescribeRegions
2018-10-26 01:23:44 +09:00
Torkel Ödegaard
d505d83ee1
Merge pull request #13679 from mjtrangoni/fix-megacheck-issues
...
Fix megacheck issues
2018-10-25 16:31:53 +02:00
Marcus Efraimsson
97b22aa5a9
mysql: fix timeFilter macro should respect local time zone
2018-10-25 10:29:40 +02:00
Erik Sundell
c5af0bf1c5
Resource type filter ( #13784 )
...
* stackdriver: add resource type to filter and group bys
* stackdriver: remove not used param
* stackdriver: refactor filter and group by code
* stackdriver: remove resource type if its already in filter list
* stackdriver: remove debug logging
* stackdriver: remove more debug logging
* stackdriver: append resource type to legend name if there are more than one type present in the response
* stackdriver: only make new request if filter has real value
* stackdriver: format legend support for resource type
* stackdriver: add resource type to documentation
* stackdriver: not returning promise from query function
* stackdriver: fix refactoring bug
* stackdriver: remove not used import
2018-10-24 11:18:49 +02:00
Mario Trangoni
91447dcbf9
pkg/tsdb/stackdriver/stackdriver.go: Fix regular expression does not contain any meta characters.
...
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/tsdb/stackdriver/stackdriver.go:171:26⚠️ regular expression does not contain any meta characters (SA6004) (megacheck)
2018-10-23 17:26:47 +02:00
Mario Trangoni
bb12a1bc99
pkg/tsdb/graphite/graphite.go: Fix regular expression does not contain any meta characters.
...
I found this article benchmarking Replace vs Regexp,
https://medium.com/codezillas/golang-replace-vs-regexp-de4e48482f53
See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/tsdb/graphite/graphite.go:167:28⚠️ regular expression does not contain any meta characters (SA6004) (megacheck)
pkg/tsdb/graphite/graphite.go:172:28⚠️ regular expression does not contain any meta characters (SA6004) (megacheck)
2018-10-23 17:26:46 +02:00
Erik Sundell
6abbf5b3b8
stackdriver: refactoring request builder
2018-10-22 16:12:55 +02:00
Erik Sundell
1756e82d8b
stackdriver: remove not used struct
2018-10-22 16:12:55 +02:00
Erik Sundell
5b04a8b6c2
stackdriver: remove not used query file
2018-10-22 16:11:17 +02:00
Erik Sundell
1a329e4e47
stackdriver: remove test datasource query. use ensuredefaultproject instead
2018-10-22 16:11:17 +02:00
Erik Sundell
b02a8127ff
stackdriver: remove debug comments
2018-10-22 16:11:17 +02:00
Erik Sundell
b2c6c743ce
stackdriver: add debug logging
2018-10-22 16:11:17 +02:00
Erik Sundell
3999578300
stackdriver: fix broken braces
2018-10-22 16:11:17 +02:00
Erik Sundell
3935f9d24c
stackdriver: use constant instead of variable
2018-10-22 16:11:17 +02:00
Erik Sundell
8b4fff8b87
stackdriver: use gce variable
2018-10-22 16:11:17 +02:00
Erik Sundell
4a51d05477
stackdriver: add variable for gce authentication type
2018-10-22 16:11:17 +02:00
Erik Sundell
b9cb4649bb
stackdriver: get default project from backend. also ensure default project could be retrieved when authentication type is gce
2018-10-22 16:11:17 +02:00
Erik Sundell
cd7b454e25
stackdriver: add default value for authentication type
2018-10-22 16:03:14 +02:00
Erik Sundell
823838a839
stackdriver: wip - remove debug code
2018-10-22 16:03:14 +02:00
Erik Sundell
0b82fda49c
stackdriver: only get default token from metadata server when applying route
2018-10-22 16:03:14 +02:00
Erik Sundell
dd9e9ed419
stackdriver: make backend query a pure test datasource function
2018-10-22 16:03:13 +02:00
Erik Sundell
9c7022be86
stackdriver: add status code
2018-10-22 16:03:13 +02:00
Erik Sundell
412a1f6d99
stackdriver: wip - return metric descriptors in the format of tablew
2018-10-22 16:03:13 +02:00
Erik Sundell
ff5f281508
stackdriver: wip - get metric descriptors in the backend
2018-10-22 16:03:13 +02:00
Erik Sundell
60617d0bf7
stackdriver: wip - add logic for retrieving token from gce metadata server in the auth provider
2018-10-22 16:03:13 +02:00
Erik Sundell
102f531c1e
stackdriver: break out project name resolving into its own function in the stackdriver.go file
2018-10-22 16:03:12 +02:00
Erik Sundell
df215d9d09
stackdriver: WIP - test retrieving project id from gce metadata
2018-10-22 16:03:12 +02:00
Marcus Efraimsson
77f23018a5
Merge pull request #13684 from mtanda/cw_concurrent_map
...
fix concurrent map writes
2018-10-18 13:41:39 +02:00
Marcus Efraimsson
1d0dee189c
Merge pull request #13705 from Yukinoshita-Yukino/master
...
Add socket support for mysql data source
2018-10-18 09:45:50 +02:00
Yuan Liu
f640df7a2c
simplify code
2018-10-18 01:45:14 +08:00
Marcus Efraimsson
62f21a254a
Merge pull request #12337 from mtanda/cw_regions
...
show all CloudWatch regions (avoid hard coding)
2018-10-17 11:55:43 +02:00
Yuan Liu
36dbc5f51c
Add socket support for mysql data source
2018-10-17 17:45:06 +08:00
Marcus Efraimsson
52f398e7f7
cloudwatch: return a distinct list of regions
2018-10-17 10:58:06 +02:00
Ramiro Morales
49a3bd3097
add encrypt connstr param conditionally on the value chosen via GUI.
2018-10-16 13:14:22 -03:00
Mitsuhiro Tanda
fce50cf1b8
return default region list from backend
2018-10-16 12:20:39 +09:00
Mitsuhiro Tanda
f6cb01d38a
show all CloudWatch regions
2018-10-16 12:03:33 +09:00
Mitsuhiro Tanda
2b20402d7d
get region list from ec2:DescribeRegions
2018-10-16 12:03:33 +09:00
Mitsuhiro Tanda
48aef0c50e
fix concurrent map writes
2018-10-16 11:45:58 +09:00
Ramiro Morales
d859a6aeb8
rename new JSON data attrbute.
2018-10-15 20:34:03 -03:00
Ramiro Morales
37f16ca80a
Add 'encrypt' setting to MSSQL data source.
...
Fixes #13629
2018-10-15 14:47:54 -03:00
Mario Trangoni
18e127db2a
pkg/tsdb/*: Fix do not pass a nil Context
...
See,
$ gometalinter --vendor --deadline 6m --disable-all --enable=megacheck ./...
pkg/tsdb/mssql/mssql_test.go:695:33⚠️ do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (SA1012) (megacheck)
pkg/tsdb/mysql/mysql_test.go:772:32⚠️ do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (SA1012) (megacheck)
pkg/tsdb/postgres/postgres_test.go:704:33⚠️ do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (SA1012) (megacheck)
2018-10-11 19:03:54 +02:00
Yuan Liu
18dfdc4f0d
add test for es alert when group by has no limit
2018-10-11 16:04:57 +08:00
Yuan Liu
f8a8b213f9
remove tab
2018-10-11 11:40:23 +08:00
Yuan Liu
567db87c3a
bug fix
...
bug fix
2018-10-11 11:36:40 +08:00
Yuan Liu
3b9ab6e204
Update time_series_query.go
...
fix alert no data when elasticsearch group by terms size is set to no limit
2018-10-11 11:21:06 +08:00
Marcus Efraimsson
bc3b7357bd
Merge pull request #13400 from connection-reset/concurrent-sql
...
Run queries for sql data sources for panels with multiple queries concurrently
Also make max open connections, max idle connections and max connection
lifetime configurable in the data source settings
2018-10-10 19:12:38 +02:00
Marcus Efraimsson
5f69854e2a
Merge pull request #13571 from mtanda/cw_unit
...
cloudwatch: automatically set graph yaxis unit
fixes #13575
2018-10-10 09:52:10 +02:00
Marcus Efraimsson
0612ce9b75
cloudwatch: return early if execute query returns error
...
This will stop a segfault from happening
2018-10-10 09:38:42 +02:00
Mitsuhiro Tanda
f0fb8123ae
add test for automatically unit set
2018-10-10 14:07:08 +09:00
Mitsuhiro Tanda
37e749f6da
fix crach bug
2018-10-10 13:56:58 +09:00