Skip to content

pires/nats-sniffer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

nats-sniffer

A simple sniffer for NATS, the cloud native messaging system.

Pre-requisites

  • Go 1.5.x or newer
  • make
  • Optionally, gb

Build

The following will clean any previously built artifacts, run tests and generate a binary for your platform:

make

If you're on Mac OS but want to build for Linux:

make linux

Usage

Sniffer

bin/nats-sniffer --help

Example:

bin/nats-sniffer -port 8080 -nats 192.168.99.100:4222

Client

curl "<HOST>:<PORT>/sniff/?subject=<SUBJECT>"

Example:

curl "localhost:8080/sniff/?subject=device.*.connection"
{"device": {"id": "simulator-1","mac": "simulator-1","firmware": "1.0.0","eventType": "CONNECTED"}
{"device": {"id": "simulator-1","mac": "simulator-1"},"eventType": "DISCONNECTED"}

Vendored Dependencies

  • github.com/nats-io/nats

About

A simple sniffer for NATS, the cloud native messaging system. https://nats.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published