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.
- Lingua principale
- Java
- Stelle
- 97
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with the Metrics - List REST API entry point and reproduce the HDInsights query using the combined ClusterDnsName and HttpStatus filter. Compare it with requests using no filter or one dimension; done means the combined filter returns the expected time series values or the issue is documented as an Azure service limitation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, java
- Ambito
- api, cloud, observability
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100