﻿---
title: Stan channels metricset
description: Top-level streaming server (STAN) channel statistics This is a default metricset. If the host module is unconfigured, this metricset is enabled by default...
url: https://docs-v3-preview.elastic.dev/elastic/beats/pull/49504/reference/metricbeat/metricbeat-metricset-stan-channels
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Stan channels metricset
Top-level streaming server (STAN) channel 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://docs-v3-preview.elastic.dev/elastic/beats/pull/49504/reference/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.channels",
        "duration": 115000,
        "module": "stan"
    },
    "metricset": {
        "name": "channels",
        "period": 10000
    },
    "service": {
        "address": "localhost:32770",
        "type": "stan"
    },
    "stan": {
        "channels": {
            "bytes": 1023999504,
            "depth": 977951,
            "first_seq": 6166399,
            "last_seq": 7144430,
            "messages": 978032,
            "name": "bar"
        },
        "cluster": {
            "id": "test-cluster"
        },
        "server": {
            "id": "mNKuLCRmOZD79arLFAXiaJ"
        }
    }
}
```