﻿---
title: NATS subscriptions metricset
description: This is the subscriptions metricset of the module nats collecting metrics about subscriptions. This is a default metricset. If the host module is unconfigured,...
url: https://www.elastic.co/elastic/docs-builder/docs/2697/reference/beats/metricbeat/metricbeat-metricset-nats-subscriptions
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# NATS subscriptions metricset
This is the subscriptions metricset of the module nats collecting metrics about subscriptions.
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/2697/reference/beats/metricbeat/exported-fields-nats) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "nats.subscriptions",
        "duration": 115000,
        "module": "nats"
    },
    "metricset": {
        "name": "subscriptions",
        "period": 10000
    },
    "nats": {
        "subscriptions": {
            "cache": {
                "fanout": {
                    "avg": 1.4285714285714286,
                    "max": 2
                },
                "hit_rate": 1.0818181818181818,
                "size": 21
            },
            "inserts": 124,
            "matches": 91,
            "removes": 32,
            "total": 92
        }
    },
    "service": {
        "address": "localhost:60202",
        "type": "nats"
    }
}
```