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.
- Lenguaje dominante
- Java
- Estrellas
- 97
- Forks
- 102
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Línea de trabajo
Comienza con el punto de entrada de Metrics - List REST API y reproduce la consulta de HDInsights utilizando el filtro combinado de ClusterDnsName y HttpStatus. Compárala con solicitudes sin filtro o con una dimensión; se considera terminada cuando el filtro combinado devuelve los valores esperados de la serie temporal o el problema queda documentado como una limitación del servicio de Azure.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- azure, java
- Área
- api, cloud, observability
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100