Commit Graph
133 Commits
Author SHA1 Message Date
Ryan McKinley 1d8786e3a6 DataSource Plugins: consistent generics order <TQuery,TOptions> (#16936)
* consistent TQuery,TOptions

* add json for azure

* cloudwatch
2019-05-08 09:37:50 +02:00
Daniel Lee befa40ef3a AzureMonitor: adds support for multiple subscriptions per datasource (#16922)
* chore: AzureMonitor typescript typings

Removes some types and using @grafana/ui types instead.
Adds some typing for the AzureMonitor query.

Also adds a getSubscriptions function that will used in the query
editor.

* fix: AzureMonitor adds back editor for annotation queries

This must have been broken for a month or more. Now possible to
edit annotation queries again.

* feat: Azure Monitor - support for multiple subscriptions

Adds a new dropdown for subscriptions in the query editor.

Defaults to the subscription id in jsonData for queries
that have no subscription id.

* feat: adds Azure Logs multi subscriptions support

The subscription id is needed for fetching the list of
workspaces. Adds support to the Log Analytics datasource
and to the annotations for Log Analytics to be able to
choose between multiple subscriptions.

* feat: AzureMonitor config page with multiple subs

Adds support for multiple subscriptions for the different
variations of configuring Azure Monitor and Azure Logs.

To be able to show a list of subscriptions, the config
has to be saved first - the plugin route fetches the
tenant id, client id and client secret from the database
so a call to get subscriptions requires that those
fields are saved first. If the page has not saved then
the use can manually paste in a subscription id.

* feat: support for multi subs in Azure Monitor variables

Adds an optional subscription parameter to the template
variable macros. Also adds a Subscriptions macro.

* fix: remove some implicit anys from tests
2019-05-07 15:45:15 +02:00
Hugo Häggmark 7eabc282e9 Chore: Adds typings to lodash (#16590) 2019-04-15 12:11:52 +02:00
Johannes Schill e7297fef06 fix: Add class for input fields with help icon to avoid icon hiding the text #15771 2019-03-06 14:45:13 +01:00
Dominik Prokop 88a46e6dd4 Bump Prettier version (#15532)
* Fix prettier version to 1.16.4
2019-02-19 15:41:35 +01:00
Torkel Ödegaard cfea8bdcae Prettier had not been running as a precommit hook for some time so had to run in on all files again 2019-02-13 11:14:53 +01:00
Daniel Lee 1c364b57b5 Merge pull request #15353 from grafana/14623-azure-monitor-alerting
Adds alerting for the Azure Monitor API in the Azure Monitor datasource
2019-02-11 15:16:32 +01:00
Daniel Lee 52fe6b0316 Merge pull request #15198 from CorpGlory/azure-monitor-refactor-#15087
Azure Monitor: refactor #15087
2019-02-11 14:19:42 +01:00
Daniel Lee 10194df112 azuremonitor: simple alerting for Azure Monitor API
Lots of edge cases and functionality left to implement but
a simple query works for alerting now.
2019-02-08 18:15:17 +01:00
Alexander Zobnin e4446f0340 azuremonitor: improve autocomplete UX 2019-02-06 13:52:35 +03:00
Alexander Zobnin 4caea91164 azuremonitor: fix autocomplete menu height 2019-02-06 13:19:17 +03:00
Alexander Zobnin 181b4f9e80 azuremonitor: improve autocomplete experence 2019-02-05 14:39:24 +03:00
Alexander Zobnin 4b5bfd3da5 azuremonitor: more autocomplete suggestions for built-in functions 2019-02-05 14:01:06 +03:00
Alexander Zobnin 99ff8e68ff azuremonitor: fix where suggestions 2019-02-04 19:23:29 +03:00
Alexander Zobnin dd8ca70151 azuremonitor: use kusto editor for App Insights 2019-02-04 18:51:56 +03:00
Alexander Zobnin ad821cf629 azuremonitor: where clause autocomplete 2019-02-04 14:11:49 +03:00
Alexander Zobnin df9ecc6816 azuremonitor: don't go back to dashboard if escape pressed in the editor 2019-02-04 14:11:49 +03:00
Alexander Zobnin 0c3657da7e azuremonitor: suggest tables initially 2019-02-04 14:11:49 +03:00
Alexander Zobnin f2d2712a95 azuremonitor: add more builtin functions and operators 2019-02-04 14:11:49 +03:00
corpglory-dev 6d03766ace Remove extra newline 2019-02-01 14:54:38 +03:00
corpglory-dev 9a3f4def98 Use slate-plugins from app/features/explore 2019-02-01 14:49:04 +03:00
corpglory-dev bdd59de877 Remove newline && runner plugins 2019-02-01 14:47:33 +03:00
corpglory-dev cf60ae79c3 Move prism to app/features/explore 2019-02-01 14:47:17 +03:00
corpglory-dev ce2209585c Remove version.ts 2019-02-01 14:32:40 +03:00
Daniel Lee 2d3e02d58b azuremonitor: adds macros to slate intellisense
and adds tab as well as enter key for autocomplete
2019-01-29 15:02:46 +01:00
Alexander Zobnin a1609a8d53 azuremonitor: remove wrong completions 2019-01-29 16:03:30 +03:00
Alexander Zobnin a0cae98e0d azuremonitor: autocomplete on enter 2019-01-29 16:02:25 +03:00
Alexander Zobnin 2a1558cefc azuremonitor: fix tests 2019-01-29 15:39:16 +03:00
Alexander Zobnin fefb2c2ba2 Azure Monitor: replace monaco by slate with initial Kusto syntax 2019-01-29 14:19:31 +03:00
Alexander Zobnin 96ffa9d797 monaco-kusto: fix imports 2019-01-25 11:23:46 +03:00
Alexander Zobnin 00de497663 Azure Monitor: build monaco with webpack WIP 2019-01-24 18:43:48 +03:00
Daniel Lee 44c07eb2e9 azuremonitor: guard for when switching from monaco editor
before it has fully loaded.
2019-01-17 10:55:03 +01:00
Daniel Lee dd96f2a522 azuremonitor: move files into grafana
Initial port of the code from the plugin - lots of small things to fix.
2019-01-17 10:55:03 +01:00