/usr/share/grafana/public/app/plugins/datasource/azuremonitor
Format the legend keys any way you want by using alias patterns. - Example for Azure Monitor: `dimension: {{dimensionvalue}}` - Example for Application Insights: `server: {{groupbyvalue}}` #### Alias Patterns for Application Insights - {{groupbyvalue}} = replaced with the value of the group by - {{groupbyname}} = replaced with the name/label of the group by - {{metric}} = replaced with metric name (e.g. requests/count) #### Alias Patterns for Azure Monitor - {{resourcegroup}} = replaced with the value of the Resource Group - {{namespace}} = replaced with the value of the Namespace (e.g. Microsoft.Compute/virtualMachines) - {{resourcename}} = replaced with the value of the Resource Name - {{metric}} = replaced with metric name (e.g. Percentage CPU) - {{dimensionname}} = replaced with dimension key/label (e.g. blobtype) - {{dimensionvalue}} = replaced with dimension value (e.g. BlockBlob) #### Filter Expressions for Application Insights The filter field takes an OData filter expression. Examples: - `client/city eq 'Boydton'` - `client/city ne 'Boydton'` - `client/city ne 'Boydton' and client/city ne 'Dublin'` - `client/city eq 'Boydton' or client/city eq 'Dublin'` #### Writing Queries for Template Variables See the [docs](https://github.com/grafana/azure-monitor-datasource#templating-with-variables) for details and examples.
.
Edit
..
Edit
CHANGELOG.md
Edit
README.md
Edit
azureMetadata
Edit
azure_log_analytics
Edit
azure_monitor
Edit
azure_resource_graph
Edit
components
Edit
credentials.ts
Edit
dashboards
Edit
dataquery.cue
Edit
dataquery.gen.ts
Edit
datasource.test.ts
Edit
datasource.ts
Edit
dist
Edit
e2e
Edit
grafanaTemplateVariableFns.ts
Edit
grafanaTemplateVariables.test.ts
Edit
i18next.config.ts
Edit
img
Edit
jest-setup.js
Edit
jest.config.js
Edit
locales
Edit
mocks
Edit
module.test.ts
Edit
module.ts
Edit
package.json
Edit
plugin.json
Edit
project.json
Edit
query_help.md
Edit
resourcePicker
Edit
time_grain_converter.test.ts
Edit
time_grain_converter.ts
Edit
tracking.ts
Edit
tsconfig.json
Edit
types
Edit
utils
Edit
variables.test.ts
Edit
variables.ts
Edit
webpack.config.ts
Edit