﻿---
title: Stan stats metricset
description: Streaming server statistics (STAN) This is a default metricset. If the host module is unconfigured, this metricset is enabled by default. For a description...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/metricbeat/metricbeat-metricset-stan-stats
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Stan stats metricset
Streaming server statistics (STAN)
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.stats",
        "duration": 115000,
        "module": "stan"
    },
    "metricset": {
        "name": "stats",
        "period": 10000
    },
    "service": {
        "address": "localhost:32768",
        "type": "stan"
    },
    "stan": {
        "cluster": {
            "id": "test-cluster"
        },
        "server": {
            "id": "IcYma3g7cxFU6AUhN9flMe"
        },
        "stats": {
            "bytes": 0,
            "channels": 0,
            "clients": 0,
            "messages": 0,
            "state": "STANDALONE",
            "subscriptions": 0
        }
    }
}
```