-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Filtering by dimensions which include / in name does not work in generic scraper #1273
Conversation
Signed-off-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tom Kerkhove <[email protected]>
@renebarbosafl the CI will spit out an image, would you mind testing that one? |
Signed-off-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tom Kerkhove <[email protected]>
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr1273-linux Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr1273-linux \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr1273-linux You can find a CI version of our Helm chart on hub.helm.sh |
From what I'm seeing it works, feel free to confirm. |
Hi Tom, It doesn't seems to be working (or maybe I did something wrong here), with filter: ae29b07056d3d",resource_uri="subscriptions/c1cbcf63-fd33-40b4-9672-e29b07056d3d/resourceGroups/SuperPratico-GO/providers/Microsoft.Insights/Components/GO-Insights-API",instance_name="Microsoft.Insights/Components/GO-Insights-API",dependency_target="superpraticogo.blob.core.windows.net"} 9106 It's a storage account, we're scraping 9106 erros but there aren't any HTTP-500 errors there, only 40x. - name: test
description: "Just a test, please ignore"
resourceType: Generic
azureMetricConfiguration:
metricName: dependencies/failed
dimension:
name: dependency/target
aggregation:
type: Count
resources:
- resourceUri: Microsoft.Insights/Components/GO-Insights-API
resourceGroupName: SuperPratico-GO
filter: dependency/resultCode eq '500' |
Docker image for this PR was built and is available on Docker Hub. You can pull it locally via the CLI: docker pull tomkerkhove/promitor-agent-scraper-ci:pr1273-linux Want to verify the new version? Run it locally: docker run -d -p 8999:80 --name promitor-agent-scraper-pr1273-linux \
--env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
--env-file C:/Promitor/az-mon-auth.creds \
--volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
--volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
tomkerkhove/promitor-agent-scraper-ci:pr1273-linux You can find a CI version of our Helm chart on hub.helm.sh |
Odd, could you maybe add an additional metric without the filter based on this image so we can compare both and include a screenshot of Metrics Explorer split by result code? Feel free to send over the logs as well because this worked for me yesterday evening so happy to dig deeper. |
I did a more thorough test and will merge it given everything looks ok. Metrics config: metrics:
- name: promitor_demo_app_insights_dependency_duration
description: "Average dependency duration per dependency type"
resourceType: Generic
azureMetricConfiguration:
metricName: dependencies/duration
aggregation:
type: Average
interval: 00:30:00
resources:
- resourceUri: Microsoft.Insights/Components/promitor-telemetry
resourceGroupName: promitor
- name: promitor_demo_app_insights_dependency_duration_200_OK
description: "Average dependency duration per dependency type"
resourceType: Generic
azureMetricConfiguration:
metricName: dependencies/duration
aggregation:
type: Average
interval: 00:30:00
resources:
- resourceUri: Microsoft.Insights/Components/promitor-telemetry
resourceGroupName: promitor
filter: dependency/resultCode eq '200'
- name: promitor_demo_app_insights_dependency_duration_429_TooManyRequests
description: "Average dependency duration per dependency type"
resourceType: Generic
azureMetricConfiguration:
metricName: dependencies/duration
aggregation:
type: Average
interval: 00:30:00
resources:
- resourceUri: Microsoft.Insights/Components/promitor-telemetry
resourceGroupName: promitor
filter: dependency/resultCode eq '429'
- name: promitor_demo_app_insights_dependency_duration_500_InternalServerError
description: "Average dependency duration per dependency type"
resourceType: Generic
azureMetricConfiguration:
metricName: dependencies/duration
aggregation:
type: Average
interval: 00:30:00
resources:
- resourceUri: Microsoft.Insights/Components/promitor-telemetry
resourceGroupName: promitor
filter: dependency/resultCode eq '500' Output with a clear separation and average per status code:
|
Both metrics work, unfortunately, I don't have any other response codes to test with.
Fixes #1266