Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 501 not implemented (all of a sudden?) from the metrics batch API only when using this SDK. #23838

Open
PCaponetti opened this issue Dec 5, 2024 · 5 comments
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor Monitor, Monitor Ingestion, Monitor Query needs-author-feedback Workflow: More information is needed from author to address the issue. needs-team-triage Workflow: This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@PCaponetti
Copy link

PCaponetti commented Dec 5, 2024

Bug Report

Getting 501 not implemented (all of a sudden?) from the metrics batch API only when using this SDK. This is with both the azmetrics and the azquery.MetricsBatchClient client (version 1.2.0-beta.1 of the package because this class doesn't exist in v1.1.0).

I get the below error when I try querying with a filter, or without a filter. Otherwise I set Interval and Aggregation along with required fields like subscription, metrics namespace, metric names, and resource IDs.

I'm getting the following error:

        {
          \"id\": \"/subscriptions/aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaaa/resourceGroups/slee-csmm-resource-group/providers/Microsoft.Storage/storageAccounts/sleecsmmtesting/providers/Microsoft.Insights/metrics/Availability\",
          \"type\": \"Microsoft.Insights/metrics\",
          \"name\": {
            \"value\": \"Availability\",
            \"localizedValue\": \"Availability\"
          },
          \"unit\": \"Unspecified\",
          \"timeseries\": [],
          \"errorMessage\": \"Microsoft.Online.Monitor.Common.Exceptions.InvalidSeriesException: Output dimensions must be a subset of dimension filters.  Dimension: [Microsoft.ResourceId] is missing from the dimension filters.\r\n   at Microsoft.Online.QueryService.Contracts.QueryServiceRequestBuilder.BuildQueryPreprocessing(List`1 dimensionFilters, IReadOnlyList`1 samplingTypes, TimeSpan timeResolution, AggregationType aggregationType, OptionalQueryParameters optionalQueryParameters, String[]& outputDimensionNames, Boolean& minMaxRequested, Boolean& percentileRequested, Boolean& useExactMatchingPreaggregate, String[]& dimensionFilterNames, HashSet`1& distinctCountColumns) in D:\\dbs\\sh\\acem\\1007_055005\\cmd\\q\\src\\QueryService\\QueryServiceContracts\\QueryServiceRequestBuilder.cs:line 1191\r\n   at Microsoft.Online.QueryService.Contracts.QueryServiceRequestBuilder.<BuildQueryAsync>d__29.MoveNext() in D:\\dbs\\sh\\acem\\1007_055005\\cmd\\q\\src\\QueryService\\QueryServiceContracts\\QueryServiceRequestBuilder.cs:line 644\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Online.Metrics.Server.Controllers.QueryServiceController.<ExecuteQueryAsync>d__30.MoveNext() in D:\\dbs\\sh\\acem\\1017_080928\\cmd\\m\\src\\Metrics.Server\\Controllers\\QueryServiceController.cs:line 1093\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Online.Metrics.Server.Controllers.QueryServiceController.<>c__DisplayClass22_0.<<GetMultipleMetricsAsync>b__0>d.MoveNext() in D:\\dbs\\sh\\acem\\1017_080928\\cmd\\m\\src\\Metrics.Server\\Controllers\\QueryServiceController.cs:line 238\",
          \"errorCode\": \"InvalidSeries\"
        }
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. labels Dec 5, 2024
Copy link

github-actions bot commented Dec 5, 2024

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzmonActionG @azmonALERTS @AzMonEssential @AzmonLogA @dadunl @sameergMS.

@jhendrixMSFT
Copy link
Member

cc @gracewilcox

@lirenhe lirenhe added Client This issue points to a problem in the data-plane of the library. and removed Mgmt This issue is related to a management-plane library. labels Dec 6, 2024
@lirenhe
Copy link
Member

lirenhe commented Dec 6, 2024

Seems to be a client issue so update the label.

@gracewilcox
Copy link
Member

Hi @PCaponetti! So I can repo your issue, what is the exact query you're trying to do?

To also clarify, was that query working before and now it's failing?

@gracewilcox gracewilcox added needs-author-feedback Workflow: More information is needed from author to address the issue. and removed Service Attention Workflow: This issue is responsible by Azure service team. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Dec 17, 2024
@github-actions github-actions bot added the needs-team-triage Workflow: This issue needs the team to triage. label Dec 17, 2024
Copy link

Hi @PCaponetti. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor Monitor, Monitor Ingestion, Monitor Query needs-author-feedback Workflow: More information is needed from author to address the issue. needs-team-triage Workflow: This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants