How do I use fields for rabbitmq plugin in telegraf.conf?

How do I use fields for rabbitmq plugin in telegraf.conf? telegraf/plugins/inputs/rabbitmq at master · influxdata/telegraf · GitHub
I can use the following to get all data

[[inputs.rabbitmq]]

url = "[http://localhost:15672](https://slack-redir.net/link?url=http%3A%2F%2Flocalhost%3A15672)"
username = "user"
password = "pass"

queues = ["q1"]

but if I try filtering for specific field like below I get Undefined but requested input: rabbitmq_node

[[inputs.rabbitmq_node.fields.mem_used]]

Sorry, I’m don’t think I understand what you are trying to do. If you only want the mem_used field and want to remove all other fields you can do:

[[inputs.rabbitmq]]
  url = "http://localhost:15672"
  # other options...
  fieldpass = ["mem_used"]