diff --git a/kong/plugins/datadog/schema.lua b/kong/plugins/datadog/schema.lua index eb57d574161f..9b231adbb8e6 100644 --- a/kong/plugins/datadog/schema.lua +++ b/kong/plugins/datadog/schema.lua @@ -109,7 +109,7 @@ return { { name = { type = "string", required = true, one_of = STAT_NAMES }, }, { stat_type = { type = "string", required = true, one_of = STAT_TYPES }, }, { tags = { type = "array", elements = { type = "string", match = "^.*[^:]$" }, }, }, - { sample_rate = { type = "number", between = { 1, math.huge }, }, }, + { sample_rate = { type = "number", between = { 0, 1 }, }, }, { consumer_identifier = { type = "string", one_of = CONSUMER_IDENTIFIERS }, }, }, entity_checks = {