Skip to content

Commit

Permalink
Clarify datadog rate limit (kedacore#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
arapulido authored Mar 4, 2022
1 parent b76db31 commit e738edb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions content/docs/2.6/scalers/datadog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ description = "Scale applications based on Datadog."
go_file = "datadog_scaler"
+++

> 💡 **NOTE:** Take into account [API Datadog endpoints rate limits](https://docs.datadoghq.com/api/latest/rate-limits/) when defining polling interval
### Trigger Specification

This specification describes the `datadog` trigger that scales based on a Datadog metric.
Expand All @@ -18,7 +20,7 @@ triggers:
query: "sum:trace.redis.command.hits{env:none,service:redis}.as_count()"
queryValue: "7"
type: "global"
age: "60"
age: "120"
```
**Parameter list:**
Expand All @@ -41,6 +43,8 @@ You should use `TriggerAuthentication` CRD to configure the authentication:

### Example

The example below uses the default KEDA polling interval (30 seconds). Take into account that [API Datadog endpoints are rate limited](https://docs.datadoghq.com/api/latest/rate-limits/) and reducing the polling interval can accelerate reaching it. If your account has reached its rate limit, a relevant error will be logged in KEDA.

```yaml
apiVersion: v1
kind: Secret
Expand Down Expand Up @@ -91,7 +95,7 @@ spec:
# Optional: (Global or Average). Whether the target value is global or average per pod. Default: Average
type: "Global"
# Optional: The time window (in seconds) to retrieve metrics from Datadog. Default: 90
age: "60"
age: "120"
authenticationRef:
name: keda-trigger-auth-datadog-secret
```
8 changes: 6 additions & 2 deletions content/docs/2.7/scalers/datadog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ description = "Scale applications based on Datadog."
go_file = "datadog_scaler"
+++

> 💡 **NOTE:** Take into account [API Datadog endpoints rate limits](https://docs.datadoghq.com/api/latest/rate-limits/) when defining polling interval
### Trigger Specification

This specification describes the `datadog` trigger that scales based on a Datadog metric.
Expand All @@ -18,7 +20,7 @@ triggers:
query: "sum:trace.redis.command.hits{env:none,service:redis}.as_count()"
queryValue: "7"
type: "global"
age: "60"
age: "120"
```
**Parameter list:**
Expand All @@ -41,6 +43,8 @@ You should use `TriggerAuthentication` CRD to configure the authentication:

### Example

The example below uses the default KEDA polling interval (30 seconds). Take into account that [API Datadog endpoints are rate limited](https://docs.datadoghq.com/api/latest/rate-limits/) and reducing the polling interval can accelerate reaching it. If your account has reached its rate limit, a relevant error will be logged in KEDA.

```yaml
apiVersion: v1
kind: Secret
Expand Down Expand Up @@ -91,7 +95,7 @@ spec:
# Optional: (Global or Average). Whether the target value is global or average per pod. Default: Average
type: "Global"
# Optional: The time window (in seconds) to retrieve metrics from Datadog. Default: 90
age: "60"
age: "120"
authenticationRef:
name: keda-trigger-auth-datadog-secret
```

0 comments on commit e738edb

Please sign in to comment.