mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugin: AzureMonitor - Reapply MetricNamespace support (#17282)
* Reapply MetricNamespace support * Fixing tests * refactor: move metricnamespace param to backend * refactor: remove unused function * azuremonitor: migration for new metric namespace field * azuremonitor: add template query for metric namespace with a sub * docs: template queries for azure monitor Adds new lines for the metricnamespace template function and fixes some messed up lines
This commit is contained in:
committed by
Daniel Lee
parent
9f415e84b4
commit
bc0da1bbfc
@@ -123,17 +123,19 @@ Note that the Azure Monitor service does not support multiple values yet. If you
|
||||
|
||||
The Azure Monitor Datasource Plugin provides the following queries you can specify in the `Query` field in the Variable edit view. They allow you to fill a variable's options list.
|
||||
|
||||
| Name | Description |
|
||||
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| _Subscriptions()_ | Returns a list of subscriptions. |
|
||||
| _ResourceGroups()_ | Returns a list of resource groups. |
|
||||
| _ResourceGroups(12345678-aaaa-bbbb-cccc-123456789aaa)_ | Returns a list of resource groups for a specified subscription. |
|
||||
| _Namespaces(aResourceGroup)_ | Returns a list of namespaces for the specified resource group. |
|
||||
| _Namespaces(12345678-aaaa-bbbb-cccc-123456789aaa, aResourceGroup)_ | Returns a list of namespaces for the specified resource group and subscription. |
|
||||
| _ResourceNames(aResourceGroup, aNamespace)_ | Returns a list of resource names. |
|
||||
| _ResourceNames(12345678-aaaa-bbbb-cccc-123456789aaaaResourceGroup, aNamespace)_ | Returns a list of resource names for a specified subscription. |
|
||||
| _MetricNames(aResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric names. |
|
||||
| _MetricNames(12345678-aaaa-bbbb-cccc-123456789aaaaResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric names for a specified subscription. |
|
||||
| Name | Description |
|
||||
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
||||
| _Subscriptions()_ | Returns a list of subscriptions. |
|
||||
| _ResourceGroups()_ | Returns a list of resource groups. |
|
||||
| _ResourceGroups(12345678-aaaa-bbbb-cccc-123456789aaa)_ | Returns a list of resource groups for a specified subscription. |
|
||||
| _Namespaces(aResourceGroup)_ | Returns a list of namespaces for the specified resource group. |
|
||||
| _Namespaces(12345678-aaaa-bbbb-cccc-123456789aaa, aResourceGroup)_ | Returns a list of namespaces for the specified resource group and subscription. |
|
||||
| _ResourceNames(aResourceGroup, aNamespace)_ | Returns a list of resource names. |
|
||||
| _ResourceNames(12345678-aaaa-bbbb-cccc-123456789aaa, aResourceGroup, aNamespace)_ | Returns a list of resource names for a specified subscription. |
|
||||
| _MetricNamespace(aResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric namespaces. |
|
||||
| _MetricNamespace(12345678-aaaa-bbbb-cccc-123456789aaa, aResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric namespaces for a specified subscription. |
|
||||
| _MetricNames(aResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric names. |
|
||||
| _MetricNames(12345678-aaaa-bbbb-cccc-123456789aaa, aResourceGroup, aNamespace, aResourceName)_ | Returns a list of metric names for a specified subscription. |
|
||||
|
||||
Examples:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user