mirror of
https://github.com/wahyd4/telegraf.git
synced 2026-08-22 02:56:05 +10:00
15 lines
398 B
Markdown
15 lines
398 B
Markdown
The Sampler processor will sample a percentage of random metrics over a given field.
|
|
|
|
The `sample_field` should be a unique identifier, as the processor will use that
|
|
to determine which metrics get passed through.
|
|
|
|
```
|
|
[[processors.sampler]]
|
|
|
|
## integer representing the percentage of metrics
|
|
## to be passed through
|
|
percent_of_metrics = 5
|
|
|
|
## field to be sampled over
|
|
sample_field = "trace_id"
|
|
``` |