Loading

NATS connection metricset

This is the connections metricset of the module nats collecting metrics per connection.

For a description of each field in the metricset, see the exported fields section.

Here is an example document generated by this metricset:

{
    "@timestamp": "2017-10-12T08:05:34.853Z",
    "event": {
        "dataset": "nats.connection",
        "duration": 115000,
        "module": "nats"
    },
    "metricset": {
        "name": "connection",
        "period": 10000
    },
    "nats": {
        "connection": {
            "id": 18,
            "idle_time": 416,
            "in": {
                "bytes": 0,
                "messages": 0
            },
            "ip": "127.0.0.1",
            "lang": "go",
            "last_activity": "2025-03-16T13:38:16.992424387Z",
            "name": "NATS CLI Version development",
            "out": {
                "bytes": 0,
                "messages": 0
            },
            "pending_bytes": 0,
            "port": 44042,
            "start": "2025-03-16T13:38:16.99188926Z",
            "subscriptions": 1,
            "uptime": 416,
            "version": "1.38.0"
        },
        "server": {
            "id": "NCLTOCCWWFT55ANXSNIMXTP2Q4CEL42V2K2BNDXGM5YNMTBMULQO5V7L"
        }
    },
    "service": {
        "address": "localhost:60207",
        "type": "nats"
    }
}