﻿---
title: Stan subscriptions metricset
description: NATS streaming server (STAN) subscription statistics 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/3028/reference/beats/metricbeat/metricbeat-metricset-stan-subscriptions
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Stan subscriptions metricset
NATS streaming server (STAN) subscription statistics
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/3028/reference/beats/metricbeat/exported-fields-stan) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "stan.subscriptions",
        "duration": 115000,
        "module": "stan"
    },
    "metricset": {
        "name": "subscriptions",
        "period": 10000
    },
    "service": {
        "address": "localhost:32770",
        "type": "stan"
    },
    "stan": {
        "cluster": {
            "id": "test-cluster"
        },
        "server": {
            "id": "mNKuLCRmOZD79arLFAXiaJ"
        },
        "subscriptions": {
            "channel": "bar",
            "id": "benchmark-sub-2",
            "last_sent": 7195645,
            "offline": false,
            "pending": 1024,
            "stalled": true
        }
    }
}
```