AzureMonitor: fix panic introduced in 7.1.4 (#27113)

happens when unit was "Unspecified" and alias is being used
This commit is contained in:
Kyle Brandt
2020-08-21 11:37:30 -04:00
committed by GitHub
parent a6cc64290c
commit c724449d3d
3 changed files with 61 additions and 1 deletions
@@ -0,0 +1,31 @@
{
"cost": 0,
"timespan": "2019-02-08T10:13:50Z\/2019-02-08T16:13:50Z",
"interval": "PT1M",
"value": [
{
"id": "\/subscriptions\/xxx\/resourceGroups\/grafanastaging\/providers\/Microsoft.Compute\/virtualMachines\/grafana\/providers\/Microsoft.Insights\/metrics\/Percentage CPU",
"type": "Microsoft.Insights\/metrics",
"name": {
"value": "Percentage CPU",
"localizedValue": "Percentage CPU"
},
"unit": "Unspecified",
"timeseries": [
{
"metadatavalues": [
],
"data": [
{
"timeStamp": "2019-02-08T10:13:00Z",
"average": 2.0875
}
]
}
]
}
],
"namespace": "Microsoft.Compute\/virtualMachines",
"resourceregion": "westeurope"
}