Skip to content

Commit 5f6b3c5

Browse files
authored
use metricUnavailableValue for 422 errors in Datadog Scaler (#1690)
Signed-off-by: Rick Brouwer <rickbrouwer@gmail.com>
1 parent b6d3430 commit 5f6b3c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/docs/2.19/scalers/datadog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ triggers:
9999
- `timeout` - Timeout (in a Duration string format) **for this specific trigger**. This value will override the value defined in `KEDA_HTTP_DEFAULT_TIMEOUT`. (Optional)
100100

101101
> 💡 **NOTE:** The `type` parameter is deprecated in favor of the global `metricType` and will be removed in a future release. Users are advised to use `metricType` instead.
102+
> 💡 **NOTE:** Datadog may return HTTP 422 (Unprocessable Entity) or empty metric series. Both scenarios are treated as "no data" and will use `metricUnavailableValue` if set, otherwise an error is returned to the HPA.
102103

103104
### Authentication
104105

@@ -216,6 +217,7 @@ triggers:
216217
- `timeout` - Timeout (in a Duration string format) **for this specific trigger**. This value will override the value defined in `KEDA_HTTP_DEFAULT_TIMEOUT`. (Optional)
217218

218219
> 💡 **NOTE:** The `type` parameter is deprecated in favor of the global `metricType` and will be removed in a future release. Users are advised to use `metricType` instead.
220+
> 💡 **NOTE:** Datadog may return HTTP 422 (Unprocessable Entity) or empty metric series. Both scenarios are treated as "no data" and will use `metricUnavailableValue` if set, otherwise an error is returned to the HPA.
219221

220222
### Authentication
221223

0 commit comments

Comments
 (0)