---
title: NATS routes metricset
description: This is the routes metricset of the module nats collecting top level metrics about routes. This is a default metricset. If the host module is unconfigured,...
url: https://www.elastic.co/elastic/docs-builder/docs/2455/reference/beats/metricbeat/metricbeat-metricset-nats-routes
applies_to:
  - Elastic Stack: Generally available in 9.0+
---

# NATS routes metricset
This is the routes metricset of the module nats collecting top level metrics about routes.
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/2455/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.routes",
        "duration": 115000,
        "module": "nats"
    },
    "metricset": {
        "name": "routes",
        "period": 10000
    },
    "nats": {
        "routes": {
            "total": 1
        },
        "server": {
            "id": "NBND4PX5S47JXJZYEWSDE2KYOTEK2SM6MBMSQQ5ZUA5URNULLFFMTFJH",
            "time": "2025-03-16T13:45:57.441899971Z"
        }
    },
    "service": {
        "address": "localhost:60202",
        "type": "nats"
    }
}
```