﻿---
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/3016/reference/beats/metricbeat/metricbeat-metricset-nats-routes
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# 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/3016/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"
    }
}
```