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

# NATS connections metricset
This is the connections metricset of the module nats collecting top level metrics about connections.
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/3016/reference/beats/metricbeat/exported-fields-nats) section.
Here is an example document generated by this metricset:
```json
{
    "@timestamp":"2016-05-23T08:05:34.853Z",
    "beat":{
        "hostname":"beathost",
        "name":"beathost"
    },
    "metricset":{
        "host":"localhost",
        "module":"nats",
        "name":"connections",
        "rtt":44269
    },
    "nats": {
        "server": {
            "id": "bUAdpRFtMWddIBWw80Yd9D",
            "time": "2018-12-28T12:33:53.026865597Z"
        },
        "connections": {
            "total": 1
        }
    },
    "type":"metricsets"
}
```