Azure / Azure/azure-libraries-for-java
For HDInsights Service, REST API call does not return any time series values when `$filter` param on combination of dimensions are specified in the query.
- Dominant language
- Java
- Stars
- 97
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
Using REST API call of Metrics - List, for Azure HDInsights service does not return any time series values when `$filter` parameter on dimensions is specified in the query.
Query Parameters:
```
resourceUri: subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/gangadhartestapp/providers/Microsoft.HDInsight/clusters/kafkaclustergs
api-version: 2018-01-01
metricnames: GatewayRequests,CategorizedGatewayRequests
interval: PT1M //or P1D etc.
timespan: 2018-11-28T12:00:00Z/2018-11-30T12:00:00Z //or any other timespan
$filter: ClusterDnsName eq '*' and HttpStatus eq '*'
```
Response Body:
```
{
"cost": 0,
"timespan": "2018-11-28T12:00:00Z/2018-11-30T12:00:00Z",
"interval": "P1D",
"value": [
{
"id": "/subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/gangadhartestapp/providers/Microsoft.HDInsight/clusters/kafkaclustergs/providers/Microsoft.Insights/metrics/GatewayRequests",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "GatewayRequests",
"localizedValue": "Gateway Requests"
},
"unit": "Count",
"timeseries": []
},
{
"id": "/subscriptions/1248268d-051f-432a-8e63-e83a9d36e776/resourceGroups/gangadhartestapp/providers/Microsoft.HDInsight/clusters/kafkaclustergs/providers/Microsoft.Insights/metrics/CategorizedGatewayRequests",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "CategorizedGatewayRequests",
"localizedValue": "Categorized Gateway Requests"
},
"unit": "Count",
"timeseries": []
}
],
"namespace": "Microsoft.HDInsight/clusters",
"resourceregion": "westus2"
}
```
If the `$filter` parameter is not specified or any one dimension is specified, the query returns time series values. But when combination of dimensions are specified ($filter: ClusterDnsName eq '*' and HttpStatus eq '*'), the query doesn't return any time series values. The `$filter` param is required to retrieve metric dimensions `ClusterDnsName`, `HttpStatus`.
Let us know if further information is required to investigate this.
Contributor guide
Assessment
This issue has not been assessed yet.