﻿---
title: RabbitMQ exchange metricset
description: This is the exchange metricset of the module rabbitmq. This is a default metricset. If the host module is unconfigured, this metricset is enabled by default...
url: https://www.elastic.co/elastic/docs-builder/docs/2763/reference/beats/metricbeat/metricbeat-metricset-rabbitmq-exchange
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# RabbitMQ exchange metricset
This is the exchange metricset of the module rabbitmq.
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

## Fields

For a description of each field in the metricset, see the [exported fields](https://www.elastic.co/elastic/docs-builder/docs/2763/reference/beats/metricbeat/exported-fields-rabbitmq) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2019-03-01T08:05:34.853Z",
    "event": {
        "dataset": "rabbitmq.exchange",
        "duration": 115000,
        "module": "rabbitmq"
    },
    "metricset": {
        "name": "exchange"
    },
    "rabbitmq": {
        "exchange": {
            "arguments": {},
            "auto_delete": false,
            "durable": true,
            "internal": false,
            "messages": {
                "publish_in": {
                    "count": 100,
                    "details": {
                        "rate": 0.5
                    }
                },
                "publish_out": {
                    "count": 99,
                    "details": {
                        "rate": 0.9
                    }
                }
            },
            "name": "exchange.name",
            "type": "fanout"
        },
        "vhost": "/"
    },
    "service": {
        "address": "127.0.0.1:55555",
        "type": "rabbitmq"
    },
    "user": {
        "name": "guest"
    }
}
```