telegraf/plugins/inputs/nats
reimda f7aab29381
chore: Fix readme linter errors for input plugins M-Z (#11274)
2022-06-08 15:22:56 -06:00
..
README.md chore: Fix readme linter errors for input plugins M-Z (#11274) 2022-06-08 15:22:56 -06:00
nats.go chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
nats_freebsd.go fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
nats_test.go fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
sample.conf chore(inputs_m-z): migrate sample configs into separate files (#11133) 2022-05-18 11:31:34 -05:00

README.md

NATS Input Plugin

The NATS monitoring plugin gathers metrics from the NATS monitoring http server.

Configuration

# Provides metrics about the state of a NATS server
[[inputs.nats]]
  ## The address of the monitoring endpoint of the NATS server
  server = "http://localhost:8222"

  ## Maximum time to receive response
  # response_timeout = "5s"

Metrics

  • nats
    • tags
      • server
    • fields:
      • uptime (integer, nanoseconds)
      • mem (integer, bytes)
      • subscriptions (integer, count)
      • out_bytes (integer, bytes)
      • connections (integer, count)
      • in_msgs (integer, bytes)
      • total_connections (integer, count)
      • cores (integer, count)
      • cpu (integer, count)
      • slow_consumers (integer, count)
      • routes (integer, count)
      • remotes (integer, count)
      • out_msgs (integer, count)
      • in_bytes (integer, bytes)

Example Output

nats,server=http://localhost:8222 uptime=117158348682i,mem=6647808i,subscriptions=0i,out_bytes=0i,connections=0i,in_msgs=0i,total_connections=0i,cores=2i,cpu=0,slow_consumers=0i,routes=0i,remotes=0i,out_msgs=0i,in_bytes=0i 1517015107000000000