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

[Monitor Query] Add batch metrics query integration #31049

Merged
merged 4 commits into from Aug 16, 2023

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Jul 10, 2023

This introduces a new client for querying resources in batches. Based on archboard feedback, this will currently be a separate client since this uses a separate data-plane API as opposed to the ARM API that the MetricsQueryClient uses.

Modifications

  • Introduce MetricsBatchQueryClient for sync/async.
  • Add new swagger file section for client generation.
  • Regenerate code with latest autorest
  • Update README and add samples
  • Add tests and re-record

Fixes #29092

@azure-sdk
Copy link
Collaborator

azure-sdk commented Aug 8, 2023

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-monitor-query

@pvaneck pvaneck force-pushed the query-data-plane-metrics branch 3 times, most recently from 051435e to dce44d8 Compare August 15, 2023 02:09
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck
Copy link
Member Author

pvaneck commented Aug 15, 2023

/azp run python - monitor - tests

@pvaneck pvaneck marked this pull request as ready for review August 15, 2023 18:38
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kristapratico kristapratico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions, but otherwise looks good! Sync feedback generally applies to async as well. Should we add the new client to the changelog?

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck requested a review from a team as a code owner August 16, 2023 01:34
Copy link
Member Author

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kristapratico for the great feedback! Addressed most comments and replied in-line 😸.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Copy link
Member

@kristapratico kristapratico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only feedback would be to double-check with architects regarding using ItemPaged for query_batch

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck merged commit 4f8dc00 into Azure:main Aug 16, 2023
16 checks passed
@pvaneck pvaneck deleted the query-data-plane-metrics branch August 16, 2023 23:20
lmazuel pushed a commit that referenced this pull request Aug 21, 2023
This adds the `MetricsBatchQueryClient` for querying resource URIs in batches.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@scottaddie scottaddie added Monitor Monitor, Monitor Ingestion, Monitor Query and removed Monitor - Query labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor Monitor, Monitor Ingestion, Monitor Query
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Monitor Query] Migrate to data plane metrics query API
4 participants