批量处理器插件
此插件通过添加批次标签将指标分组到批次中。这对于并行处理指标很有用,下游的处理器、聚合器或输出可以使用 tagpass 或 metricpass 选择批次。
指标使用轮循方案分布在批次中。
引入版本: Telegraf v1.33.0 标签: grouping 操作系统支持: all
全局配置选项
除了插件特定的配置设置外,插件还支持其他全局和插件配置设置。这些设置用于修改度量、标签、字段,或创建别名和配置排序等。有关更多详细信息,请参阅 CONFIGURATION.md。
配置
## Batch metrics into separate batches by adding a tag indicating the batch index.
[[processors.batch]]
## The name of the tag to use for adding the batch index
batch_tag = "my_batch"
## The number of batches to create
batches = 16
## Do not assign metrics with an existing batch assignment to a
## different batch.
# skip_existing = false示例
以下示例使用这些设置
[[processors.batch]]
## The tag key to use for batching
batch_tag = "batch"
## The number of batches to create
batches = 3- temperature cpu=25
- temperature cpu=50
- temperature cpu=75
- temperature cpu=25
- temperature cpu=50
- temperature cpu=75
+ temperature,batch=0 cpu=25
+ temperature,batch=1 cpu=50
+ temperature,batch=2 cpu=75
+ temperature,batch=0 cpu=25
+ temperature,batch=1 cpu=50
+ temperature,batch=2 cpu=75
此页面是否有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一员!我们欢迎并鼓励您对 Telegraf 和本文档提出反馈和 bug 报告。要获取支持,请使用以下资源
具有年度合同或支持合同的客户可以 联系 InfluxData 支持。