0

我正在尝试使用处理器插件创建一个新字段。我花了很多时间根据示例尝试不同的东西,但根本无法让它发挥作用。

指标:

CPU,CPU = CPU5,主机= 747D30A47CB9 USAGE_IDLE = 99.95000000111293,USAGE_SOFTIRQ = 0,USAGE_GUEST_NICE = 0,USAGE_USER = 0.0500000000000000000000000051222744,USAGE_NICE = 0,USAGE_NICE = 0,USAGE_NICE = 0,USAGE_NICE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0,USAGE = 0.NICE = 0 = 0,

Telegraf.conf:

[[处理器.正则表达式]]

namepass = ["cpu"]

[[processors.regex.fields]]
   key = "usage_user"
   pattern = "^(.*)$"
   replacement = "${1}"
   result_key = "UsageUser"

我没有看到涌入的新字段“UsageUser”。我错过了什么?Telegraf 1.17.3 (git: HEAD 24a552b9)

谢谢你的帮助。

4

0 回答 0