[Telegraf] Clone processor on win_perf_counters?

Hello,

I try to use the Clone processor with inputs.win_perf_counters.object but without luck.
Do any one know the correct syntax?

What I did try:
The main input

[[inputs.win_perf_counters]]
  UseWildcardsExpansion = true 
  [[inputs.win_perf_counters.object]]
    ObjectName = "Process"
    Measurement = "win_process"
    Instances = ["*"]
    Counters = [
      "% Processor Time",
      "% Priviledged Time",
      "% User Time",
      "Handle Count",
      "Private Bytes",
      "Thread Count",
      "Virtual Bytes",
      "Working Set",
      "IO Write Bytes/sec",
      "IO Read Bytes/sec",
      "ID Process"
    ]    
    IncludeTotal=true 

Clone directives:

  • Just after, inside the node
[inputs.win_perf_counters.object.clone]
    name_override = "win_process_iis"
  • Just after
[[inputs.win_perf_counters.clone]]
      namepass = ["win_process"]
      name_override = "win_process_iis"

Edit:
Another try:

[[processors.clone]]
  namepass = ["win_process"]
  name_override = "win_process_iis"
  [processors.clone.tagpass]
    instance = ["w3wp*"]

Thanks,
Herve-M

After testing, I just miss-typed Measurement = "win_process" who correct is Measurement = "win_proc".

Running solution is:

[[processors.clone]]
  namepass = ["win_process"]
  name_override = "win_process_iis"
  [processors.clone.tagpass]
    instance = ["w3wp*"]