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

Some Metrics Work Individually but Not in Combined Queries #109

Open
nc-star opened this issue Jan 14, 2025 · 0 comments
Open

Some Metrics Work Individually but Not in Combined Queries #109

nc-star opened this issue Jan 14, 2025 · 0 comments

Comments

@nc-star
Copy link

nc-star commented Jan 14, 2025

Description

I encountered an issue while using azure-metrics-exporter for Cosmos DB where specific metrics work correctly when queried individually but fail to provide a response when queried together in a combined request. Below, I describe the steps I followed, the results I observed, and the problematic behavior.


Steps to Reproduce

  1. Setup Environment:

    • Installed and configured azure-metrics-exporter.
    • Verified that the exporter is reachable at http://localhost:8080.
  2. Queried Metrics Individually:

    This approach worked for the following metrics:

    • AvailableStorage
    • DataUsage
    • DocumentCount
    • DocumentQuota
    • IndexUsage
    • MetadataRequests
    • NormalizedRUConsumption
    • PhysicalPartitionSizeInfo
    • ServerSideLatency
    • ServerSideLatencyGateway
    • ServiceAvailability
    • TotalRequests
    • TotalRequestsPreview
    • TotalRequestUnits
    • TotalRequestUnitsPreview
  3. Combined Query:

    When I attempted to query these metrics in a combined request, some metrics did not return any data.

    Example Request:

    curl -X GET "http://localhost:8080/probe/metrics/list?name=azure_metric&subscription=xxxx-xxxx-xxxx-xxxx&resourceType=Microsoft.DocumentDB/DatabaseAccounts&metric=AvailableStorage,DataUsage,DocumentCount,DocumentQuota,IndexUsage,MetadataRequests,NormalizedRUConsumption,PhysicalPartitionSizeInfo,ServerSideLatency,ServerSideLatencyGateway,ServiceAvailability,TotalRequests,TotalRequestsPreview,TotalRequestUnits,TotalRequestUnitsPreview&interval=PT1H&timespan=PT1H&aggregation=average&metricTop=10&validateDimensions=true"
    
    
    ### Result
    
  • Some metrics returned valid data, but others had no response or empty results.
  • No specific error message was provided.

Observations

  • Individual metric queries work consistently.
  • When combining metrics, some fail to provide a response without clear feedback.
  • The issue seems to occur when specific metrics are queried together.

Expected Behavior

  • Combined metric queries should work the same way as individual queries, returning data for all specified metrics.

Actual Behavior

  • Some metrics fail to return data in combined queries.

Request for Support

Could you help identify why combined metric queries fail for some metrics when querying Cosmos DB? If there are specific configurations or limitations regarding combined requests, it would be helpful to document them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant