Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Status code not handled properly on call to App Insights #28

Open
jsturtevant opened this issue Sep 5, 2018 · 0 comments
Open

Status code not handled properly on call to App Insights #28

jsturtevant opened this issue Sep 5, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jsturtevant
Copy link
Collaborator

When calling to Application Insights if call is successful but does not return 200 then the value is returned as zero and call is not logged as failing:

Trace[619846051]: [10.731063787s] [10.730963384s] Listing from storage done
I0904 18:51:43.637973 1 provider.go:65] Received request for custom metric: groupresource: pods, namespace: default, metric name: performanceCounters-requestsPerSecond, selectors: app=app,release=rps-example
I0904 18:51:43.638005 1 aiapiclient.go:52] request to:  https://api.applicationinsights.io/v1/apps//metrics/performanceCounters/requestsPerSecond?interval=PT30S×pan=PT5M
I0904 18:51:55.636965 1 trace.go:76] Trace[2095719105]: "List /apis/custom.metrics.k8s.io/v1beta1/namespaces/default/pods/*/performanceCounters-requestsPerSecond" (started: 2018-09-04 18:51:43.63787808 +0000 UTC m=+308346.069863768) (total time: 11.999061806s):
Trace[2095719105]: [11.998899902s] [11.9988167s] Listing from storage done
@jsturtevant jsturtevant added bug Something isn't working help wanted Extra attention is needed labels Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant