question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reported values from filtered multi-dimensional metric are all the same

See original GitHub issue

Report

As requested in https://github.com/tomkerkhove/promitor/discussions/1591

I tried to filter a multi-dimensional metric from Azure Application Gateway (see configuration below). Promitor returns the metric names as expected, but the values are the same for all instances (_1xx, _2xx, _3xx, _4xx, _5xx).

Unfortunately there seems to be another issue with the logging. As soon as I add the metrics configuration there are no Azure monitor logs anymore. Therefore I currently can’t really figure out what the exact problem is.

fwiw: For my use-case it’s currently enough to evaluate the “Total Requests” and “Failed Requests” metrics by backendpool. There is no filtering involved and it’s possible to also use service discovery (I really like this feature! 😃).

Expected Behavior

Correct metric values for every instance.

Actual Behavior

Metric values for … azure_application_gateway_backend_response_status_1xx azure_application_gateway_backend_response_status_2xx azure_application_gateway_backend_response_status_3xx azure_application_gateway_backend_response_status_4xx azure_application_gateway_backend_response_status_5xx … are all the same.

Steps to Reproduce the Problem

  1. add the scrape configuration
  2. restart Promitor
  3. let Prometheus scrape (or just call the metrics endpoint)
  4. compare metric values …

Component

Scraper

Version

2.1.0 (Helm Chart 2.2.1)

Configuration

Configuration:

metrics:
  - name: azure_application_gateway_backend_response_status_1xx
    description: "Http responses of Azure Application Gateway by backend and status code"
    resourceType: Generic
    azureMetricConfiguration:
      metricName: BackendResponseStatus
      aggregation:
        type: Total
      dimension:
        name: BackendPool
    resources:
      - resourceUri: Microsoft.Network/applicationGateways/my-appgw1234
        resourceGroupName: my-rg
        filter: HttpStatusGroup eq '1xx'
  - name: azure_application_gateway_backend_response_status_2xx
    description: "Http responses of Azure Application Gateway by backend and status code"
    resourceType: Generic
    azureMetricConfiguration:
      metricName: BackendResponseStatus
      aggregation:
        type: Total
      dimension:
        name: BackendPool
    resources:
      - resourceUri: Microsoft.Network/applicationGateways/my-appgw1234
        resourceGroupName: my-rg
        filter: HttpStatusGroup eq '2xx'
  - name: azure_application_gateway_backend_response_status_3xx
    description: "Http responses of Azure Application Gateway by backend and status code"
    resourceType: Generic
    azureMetricConfiguration:
      metricName: BackendResponseStatus
      aggregation:
        type: Total
      dimension:
        name: BackendPool
    resources:
      - resourceUri: Microsoft.Network/applicationGateways/my-appgw1234
        resourceGroupName: my-rg
        filter: HttpStatusGroup eq '3xx'
  - name: azure_application_gateway_backend_response_status_4xx
    description: "Http responses of Azure Application Gateway by backend and status code"
    resourceType: Generic
    azureMetricConfiguration:
      metricName: BackendResponseStatus
      aggregation:
        type: Total
      dimension:
        name: BackendPool
    resources:
      - resourceUri: Microsoft.Network/applicationGateways/my-appgw1234
        resourceGroupName: my-rg
        filter: HttpStatusGroup eq '4xx'
  - name: azure_application_gateway_backend_response_status_5xx
    description: "Http responses of Azure Application Gateway by backend and status code"
    resourceType: Generic
    azureMetricConfiguration:
      metricName: BackendResponseStatus
      aggregation:
        type: Total
      dimension:
        name: BackendPool
    resources:
      - resourceUri: Microsoft.Network/applicationGateways/my-appgw1234
        resourceGroupName: my-rg
        filter: HttpStatusGroup eq '5xx'

Logs

No response

Platform

Microsoft Azure

Contact Details

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tomkerkhovecommented, Jan 20, 2023

May I ask why you’ve added ProtocolType eq 'TCP' to resourceDiscoveryGroups? That is not really supported today.

1reaction
DaveOHenrycommented, Apr 29, 2021

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multidimensional analysis
The Multidimensional analysis view enables you to analyze web requests of your services with fine-tuned filtering, so you can focus your analysis on...
Read more >
Multi-dimensional analysis views for service metrics and ...
The really cool thing here is that this chart is based on the data of single end-to-end transaction data, and therefore it features...
Read more >
Multi-dimensional analysis with Data Tables
Filter your events and metrics for specific values within a group-by. to select which property values you want to keep or hide in...
Read more >
Filter dimensions overview | Adobe Analytics
The selected filter form is populated based on the element & metric that is selected in the report builder request. Define filter -...
Read more >
Goodness-of-fit filtering in classical metric multidimensional ...
In this paper, we refine MDS goodness-of-fit calculations, proposing additional point and pairwise goodness-of-fit statistics that can be used to filter poorly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found