From b853c29b7b41dc03ec511af6f17fa58bda913d01 Mon Sep 17 00:00:00 2001 From: Alex Eftimie Date: Tue, 6 Jun 2023 16:20:29 +0200 Subject: [PATCH] docs: Update datadog.md - clarify formulas #2813 (#2819) Update datadog.md - clarify formulas Signed-off-by: Alex Eftimie --- docs/analysis/datadog.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/analysis/datadog.md b/docs/analysis/datadog.md index 8a80064914..3010c9a4df 100644 --- a/docs/analysis/datadog.md +++ b/docs/analysis/datadog.md @@ -23,14 +23,13 @@ spec: apiVersion: v2 interval: 5m query: | - sum:requests.error.count{service:{{args.service-name}}} / - sum:requests.request.count{service:{{args.service-name}}} + sum:requests.error.rate{service:{{args.service-name}}} ``` The field `apiVersion` refers to the API version of Datadog (v1 or v2). Default value is `v1` if this is omitted. !!! note - Datadog is moving away from the legacy v1 API. Rate limits imposed by Datadog are therefore stricter when using v1. It is recommended to switch to v2 soon. If you switch to v2, you will not need to change any other field aside from `apiVersion`. + Datadog is moving away from the legacy v1 API. Rate limits imposed by Datadog are therefore stricter when using v1. It is recommended to switch to v2 soon. If you switch to v2, you will not be able to use formulas (operations between individual queries). Datadog api and app tokens can be configured in a kubernetes secret in argo-rollouts namespace.