2025-04-01 10:38:02 +09:00

2565 lines
71 KiB
JSON

{
"__inputs": [],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.7"
},
{
"type": "datasource",
"id": "grafana-azure-monitor-datasource",
"name": "Azure Monitor",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "The dashboard provides insights of Azure Key Vaults overview, failures and operations.",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"collapsed": false,
"datasource": {
"uid": "${ds}"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 25,
"panels": [],
"targets": [
{
"datasource": {
"uid": "${ds}"
},
"refId": "A"
}
],
"title": "Overview",
"type": "row"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "green"
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 1
},
"id": 9,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Average",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "Availability",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
},
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "P1D",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"hide": false,
"queryType": "Azure Monitor",
"refId": "B",
"subscription": "$sub"
},
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Average",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiLatency",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "P1D",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"hide": false,
"queryType": "Azure Monitor",
"refId": "C",
"subscription": "$sub"
}
],
"title": "Availability, Requests and Latency",
"type": "stat"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 8
},
"id": 11,
"options": {
"legend": {
"calcs": ["sum"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiHit",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Transactions Over Time",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "ms"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 8
},
"id": 13,
"options": {
"legend": {
"calcs": ["mean"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Average",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiLatency",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Overall Latency",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 8
},
"id": 15,
"options": {
"legend": {
"calcs": ["mean"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Average",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "Availability",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Availability",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 8
},
"id": 17,
"options": {
"legend": {
"calcs": ["sum"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiHit",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Request Types over Time",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"uid": "${ds}"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
},
"id": 23,
"panels": [],
"targets": [
{
"datasource": {
"uid": "${ds}"
},
"refId": "A"
}
],
"title": "Failures",
"type": "row"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 17
},
"id": 2,
"options": {
"legend": {
"calcs": ["sum"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [
{
"dimension": "StatusCodeClass",
"filters": ["2xx"],
"operator": "eq"
}
],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": ""
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Successes (2xx)",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 17
},
"id": 7,
"options": {
"legend": {
"calcs": ["sum"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [
{
"dimension": "StatusCodeClass",
"filters": ["4xx"],
"operator": "eq"
}
],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Failures (4xx)",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 12,
"y": 17
},
"id": 6,
"options": {
"legend": {
"calcs": ["mean"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [
{
"dimension": "StatusCode",
"filters": ["429"],
"operator": "eq"
}
],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Throttling (429)",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 18,
"y": 17
},
"id": 4,
"options": {
"legend": {
"calcs": ["sum"],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [
{
"dimension": "StatusCode",
"filters": ["401"],
"operator": "eq"
}
],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Monitor",
"refId": "A",
"subscription": "$sub"
},
{
"azureMonitor": {
"aggOptions": ["None", "Average", "Minimum", "Maximum", "Total", "Count"],
"aggregation": "Count",
"allowedTimeGrainsMs": [60000, 300000, 900000, 1800000, 3600000, 21600000, 43200000, 86400000],
"dimensionFilters": [
{
"dimension": "StatusCode",
"filters": ["403"],
"operator": "eq"
}
],
"dimensions": [
{
"text": "Activity Type",
"value": "ActivityType"
},
{
"text": "Activity Name",
"value": "ActivityName"
},
{
"text": "Status Code",
"value": "StatusCode"
},
{
"text": "Status Code Class",
"value": "StatusCodeClass"
}
],
"metricDefinition": "Microsoft.KeyVault/vaults",
"metricName": "ServiceApiResult",
"metricNamespace": "Microsoft.KeyVault/vaults",
"resources": [
{
"resourceGroup": "$rg",
"resourceName": "$resource"
}
],
"timeGrain": "auto",
"timeGrains": [
{
"text": "auto",
"value": "auto"
},
{
"text": "1 minute",
"value": "PT1M"
},
{
"text": "5 minutes",
"value": "PT5M"
},
{
"text": "15 minutes",
"value": "PT15M"
},
{
"text": "30 minutes",
"value": "PT30M"
},
{
"text": "1 hour",
"value": "PT1H"
},
{
"text": "6 hours",
"value": "PT6H"
},
{
"text": "12 hours",
"value": "PT12H"
},
{
"text": "1 day",
"value": "P1D"
}
],
"top": "10"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"hide": false,
"queryType": "Azure Monitor",
"refId": "B",
"subscription": "$sub"
}
],
"title": "Authentication Errors (401 & 403)",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"uid": "${ds}"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 25
},
"id": 21,
"panels": [],
"targets": [
{
"datasource": {
"uid": "${ds}"
},
"refId": "A"
}
],
"title": "Operations",
"type": "row"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 0,
"y": 26
},
"id": 19,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"query": "let rawData = AzureDiagnostics \r\n // Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n | where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n | where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r\n // Create ResultStatus with all the 'success' results bucked as 'Success'\r\n // Certain operations like StorageAccountAutoSyncKey have no ResultSignature, for now set to 'Success' as well\r\n | extend ResultStatus = case (ResultSignature == \"\", \"Success\",\r\n ResultSignature == \"OK\", \"Success\",\r\n ResultSignature == \"Accepted\", \"Success\",\r\n ResultSignature); \r\nrawData \r\n| make-series Trend = count() default = 0 on TimeGenerated from ago(1d) to now() step 30m by ResultStatus\r\n| join kind = inner (rawData\n | where $__timeFilter(TimeGenerated)\r\n | summarize Count = count() by ResultStatus\r\n )\r\n on ResultStatus\n \r\n\r\n| project ResultStatus, Count, Trend\r\n| order by Count desc;\r",
"resultFormat": "table",
"workspace": "$ws"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Success Operations",
"type": "stat"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "points",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 6,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "always",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 8,
"x": 4,
"y": 26
},
"id": 35,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"dashboardTime": false,
"query": "let rawData = AzureDiagnostics \r\n // Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n | where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n | where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r\n // Create ResultStatus with all the 'success' results bucked as 'Success'\r\n // Certain operations like StorageAccountAutoSyncKey have no ResultSignature, for now set to 'Success' as well\r\n | extend ResultStatus = case (ResultSignature == \"\", \"Success\",\r\n ResultSignature == \"OK\", \"Success\",\r\n ResultSignature == \"Accepted\", \"Success\",\r\n ResultSignature); \r\nrawData\n| where $__timeFilter(TimeGenerated)\n| extend resultCount = iif(ResultStatus == \"Success\", 1, 0)\n| summarize count(resultCount) by bin(TimeGenerated, 30m)\n| sort by TimeGenerated;\n\r\r\n\r",
"resources": ["$ws"],
"resultFormat": "table"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Success Operations Counts",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": []
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 12,
"y": 26
},
"id": 26,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": ["changeCount"],
"fields": "",
"values": true
},
"showPercentChange": false,
"text": {},
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"query": "let rawData = AzureDiagnostics \r\n // Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n | where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n | where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r; \r\nrawData \r\n| make-series Trend = count() default = 0 on TimeGenerated from ago(1d) to now() step 30m by ResultSignature \n| join kind = inner (rawData\n | where $__timeFilter(TimeGenerated)\r\n | summarize Count = count() by ResultSignature \n )\r\n on ResultSignature \n\r\n\r\n| project ResultSignature , Count, Trend\r\n| order by Count desc;",
"resultFormat": "table",
"workspace": "$ws"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "All Operations",
"type": "stat"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "points",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 6,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "always",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 26
},
"id": 36,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"dashboardTime": false,
"query": "let rawData = AzureDiagnostics \r\n // Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n | where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n | where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r; \r\nrawData\n| where $__timeFilter(TimeGenerated)\n| summarize count(ResultSignature ) by bin(TimeGenerated, 30m)\n| sort by TimeGenerated;\n\r\r\n\r",
"resources": ["$ws"],
"resultFormat": "table"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "All Operations Counts",
"type": "timeseries"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": false,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 31
},
"id": 28,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"show": false
},
"showHeader": true
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"query": "let data = AzureDiagnostics \r\n | where TimeGenerated > ago(1d)\r\n // Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n | where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n | where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r\n // Create ResultStatus with all the 'success' results bucked as 'Success'\r\n // Certain operations like StorageAccountAutoSyncKey have no ResultSignature, for now set to 'Success' as well\r\n | extend ResultStatus = case (ResultSignature == \"\", \"Success\",\r\n ResultSignature == \"OK\", \"Success\",\r\n ResultSignature == \"Accepted\", \"Success\",\r\n ResultSignature)\r\n | where ResultStatus == 'All' or 'All' == 'All';\r\ndata\r\n// Data aggregated to the OperationName\r\n| summarize OperationCount = count(), SuccessCount = countif(ResultStatus == \"Success\"), FailureCount = countif(ResultStatus != \"Success\"), PDurationMs = percentile(DurationMs, 99) by Resource, OperationName\r\n| join kind=inner (data\r\n | make-series Trend = count() default = 0 on TimeGenerated from ago(1d) to now() step 30m by OperationName\r\n | project-away TimeGenerated)\r\n on OperationName\r\n| order by OperationCount desc\r\n| project Name = strcat('⚡ ', OperationName), Id = strcat(Resource, '/', OperationName), ['Operation count'] = OperationCount, ['Operation count trend'] = Trend, ['Success count'] = SuccessCount, ['Failure count'] = FailureCount, ['p99 Duration'] = PDurationMs",
"resultFormat": "time_series",
"workspace": "$ws"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Operations by Name",
"type": "table"
},
{
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": false,
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Duration"
},
"properties": [
{
"id": "custom.width",
"value": 86
}
]
},
{
"matcher": {
"id": "byName",
"options": "Result"
},
"properties": [
{
"id": "custom.width",
"value": 94
}
]
},
{
"matcher": {
"id": "byName",
"options": "Operation"
},
"properties": [
{
"id": "custom.width",
"value": 136
}
]
},
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "custom.width",
"value": 219
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 35
},
"id": 30,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.4.7",
"targets": [
{
"azureLogAnalytics": {
"query": "let gridRowSelected = dynamic({\"Id\": \"*\"});\r\nlet resourceName = split(gridRowSelected.Id, \"/\")[0];\r\nlet operationName = split(gridRowSelected.Id, \"/\")[1];\r\nAzureDiagnostics \r\n| where TimeGenerated > ago(1d)\r\n// Ignore Authentication operations with a 401. This is normal when using Key Vault SDK, first an unauthenticated request is done then the response is used for authentication.\r\n| where Category == \"AuditEvent\" and not (OperationName == \"Authentication\" and httpStatusCode_d == 401)\r\n| where OperationName in ('SecretGet', 'VaultGet') or '*' in ('SecretGet', 'VaultGet')\r\n| where resourceName == \"*\" or Resource == resourceName\r\n| where operationName == \"\" or OperationName == operationName\r\n// Create ResultStatus with all the 'success' results bucked as 'Success'\r\n// Certain operations like StorageAccountAutoSyncKey have no ResultSignature, for now set to 'Success' as well\r\n| extend ResultStatus = case (ResultSignature == \"\", \"Success\",\r\n ResultSignature == \"OK\", \"Success\",\r\n ResultSignature == \"Accepted\", \"Success\",\r\n ResultSignature)\r\n| where ResultStatus == 'All' or 'All' == 'All'\r\n| extend p = pack_all()\r\n| mv-apply p on \r\n ( \r\n extend key = tostring(bag_keys(p)[0])\r\n | where isnotempty(p[key]) and isnotnull(p[key])\r\n | where key !in (\"SourceSystem\", \"Type\")\r\n | summarize make_bag(p)\r\n )\r\n| project Time=TimeGenerated, Operation=OperationName, Result=ResultSignature, Duration = DurationMs, [\"Details\"]=bag_p\r\n| sort by Time desc",
"resultFormat": "time_series",
"workspace": "$ws"
},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"queryType": "Azure Log Analytics",
"refId": "A",
"subscription": "$sub"
}
],
"title": "Operations by Time",
"type": "table"
}
],
"refresh": false,
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Azure Monitor",
"value": "azure-monitor-oob"
},
"hide": 0,
"includeAll": false,
"label": "Datasource",
"multi": false,
"name": "ds",
"options": [],
"query": "grafana-azure-monitor-datasource",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Subscription",
"multi": false,
"name": "sub",
"options": [],
"query": {
"grafanaTemplateVariableFn": {
"kind": "SubscriptionsQuery",
"rawQuery": "subscriptions()"
},
"queryType": "Azure Subscriptions",
"refId": "A"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Resource Group",
"multi": false,
"name": "rg",
"options": [],
"query": {
"grafanaTemplateVariableFn": {
"kind": "ResourceGroupsQuery",
"rawQuery": "ResourceGroups($sub)",
"subscription": "$sub"
},
"queryType": "Azure Resource Groups",
"refId": "A",
"subscription": "$sub"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"hide": 2,
"label": "Namespace",
"name": "ns",
"query": "Microsoft.KeyVault/vaults",
"skipUrlSync": false,
"type": "constant",
"current": {
"value": "Microsoft.KeyVault/vaults",
"text": "Microsoft.KeyVault/vaults",
"selected": false
},
"options": [
{
"value": "Microsoft.KeyVault/vaults",
"text": "Microsoft.KeyVault/vaults",
"selected": false
}
]
},
{
"current": {},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Resource",
"multi": false,
"name": "resource",
"options": [],
"query": {
"grafanaTemplateVariableFn": {
"kind": "ResourceNamesQuery",
"metricNamespace": "$ns",
"rawQuery": "ResourceNames($sub, $rg, $ns)",
"resourceGroup": "$rg",
"subscription": "$sub"
},
"namespace": "$ns",
"queryType": "Azure Resource Names",
"refId": "A",
"resourceGroup": "$rg",
"subscription": "$sub"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "grafana-azure-monitor-datasource",
"uid": "${ds}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Workspace",
"multi": false,
"name": "ws",
"options": [],
"query": {
"grafanaTemplateVariableFn": {
"kind": "WorkspacesQuery",
"rawQuery": "Workspaces($sub)",
"subscription": "$sub"
},
"queryType": "Azure Workspaces",
"refId": "A",
"subscription": "$sub"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Azure / Insights / Key Vaults",
"uid": "tQZAMYrMk",
"version": 43,
"weekStart": ""
}