Commit Graph
100 Commits
Author SHA1 Message Date
Mitsuhiro Tanda d1083b9597 Cloud Monitoring: Reduce request size when listing labels (#44365) 2022-01-26 12:02:42 +01:00
Mitsuhiro TandaandErik Sundell 717827725f Cloud Monitoring: MQL support (#26551)
* cloud monitoring mql support

* reduce nesting

* remove resource type from deep link since. its removed for two reasons. first of all it is not needed for the link to work. secondly, by adding the resource type, the the link will differ from the query in grafana which I think is misleading

* use frame.meta.executedQueryString instead of legacy meta

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2021-01-18 13:48:43 +01:00
Mitsuhiro Tanda 528a61b86b Alerting: Store sensitive settings encrypted for alertmanager notifier (#26318)
Ref #25967
2020-07-17 13:56:06 +02:00
Mitsuhiro Tanda 92767f00e0 Alerting: Store sensitive settings encrypted for pagerduty notifier (#26319)
Store pagerduty integration key in secure setting.

Ref #25967
2020-07-16 10:53:35 +02:00
Mitsuhiro Tanda 077aec465c Implicit import symbol-observable to avoid inconsistent symbol (#26288) 2020-07-14 09:25:17 +02:00
Mitsuhiro TandaandMarcus Efraimsson 292c985b76 Alerting: Support storing sensitive notifier settings securely/encrypted (#25114)
Support storing sensitive notification settings securely/encrypted.
Move slack notifier url and api token to secure settings.
Migrating slack notifier to store token and url encrypted is currently 
a manual process by saving an existing slack alert notification channel.
saving an existing slack alert notification channel will reset the stored 
non-secure url and token.

Closes #25113
Ref #25967

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2020-07-08 10:17:05 +02:00
Mitsuhiro TandaandArve Knudsen 9f82cd4713 Slack: Support use of chat.postMessage (#25818)
* set bearer token if token is provided
* update slack notification document

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-06-26 20:47:06 +02:00
Mitsuhiro Tanda 0c89b93ce0 upgrade aws-sdk-go (#20957)
Upgrading aws-sdk-go since there's additional changes 
for IMDSv2 support.
2019-12-10 10:26:53 +01:00
Mitsuhiro Tanda a1605c58d9 CloudWatch: Upgrade aws-sdk-go (#20510)
There is security risk of SSRF if Grafana is running on EC2.

#20508
2019-12-02 19:25:44 +01:00
Mitsuhiro Tanda e33cf32b97 CloudWatch: enable min_interval (#20260) 2019-11-21 11:42:48 +01:00
Mitsuhiro Tanda af35e081c2 handle PartialData status (#20459) 2019-11-19 13:36:32 +01:00
Mitsuhiro Tanda 1e98c10235 user friendly guide (#16743)
CloudWatch: Update docs for setting auth provider
2019-04-24 15:41:13 +02:00
Mitsuhiro Tanda 864a6262fe CloudWatch: GetMetricData refactoring & fix label handling (#16383)
* fix label handling

* SEARCH() results could have multiple namespace, remove from legend

* divide GetMetricStatistics related code

* divide GetMetricData related code

* divide parseGetMetricDataResponse()

* divide parseGetMetricDataQuery()

* divide test code

* add test for GetMetricData

* add test for GetMetricData parse response

* fix bug of terminating gap

* fix gofmt
2019-04-15 17:55:07 +02:00
Mitsuhiro Tanda 8f167c47e3 CloudWatch: Fix template variable expand bug (#16405)
CloudWatch: Fix template variable issues
2019-04-12 14:00:41 +02:00
Mitsuhiro Tanda d7d20a5b10 CloudWatch: fix color order (#16408)
* fix cloudwatch color order

* fix test

* use for-of
2019-04-12 13:57:39 +02:00
Mitsuhiro Tanda d2968c73e6 add PromQL keyword for adhoc filter (#16426) 2019-04-09 09:51:15 +02:00
Mitsuhiro Tanda 58eb74660d Fix: Cloudwatch fix for dimension value (#16356)
Fixes autocomplete suggestion after changing dimension key

Fixes #15984
2019-04-03 09:23:15 +02:00
Mitsuhiro Tanda 4d8eb76dca update cloudwatch metrics/dimensions list 2019-03-22 00:08:17 +09:00
Mitsuhiro Tanda 56251ca546 Update CloudWatch metrics/dimension list (#16102)
update cloudWatch metrics/dimension list
2019-03-21 11:13:06 +01:00
Mitsuhiro Tanda 38457fabc1 fix, assign by event.time 2019-03-21 16:39:37 +09:00
Mitsuhiro Tanda e868475c5b simplify 2019-03-21 15:48:22 +09:00
Mitsuhiro Tanda e1a2b258af deduplicate same value annotation 2019-03-21 10:26:46 +09:00
Mitsuhiro Tanda 89d69a6f21 update docs 2019-02-07 20:16:20 +09:00
Mitsuhiro Tanda 4bd94b8aba support json format templating 2019-02-07 14:07:41 +09:00
Mitsuhiro Tanda d46bf75293 support /api/v1/labels 2019-02-07 13:59:42 +09:00
Mitsuhiro Tanda cb2a03a08c add minimal permission 2018-11-05 14:27:27 +09: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
Mitsuhiro Tanda 08631ea23f support template variable in stat field 2018-10-25 13:03:20 +09:00
Mitsuhiro Tanda fbe0ffd10b skip jwt token auth if privateKey is empty 2018-10-22 16:03:12 +02:00
Mitsuhiro Tanda 43aa6603a3 fetch token from GCE metadata server 2018-10-22 16:03:12 +02:00
Mitsuhiro Tanda 022a45becd Revert "for development"
This reverts commit cf2f110e42bb0ca041be7bb0ebf549bf565c51bc.
2018-10-22 16:03:12 +02:00
Mitsuhiro Tanda 5b53c0497a for development 2018-10-22 16:03:11 +02:00
Mitsuhiro Tanda 4687ce2f7b allow unit override if cloudwatch response unit is none 2018-10-18 20:51:46 +09:00
Mitsuhiro Tanda e465b2d53a Revert "don't overwrite unit if user set"
This reverts commit 9dd33b79e037fc75ddc5f3a6b294edba99e99b94.
2018-10-18 20:51:46 +09:00
Mitsuhiro Tanda 287ba77abf don't overwrite unit if user set 2018-10-18 20:51:46 +09:00
Mitsuhiro Tanda c64a5a6e0e re-add hard coded region list 2018-10-17 14:02:02 +09:00
Mitsuhiro Tanda fce50cf1b8 return default region list from backend 2018-10-16 12:20:39 +09:00
Mitsuhiro Tanda a417d6fa21 don't merge hard coded region list 2018-10-16 12:03:33 +09:00
Mitsuhiro Tanda 61e2710961 add error message 2018-10-16 12:03:33 +09:00
Mitsuhiro Tanda 6564abd5f3 get regions from after datasource save 2018-10-16 12:03:33 +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
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
Mitsuhiro Tanda 6e32c9bb3f fix id validation 2018-10-10 12:19:57 +09:00
Mitsuhiro Tanda 6ed1cbd5bb set unit for CloudWatch GetMetricStatistics result 2018-10-09 17:02:56 +09:00
Mitsuhiro Tanda c2c0cdb49c add test 2018-10-03 16:27:11 +09:00
Mitsuhiro Tanda 6770f2e940 stackdriver heatmap support 2018-10-03 16:27:04 +09:00
Mitsuhiro Tanda dc08093f6c minor fix 2018-09-13 20:15:33 +09:00
Mitsuhiro Tanda 3031c2e6fc fix test 2018-09-13 20:07:43 +09:00
Mitsuhiro Tanda 2926725bab add annotation option to treat series value as timestamp 2018-09-13 20:05:30 +09:00
Mitsuhiro Tanda 28250271cc fix nil pointer dereference (#13221) 2018-09-11 12:53:39 +02:00
Mitsuhiro Tanda bf8840255c Review feedback. 2018-08-28 01:12:50 +09:00
Mitsuhiro Tanda e62c083cf0 use series matchers to get label name/value 2018-08-28 01:12:50 +09:00
Mitsuhiro Tanda 04fcd2a054 add series override option to hide tooltip (#12378)
* add series override option to hide tooltip

* fix test

* invert option

* fix test

* remove initialization
2018-08-02 02:49:40 -07:00
Mitsuhiro Tanda 055d208a32 fix invalid reference 2018-07-25 11:27:43 +09:00
Mitsuhiro Tanda d9bf894383 return 400 if user input error 2018-07-24 17:06:55 +09:00
Mitsuhiro Tanda fb4546b811 Id validation of CloudWatch GetMetricData 2018-07-23 17:58:54 +09:00
Mitsuhiro Tanda 9b50c9038b skip backend request if extended statistics is invalid. (#12495)
* check extended statistics pattern

* check extended statistics pattern

* Revert "check extended statistics pattern"

This reverts commit 52c7b1a972636d5f5729e64ae5e00e6fae329257.

* add test

* fix test
2018-07-11 11:23:38 -07:00
Mitsuhiro Tanda 18a8290c65 (prometheus) prevent error to use $__interval_ms in query (#12533)
* prevent error to use $__interval_ms in query

* add test

* prevent error to use $__interval_ms in query
2018-07-11 11:13:47 -07:00
Mitsuhiro Tanda 77220456b6 improve error message 2018-07-09 13:11:50 +09:00
Mitsuhiro Tanda 4c59be4f5b generate unique id when variable is multi 2018-07-09 13:11:50 +09:00
Mitsuhiro Tanda 40ed235b3b support GetMetricData 2018-07-09 13:11:50 +09:00
Mitsuhiro Tanda 077cf9a343 dep ensure 2018-07-09 13:11:50 +09:00
Mitsuhiro Tanda 664944980a update aws-sdk-go 2018-07-09 13:11:49 +09:00
Mitsuhiro Tanda aa1b5959da omit extra template refresh (#12454) 2018-07-01 22:56:24 -07:00
Mitsuhiro Tanda e65cf5cbb5 fix directly specified variable rendering 2018-05-28 11:28:08 +09:00
Mitsuhiro Tanda 067ceb178e Revert "move queryTimeout option to common setting"
This reverts commit 3ba59a1d66a2a3c07ccd04a48c403f0772fbef31.
2018-05-21 21:45:51 +09:00
Mitsuhiro Tanda 12ace5ab65 move queryTimeout option to common setting 2018-05-21 21:45:51 +09:00
Mitsuhiro Tanda 8ddcd67080 add query timeout option for Prometheus 2018-05-21 21:45:51 +09:00
Mitsuhiro Tanda 87c9c47579 use canMakeEditable 2018-05-16 11:58:51 +09:00
Mitsuhiro Tanda fe301142ba allow to add annotation for non editable dashboard 2018-05-16 11:51:28 +09:00
Mitsuhiro Tanda 253b2cc081 add test for prometheus table column title 2018-05-01 05:00:56 +09:00
Mitsuhiro Tanda c2b720835b fix to match table column name and order 2018-04-27 19:34:10 +09:00
Mitsuhiro Tanda c6fa0b90a7 prometheus editor: variable autocomplete support (PR #9988)
* prometheus ace editor, template variable support

* minor fix

* support [[var]] notation

* don't remove last ] if token type is string

* Revert "don't remove last ] if token type is string"

This reverts commit bce5b2d56e.

* Revert "support [[var]] notation"

This reverts commit 10012f8ffe.

* fix token type and regex
2018-03-15 20:17:51 +03:00
Mitsuhiro Tanda 4e1501b172 set default value of httpMethod 2018-03-12 13:53:05 +09:00
Mitsuhiro Tanda a83ede0193 support POST for query and query_range 2018-03-12 13:25:05 +09:00
Mitsuhiro Tanda eecbdc89eb fix, set default highResolution setting 2018-03-08 01:18:11 +09:00
Mitsuhiro Tanda 244cbe8cbd add csv templating format 2018-03-08 00:13:58 +09:00
Mitsuhiro Tanda f47542db28 migrate panels in collapsed rows (#10948) 2018-02-19 09:07:29 +01:00
Mitsuhiro Tanda 3b04efa4c0 migrate minSpan (#10924) 2018-02-16 09:29:10 +01:00
Mitsuhiro Tanda 18c54a9341 support cloudwatch high resolution query 2018-02-15 23:35:01 +09:00
Mitsuhiro Tanda 60b30d3e9a add AWS/States Rekognition (#10890)
* added AWS/States

* added Rekognition
2018-02-14 15:14:38 +01:00
Mitsuhiro Tanda 6a85369c50 add 13-24 for min width (#10891) 2018-02-13 17:22:55 +01:00
Mitsuhiro Tanda cf1be5fdfc support multiple histogram series 2018-02-01 19:06:35 +09:00
Mitsuhiro Tanda 6d5628f2ea ignore trailing whitespace (#10344) 2017-12-26 11:59:03 +01:00
Mitsuhiro Tanda e3274d6765 (prometheus) show label name in paren after by/without/on/ignoring/group_left/group_right 2017-12-26 01:57:10 +09:00
Mitsuhiro Tanda 3cb841f3db fix text panel rows limit (#10246) 2017-12-18 14:29:48 +01:00
Mitsuhiro Tanda 6bb7f77346 use ace editor in panel edit (#10245) 2017-12-18 14:29:23 +01:00
Mitsuhiro Tanda 20d94f9703 support alertmanager 2017-12-13 19:17:00 +01:00
Mitsuhiro Tanda e8a6af7b22 fix templating undefined error (#10004) 2017-12-02 17:21:21 +01:00
Mitsuhiro Tanda 98bb8bf761 prometheus nested query support 2017-11-29 18:34:44 +09:00
Mitsuhiro Tanda 52e1c4113b fix cloudwatch ec2_instance_attribute (#9718)
* fix cloudwatch ec2_instance_attribute

* add test

* minor fix
2017-11-13 13:07:46 +01:00
Mitsuhiro Tanda 6488ccd113 return empty array for no datapoints 2017-11-12 00:48:54 +09:00
Mitsuhiro Tanda ae4bcdd54b fix query inspector for cloudwatch 2017-11-12 00:41:14 +09:00
Mitsuhiro Tanda e46814ba05 fix date test (#9811) 2017-11-08 11:01:19 +01:00
Mitsuhiro Tanda 4a63d696ff fix default alias 2017-11-01 18:48:30 +09:00