You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"Response from provider was:": "{\"error\":{\"code\":400,\"message\":\"Metric selector parse error: line 1:324 token recognition error at: '&'\"}}", "error": "provider api response: Metric selector parse error: line 1:324 token recognition error at: '&'"}
This is because of the url encoding of the complete query, the from parameter was interpreted to be part of the metricSelectorparameter.
The correct URL should look as follows:
When applying a KeptnMetric with a query that includes multiple parameters, such as the
metricSelector
and thefrom
attribute, i.e.:The dynatrace-provider will do an URL encoding of the complete query, rather than on the individual parameters (see
lifecycle-toolkit/metrics-operator/controllers/common/providers/dynatrace/dynatrace.go
Line 45 in 2558f74
This means that the resulting query will look something like:
And the following error will be produced:
This is because of the url encoding of the complete query, the
from
parameter was interpreted to be part of themetricSelector
parameter.The correct URL should look as follows:
The text was updated successfully, but these errors were encountered: