Open gangadharaswamy opened 5 years ago
@gangadharaswamy the REST API does not support wildcarding multiple dimensions (dim eq '*'). Only one dimension may be wildcarded, all other dimensions must either be filtered to specific values, or not filtered at all.
@anirudhcavale Thanks for the response.
For the benefit of the community - @anirudhcavale confirmed that ClusterDnsName should ideally not be emitted by Azure. If in case you are using this metric in your filter and not retrieving any metrics, please ignore this metric from your filter. This dimension always has a value equal to the Azure resource Id. A similar issue can be seen with "FileShare" dimension for FileServices resources - https://github.com/Azure/azure-libraries-for-java/issues/747
I will leave this issue open to be resolved once the above dimensions are stopped from being emitted in their corresponding metric definitions.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @djlan
This is not a SDK issue but REST calling. Need service team to handle.
@yaohaizh Could you please give more details about requirements on service team? What should we do for this GitHub issues?
@idear1203 with $filter parameter, the time series values is not returned.
Please make sure this is design behavior or should be fixed on the service side. Similar issue: https://github.com/Azure/azure-libraries-for-java/issues/747 that need fix.
@gangadharaswamy @akodali18 Could you please provide the entire URL of the request you sent? This is very important because from the limit information you provided I can't find the related API.
Here you just provided the query parameter and response body, I can't find the entire URL of the request.
@aim-for-better : Here is the REST API we used - https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list
We just call this API with the query parameters in issue description. Let us know if you need more info.
This is not SDK issue. I will try to find the correct team and report the issue.
@yaohaizh @akodali18 This API https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list is provided by Insights team. Now transfer it to Insights team to ask for help investigate who returns the response. I don't know which team provided the response.
And this issue is not HDInsight SDK's issue.
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:
Response Body:
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 dimensionsClusterDnsName
,HttpStatus
.Let us know if further information is required to investigate this.