From 5983ecf4d1c45ddf7861e3ceaf7c908a5bca4a63 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 26 Sep 2022 14:02:35 +0300 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: mention that VictoriaMetrics sanitizes metric names in DataDog data by default This is a follow-up for 7c2474dac7bba6cd42e861de9f99fef2472f680b --- README.md | 4 ++++ docs/README.md | 4 ++++ docs/Single-server-VictoriaMetrics.md | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index fc6757a7f..aa8f1487f 100644 --- a/README.md +++ b/README.md @@ -432,6 +432,10 @@ This command should return the following output if everything is OK: {"metric":{"__name__":"system.load.1","environment":"test","host":"test.example.com"},"values":[0.5],"timestamps":[1632833641000]} ``` +VictoriaMetrics automatically sanitizes metric names for the data ingested via DataDog protocol +according to [DataDog metric naming recommendations](https://docs.datadoghq.com/metrics/custom_metrics/#naming-custom-metrics). +If you need accepting metric names as is without sanitizing, then pass `-datadog.sanitizeMetricName=false` command-line flag to VictoriaMetrics. + Extra labels may be added to all the written time series by passing `extra_label=name=value` query args. For example, `/datadog/api/v1/series?extra_label=foo=bar` would add `{foo="bar"}` label to all the ingested metrics. diff --git a/docs/README.md b/docs/README.md index fc6757a7f..aa8f1487f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -432,6 +432,10 @@ This command should return the following output if everything is OK: {"metric":{"__name__":"system.load.1","environment":"test","host":"test.example.com"},"values":[0.5],"timestamps":[1632833641000]} ``` +VictoriaMetrics automatically sanitizes metric names for the data ingested via DataDog protocol +according to [DataDog metric naming recommendations](https://docs.datadoghq.com/metrics/custom_metrics/#naming-custom-metrics). +If you need accepting metric names as is without sanitizing, then pass `-datadog.sanitizeMetricName=false` command-line flag to VictoriaMetrics. + Extra labels may be added to all the written time series by passing `extra_label=name=value` query args. For example, `/datadog/api/v1/series?extra_label=foo=bar` would add `{foo="bar"}` label to all the ingested metrics. diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index f5f530607..0445dac26 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -436,6 +436,10 @@ This command should return the following output if everything is OK: {"metric":{"__name__":"system.load.1","environment":"test","host":"test.example.com"},"values":[0.5],"timestamps":[1632833641000]} ``` +VictoriaMetrics automatically sanitizes metric names for the data ingested via DataDog protocol +according to [DataDog metric naming recommendations](https://docs.datadoghq.com/metrics/custom_metrics/#naming-custom-metrics). +If you need accepting metric names as is without sanitizing, then pass `-datadog.sanitizeMetricName=false` command-line flag to VictoriaMetrics. + Extra labels may be added to all the written time series by passing `extra_label=name=value` query args. For example, `/datadog/api/v1/series?extra_label=foo=bar` would add `{foo="bar"}` label to all the ingested metrics.