From b4ba8d0d76719a06da616b5e0a585cf828309536 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 21 Dec 2023 21:04:53 +0200 Subject: [PATCH] lib/protoparser: add missing /datadog/ prefix to the /api/v2/series path in the description for -datadog.maxInsertRequestSize command-line flag --- docs/Cluster-VictoriaMetrics.md | 2 +- lib/protoparser/datadogutils/datadogutils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Cluster-VictoriaMetrics.md b/docs/Cluster-VictoriaMetrics.md index c9fb35bd7..bc991638a 100644 --- a/docs/Cluster-VictoriaMetrics.md +++ b/docs/Cluster-VictoriaMetrics.md @@ -961,7 +961,7 @@ Below is the output for `/path/to/vminsert -help`: -csvTrimTimestamp duration Trim timestamps when importing csv data to this duration. Minimum practical duration is 1ms. Higher duration (i.e. 1s) may be used for reducing disk space usage for timestamp data (default 1ms) -datadog.maxInsertRequestSize size - The maximum size in bytes of a single DataDog POST request to /api/v1/series + The maximum size in bytes of a single DataDog POST request to /datadog/api/v1/series Supports the following optional suffixes for size values: KB, MB, GB, TB, KiB, MiB, GiB, TiB (default 67108864) -datadog.sanitizeMetricName Sanitize metric names for the ingested DataDog data to comply with DataDog behaviour described at https://docs.datadoghq.com/metrics/custom_metrics/#naming-custom-metrics (default true) diff --git a/lib/protoparser/datadogutils/datadogutils.go b/lib/protoparser/datadogutils/datadogutils.go index f3a71a425..51cc79c07 100644 --- a/lib/protoparser/datadogutils/datadogutils.go +++ b/lib/protoparser/datadogutils/datadogutils.go @@ -11,7 +11,7 @@ import ( var ( // MaxInsertRequestSize is the maximum request size is defined at https://docs.datadoghq.com/api/latest/metrics/#submit-metrics - MaxInsertRequestSize = flagutil.NewBytes("datadog.maxInsertRequestSize", 64*1024*1024, "The maximum size in bytes of a single DataDog POST request to /api/v2/series") + MaxInsertRequestSize = flagutil.NewBytes("datadog.maxInsertRequestSize", 64*1024*1024, "The maximum size in bytes of a single DataDog POST request to /datadog/api/v2/series") // SanitizeMetricName controls sanitizing metric names ingested via DataDog protocols. //