Axel Pirek
dd09ece8c9
Make max open, max idle connections and connection max life time configurable
2018-10-02 13:42:06 +02:00
David Kaltschmidt
54c9beb146
Explore: jump to explore from panels with mixed datasources
...
- extends handlers for panel menu and keypress 'x'
- in a mixed-datasource panel finds first datasource that supports
explore and collects its targets
- passes those targets to the found datasource to be serialized for
explore state
- removed `supportMetrics` and `supportsExplore`
- use datasource metadata instead (set in plugin.json)
- Use angular timeout to wrap url change for explore jump
- Extract getExploreUrl into core/utils/explore
2018-10-01 12:03:57 +02:00
Daniel Lee
cf0189ab1a
stackdriver: no tags for annotations (yet)
...
fixes glitch where an empty tag shows up
2018-09-28 19:17:34 +02:00
Daniel Lee
296fd35d47
stackdriver: add help section for annotations
2018-09-28 19:12:50 +02:00
Daniel Lee
a1f486bbfa
stackdriver: revert an accidental commit for text template variable
...
with dummy change in readme to be able to make a commit
2018-09-28 18:19:57 +02:00
Daniel Lee
399e83f91b
stackdriver: remove metric.category alias pattern
...
After discussions with the Stackdriver team, they did not think this was
needed.
2018-09-28 17:16:35 +02:00
Erik Sundell
a25389332c
stackdriver: remove commented code
2018-09-28 17:11:06 +02:00
Erik Sundell
db8bbe3cad
stackdriver: unit test group by and aggregation dropdown changes
2018-09-28 17:06:24 +02:00
Erik Sundell
3572692fd5
stackdriver: make it impossible to select no aggregation when a group by is selected
2018-09-28 16:55:39 +02:00
Erik Sundell
cdcb14f3e6
Merge branch 'stackdriver-plugin' of https://github.com/grafana/grafana into stackdriver-plugin
2018-09-28 16:37:11 +02:00
Erik Sundell
fc1e214987
stackdriver: add relevant error message for when a user tries to create a template variable
2018-09-28 16:36:43 +02:00
Daniel Lee
aedd518186
Merge remote-tracking branch 'origin/stackdriver-plugin' into stackdriver-plugin
2018-09-28 16:34:28 +02:00
Daniel Lee
9b90b835b2
Merge remote-tracking branch 'origin/master' into stackdriver-plugin
2018-09-28 16:20:40 +02:00
Erik Sundell
31ddcdb37e
stackdriver: make sure labels are loaded when service is changed in dropdown
2018-09-28 16:20:16 +02:00
Erik Sundell
4abd04a5cf
stackdriver: use correct default value for alignment period
2018-09-28 15:23:13 +02:00
Erik Sundell
f384e577dd
stackdriver: fix reducer names
2018-09-28 15:11:33 +02:00
Erik Sundell
5bc6d857a7
stackdriver: broadcasting through $scope doesnt work anymore since query_filter_ctrl is now a sibling directive to query_aggregation_ctrl, so broadcasting is now done using $rootScope
2018-09-28 11:25:32 +02:00
Steve Kreitzer
55e4db5cfc
Adding AWS Isolated Regions
2018-09-27 19:58:07 -04:00
Erik Sundell
9351b56e57
stackdriver: fix alignment period bug
2018-09-27 15:59:17 +02:00
Erik Sundell
a028df658a
stackdriver: set first metric as selected if no metric could be retrieved from the target
2018-09-27 15:42:01 +02:00
Daniel Lee
03b43ab769
stackdriver: wip annotation support
2018-09-27 15:18:10 +02:00
Erik Sundell
26d9e9243a
stackdriver: resolve merge conflict
2018-09-27 15:14:01 +02:00
Erik Sundell
a3b0539754
stackdriver: update tests
2018-09-27 15:05:47 +02:00
Erik Sundell
81bdf86bf8
stackdriver: es6 style directive, avoid using scope
2018-09-27 15:05:26 +02:00
Erik Sundell
8ae72bce07
stackdriver: fix typescript error
2018-09-27 14:45:15 +02:00
Erik Sundell
a7897575b9
stackdriver: remove not needed alignment option
2018-09-27 14:43:30 +02:00
Daniel Lee
ea1859a374
stackdriver: extract out filter, metric type directive
2018-09-27 14:31:39 +02:00
Erik Sundell
92f50ca384
stackdriver: add unit tests to resolve unit function
2018-09-27 14:24:28 +02:00
Erik Sundell
251bb09aed
stackdriver: convert most common stackdriver units to grafana units if possible
2018-09-27 14:03:52 +02:00
Erik Sundell
e2bda4d321
stackdriver: fix typescript errors
2018-09-27 10:55:11 +02:00
Erik Sundell
b724ca5b93
stackdriver: pass interval from panel to backend
2018-09-27 10:42:28 +02:00
Daniel Lee
66c95991c1
Merge remote-tracking branch 'origin/master' into stackdriver-plugin
2018-09-26 17:59:56 +02:00
Erik Sundell
c3780d09d4
stackdriver: workaround for the fact the jest definitions does not include not
2018-09-26 17:56:45 +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
cb90b638d7
stackdriver: remove montly from alignment periods
2018-09-26 15:22:07 +02:00
Erik Sundell
dde033c14a
stackdriver: add alignemnt period
2018-09-26 15:03:44 +02:00
Erik Sundell
b883d7c1f3
stackdriver: make sure service and metric display name is used instead of value when loading a saved query editor
2018-09-26 15:01:02 +02:00
Erik Sundell
2965f58838
stackdriver: use correct event name
2018-09-26 13:42:53 +02:00
Erik Sundell
85fce84087
stackdriver: fix broken tests
2018-09-26 13:39:03 +02:00
Erik Sundell
1a91e0baf6
stackdriver: update aggregation and alignment before refreshing when changing metric
2018-09-26 13:22:20 +02:00
Erik Sundell
508601c28c
stackdriver: use correct naming convention
2018-09-26 11:23:46 +02:00
Erik Sundell
186dcc001c
Merge branch 'stackdriver-plugin' of https://github.com/grafana/grafana into stackdriver-plugin
2018-09-26 11:17:52 +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
Sven Klemm
9dbdc29118
filter NULL values for column value suggestions
2018-09-26 10:56:25 +02:00
Daniel Lee
0a77cd5569
stackdriver: adds on-change with debounce for alias by field
2018-09-26 00:33:18 +02:00
Erik Sundell
2d602bfcf3
stackdriver: improve aggregation logic
2018-09-25 17:03:10 +02:00
Erik Sundell
38e32a902e
stackdriver: fix failing test
2018-09-25 16:51:39 +02:00
Erik Sundell
3f7314831f
stackdriver: wip: split metric dropdown into two parts - resource and metric
2018-09-25 16:51:12 +02:00
Erik Sundell
a41c5f7b37
stackdriver: remove console.log
2018-09-25 16:40:15 +02:00
Erik Sundell
7f43909390
stackdriver: typescriptifying controller
2018-09-25 15:16:33 +02:00
Erik Sundell
b6a918ba79
stackdriver: merge commit
2018-09-25 15:13:24 +02:00
Erik Sundell
7666e7bfe3
stackdriver: break out aggretation logic into its own directive and controller. also adds tests for new dropdown population logic
2018-09-25 14:42:47 +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
Daniel Lee
1aba5f814b
stackdriver: fix test after parameter added to constructor
2018-09-24 16:05:16 +02:00
Daniel Lee
fbc1af6cd5
stackdriver: better error handling for getLabels
2018-09-24 15:40:10 +02:00
Daniel Lee
c9ee05422f
stackdriver: move getLabels from query_ctrl to datasource
...
so can reuse for annotation query ctrl.
2018-09-24 15:26:49 +02:00
Daniel Lee
e101bcdb13
stackdriver: fix bug when multiple projects connected to service account
...
We had incorrectly assumed that a service account could only be connected
to one project.
2018-09-24 10:17:06 +02:00
Daniel Lee
636d8421d0
stackdriver: refactoring - extract out filtersegments component
2018-09-24 00:59:28 +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
Marcus Efraimsson
87bee3d983
Merge branch 'master' into patch-1
2018-09-21 16:55:09 +02:00
Torkel Ödegaard
94ee39291f
added beta notice
2018-09-21 11:28:19 +02:00
Torkel Ödegaard
c282f39121
Merge branch 'master' into stackdriver-plugin
2018-09-21 10:17:13 +02:00
David Kaltschmidt
377bc44062
Explore: dont rate-hint on rate queries
2018-09-20 16:59:06 +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
Torkel Ödegaard
5b52225450
wip: panel options idea2
2018-09-20 09:01:06 +02:00
Marcus Efraimsson
28ff8a6716
Merge pull request #13342 from svenklemm/unnest
...
Don't use unnest in queries for redshift compatibility
2018-09-19 16:08:23 +02:00
David Kaltschmidt
6aac8610eb
Explore: Fix click to filter for recording rule expressions
...
- recording rule names contain ':'
- include this in the pattern for metric names
2018-09-19 11:45:55 +02:00
Sven Klemm
e07513bd65
Don't use unnest in queries for redshift compatibility
2018-09-19 10:59:25 +02:00
Daniel Lee
e05b86375b
stackdriver: remove hardcoding of test project name
2018-09-18 16:02:38 +02:00
Torkel Ödegaard
be3b684140
Merge branch 'master' into react-panels
2018-09-18 15:19:43 +02:00
Erik Sundell
7b8ea5fc54
stackdriver: improve query look
2018-09-17 17:34:01 +02:00
Erik Sundell
cfb8017567
stackdriver: add alignment period to query controller
2018-09-17 17:16:14 +02:00
Erik Sundell
549b4fc0ae
stackdriver: adds advanced options collapse to query editor with the possibility to select secondary aggregation and alignment
2018-09-17 14:32:49 +02:00
Erik Sundell
f243da756b
stackdriver: fix init labels bug
2018-09-17 11:28:10 +02:00
Carl Bergquist
f22f1d46c8
Merge pull request #10163 from grafana/9587_annotation_tags_wih_temp_var
...
annotations: allows template variables to be used in tag filter
2018-09-17 10:34:38 +02:00
Daniel Lee
0b41303e10
stackdriver: improve query editor to handle no data better
2018-09-14 19:28:48 +02:00
Daniel Lee
12da19695f
stackdriver: fixes in query editor
2018-09-14 17:47:39 +02:00
Erik Sundell
b30d3fb5a1
stackdriver: makes sure filter dropdown doesnt crash if clicked before values are loaded
2018-09-14 17:19:15 +02:00
Erik Sundell
fa6e31c6d5
stackdriver: adds null check to query
2018-09-14 17:01:27 +02:00
Daniel Lee
dc6d025d9a
stackdriver: add filters to query editor
...
WIP -> Backend not implemented yet.
2018-09-14 15:44:12 +02:00
Erik Sundell
9b4a25ed21
stackdriver: fixes remove option in filter
2018-09-14 11:24:02 +02:00
Daniel Lee
b5800ffea9
stackdriver: wip - filters for query editor
2018-09-14 09:39:17 +02:00
Daniel Lee
e2e95589e3
stackdriver: adds remove group by option
...
Adds a -- remove group by -- option to the group by
segment. When chosen it removes the group by.
2018-09-14 09:39:17 +02:00
Daniel Lee
d0a565d853
stackdriver: improve segments for group bys in query editor
2018-09-14 09:39:17 +02:00
Erik Sundell
add23d9716
stackdriver: load time series meta data for group by dropdown
2018-09-14 09:39:17 +02:00
Erik Sundell
37fe488b69
stackdriver: fix failing test
2018-09-14 09:39:17 +02:00
Erik Sundell
3f4942418e
stackdriver: test get metric types
2018-09-14 09:39:17 +02:00
Daniel Lee
9c8593e71f
stackdriver: wip - group bys
2018-09-14 09:39:16 +02:00
Daniel Lee
c71970baa9
stackdriver: update logo
2018-09-14 09:39:16 +02:00
Daniel Lee
b8231b2903
stackdriver: ux for config page, docs updated
2018-09-14 09:39:16 +02:00
Daniel Lee
11c45002f8
stackdriver: add simple readme
2018-09-14 09:38:16 +02:00
Daniel Lee
f4fe26c659
stackdriver: adds support for primary aggregations
...
WIP: Hardcoded values for the aligner and alignment period. Need
to set the aligment period to the closest min interval and
research the aligner more.
2018-09-14 09:38:16 +02:00
Daniel Lee
0b5783563e
stackdriver: better error handling and show query metadata
...
If the Stackdriver returns an error, show that error in the query
editor. Also, allow the user to see the raw querystring that was sent
to google (for troubleshooting).
2018-09-14 09:38:16 +02:00
Daniel Lee
2683699ab4
stackdriver: tests for parsing api response
2018-09-14 09:38:16 +02:00
Erik Sundell
95a6838f06
Stackdriver: Fix weird assignment
2018-09-14 09:38:16 +02:00
Erik Sundell
2d52e5d26c
Stackdriver: Use metric type from query controller state
2018-09-14 09:38:16 +02:00
Erik Sundell
191b6cc32c
Stackdriver: Set target correctly
2018-09-14 09:38:16 +02:00
Erik Sundell
97727d167b
Stackdriver: Add backed query using
2018-09-14 09:38:16 +02:00
Erik Sundell
73a42df046
Stackdriver: Prettify json
2018-09-14 09:38:16 +02:00
Erik Sundell
f09f5b28d7
Stackdriver: Move data to target
2018-09-14 09:38:16 +02:00
Erik Sundell
75c002645c
Stackdriver: Loads project name and metrics descriptions into the query controller
2018-09-14 09:35:27 +02:00
Erik Sundell
684aa3ff33
Stackdriver: Corrected field title and removed debug logging
2018-09-14 09:35:27 +02:00
Erik Sundell
533891c03e
Stackdriver: Improved feedback for when a JWT is already uploaded in the ds config page
2018-09-14 09:35:27 +02:00
Daniel Lee
e7648c4070
dsproxy: implements support for plugin routes with jwt file
...
Google Cloud service accounts use a JWT token to get an
oauth access token. This adds support for that.
2018-09-14 09:35:27 +02:00
Erik Sundell
ba7a69dfc4
Stackdriver: Added test for getProjects
2018-09-14 09:35:27 +02:00
Erik Sundell
5bee38ed69
Stackdriver: Refactored api call to google resource manager
2018-09-14 09:35:27 +02:00
Erik Sundell
f6c18cf788
Stackdriver: Fixed error message from google resource manager
2018-09-14 09:35:26 +02:00
Erik Sundell
55824dc4d8
Removes comment
2018-09-14 09:35:26 +02:00
Erik Sundell
aff1de9892
Adds skeleton for loading projects from google resource manager
2018-09-14 09:35:26 +02:00
Erik Sundell
6840968780
Adds unit tests to test datasource
2018-09-14 09:35:26 +02:00
Erik Sundell
f9b7524423
Implemented datasource test
2018-09-14 09:35:26 +02:00
Erik Sundell
b71e7f33c3
Improved user experience
2018-09-14 09:35:26 +02:00
Erik Sundell
f0f19e0c03
Adds stackdriver frontend skeleton
2018-09-14 09:33:50 +02:00
Tianon Gravi
74912dca8d
Fix gauge display accuracy for "percent (0.0-1.0)"
...
The "Decimals" value was incorrectly applied to the metric value used to calculate the gauge display in addition to the text value (so a "Decimals" value of "1" turns "45.1%" into "50%" in the gauge display even though the label still correctly says "45.1%").
2018-09-13 15:41:49 -07:00
bergquist
aed8208d78
renames PartialMatch to MatchAny
2018-09-13 15:15:42 +02: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
David
e4496080ff
Merge pull request #12251 from mtanda/prometheus_use_matchers_for_completion
...
(prometheus) get label name/value from series API
2018-09-13 11:48:13 +02:00
David
a5bcd4b8e4
Adhoc-filtering for prometheus dashboards ( #13212 )
...
* Basic adhoc-filtering support for prometheus
2018-09-12 18:10:57 +02:00
bergquist
835a75335c
Merge branch 'master' into 9587_annotation_tags_wih_temp_var
...
* master:
fix theme parameter not working problem while prefer theme set to light (#13232 )
fix: added type export to fix failing test
fix: fixed typescript test error
another circleci fix
Another circleci fix
changed gometalinter to use github master
commented out metalinter as gopkg is having issues
Fix prometheus label filtering for comparison queries (#13213 )
Upgrade react and enzyme (#13224 )
Teams page replace mobx (#13219 )
upgrade of typescript and tslint and jest (#13223 )
fix nil pointer dereference (#13221 )
2018-09-12 09:23:54 +02:00
David
d8a702cba3
Fix prometheus label filtering for comparison queries ( #13213 )
...
- Now supports click filtering for queries like `metric > 0.1`
2018-09-11 16:57:43 +02:00
bergquist
1638c6bea1
enable partial tag matches for annotations
2018-09-11 15:50:04 +02:00
bergquist
19c7dd9834
support template variables with multiple values
2018-09-11 14:25:25 +02:00
bergquist
6ba5550f5f
renames jest files to match new convention
2018-09-11 14:09:08 +02:00
bergquist
abd5a74e4c
Merge branch 'master' into 9587_annotation_tags_wih_temp_var
...
* master: (3328 commits)
removes protoc from makefile
changelog: note about closing #11681
Adding Centrify configuration for Oauth
refactor: moved stuff into new features dir manage-dashboards
move: moved styleguide to admin
fix: fixed singlestat test broken due to file move
moved folders from features into the main feature folder they belong to
Add jsonnet with grafonnet-lib to provisioning docs
fix: Dashboard permissions now shows correctly, fixes #13201
Update CHANGELOG.md
redux: do not use redux logger middleware in production builds
Allow oauth email attribute name to be configurable (#13006 )
Document required order for time series queries (#13204 )
refactor: changed AlertRuleItem pause action to callback
Fix query builder queries for interval start
renaming things in admin
release 5.2.4
changelog: release 5.2.4
refactoring: custom scrollbars PR updated, #13175
changelog: add notes about closing #13121
...
2018-09-11 11:04:29 +02:00
Torkel Ödegaard
df822a660b
initial render/refresh timing issues
2018-09-10 16:19:28 +02:00
Torkel Ödegaard
100ab0ba23
Merge branch 'master' into react-panels
2018-09-10 15:42:36 +02:00
Torkel Ödegaard
0f98dcdef0
fix: fixed singlestat test broken due to file move
2018-09-10 13:34:33 +02:00
Marcus Efraimsson
3fe3f3741f
Merge pull request #13200 from svenklemm/postgres-query-builder-fixes
...
Fix query builder queries for interval start
2018-09-10 13:01:17 +02:00
Marcus Efraimsson
227bf85e5e
Merge pull request #13184 from svenklemm/postgres-interval_ms
...
Fix postgres quoting to handle non-string values
2018-09-10 12:43:10 +02:00
Torkel Ödegaard
267b96cb48
Merge branch 'master' of github.com:grafana/grafana
2018-09-10 09:54:30 +02:00
Sven Klemm
7c78b64a36
Document required order for time series queries ( #13204 )
2018-09-10 09:33:06 +02:00
Sven Klemm
116fb50530
Fix query builder queries for interval start
...
This changes the rate and increase queries to not calculate
a value when there is no previous value. This also adds an
order by metric column to prevent inconsistent series ordering
in the legend.
2018-09-08 08:28:15 +02:00
Torkel Ödegaard
4391209f7b
Merge branch 'master' into redux-poc2
2018-09-07 14:49:05 +02:00
Sven Klemm
6b863e3b0f
Fix quoting to handle non-string values
2018-09-07 10:21:10 +02:00
Marcus Efraimsson
26756f86aa
Merge pull request #13148 from svenklemm/postgres-min-interval
...
Add min time interval support for SQL datasources
2018-09-06 14:05:39 +02:00
Patrick O'Carroll
2b74b1c4d6
added radix rule and changed files to follow rule ( #13153 )
2018-09-05 16:51:31 +02:00
Patrick O'Carroll
25f13bd3ad
added only-arrow-functions rule and changed files to follow new rule ( #13154 )
2018-09-05 15:28:30 +02:00
Torkel Ödegaard
0aea60bf17
Merge branch 'master' into redux-poc2
2018-09-05 12:11:11 +02:00
Torkel Ödegaard
c9ae585d2a
Merge branch '12918-no-conditional-assignment'
2018-09-05 12:09:32 +02:00
Sven Klemm
cb526d4557
Add min time interval to mysql and mssql
2018-09-05 12:02:57 +02:00
Torkel Ödegaard
00c0b71f3d
Merge branch '12918-only-arrow-functions4'
2018-09-05 11:46:54 +02:00
Torkel Ödegaard
432e203df1
Merge branch '12918-only-arrow-functions3'
2018-09-05 11:26:30 +02:00
Patrick O'Carroll
777010b20b
added no-conditional-assignment rule and changed files to follow new rule
2018-09-05 10:53:58 +02:00
Sven Klemm
e2c7b010ac
fix test failures for timeInterval
2018-09-05 10:03:16 +02:00
Sven Klemm
a95453036b
Add min time interval to postgres datasource
2018-09-05 09:46:22 +02:00
Patrick O'Carroll
dc4f547a40
Changed functions to arrow functions for only-arrow-functions rule.
2018-09-04 17:02:32 +02:00
Patrick O'Carroll
0f326f18dc
changed functions to arrowfunctions for only-arrow-functions rule ( #13127 )
2018-09-04 15:55:41 +02:00