-
Notifications
You must be signed in to change notification settings - Fork 726
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
NewRelic no values found
error
#1584
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When querying NewRelic with canary MetricTemplates the query is being executed correctly and flagger logs the correct response JSON, however, Flagger expects a different response format from the one provided by NR. The structure expected is a key field 'result' that is then used to retrieve the query result.
Flagger expects
results.[0].result
in the response and NewRelic returnsresults.[0].any_string
as detailed in their documentation and the tests.As an example, two JSON retrieved from Flaggers log (i removed non-essential data but maintained the same structure) where the result changes depending on the function used, and using aliases on the query does not change the results filed.
Flagger logged JSON with sum query:
Flagger logged JSON with Count query and alias
as 'result'
:Flagger's metric template is a simple count query
Log from the sum test
To Reproduce
Expected behavior
Flagger reading the response despite of the json key name.
Additional context
The text was updated successfully, but these errors were encountered: