inspector-nats
Typescript Metrics Reporter for NATS.
This library is made for inspector-metrics node module and is meant to be used with typescript
/ nodejs
.
It uses node-nats-streaming as NATS client.
Install
npm install --save inspector-nats
Basic usage
If no subject
is given as parameter for the reportX
methods (reportEvent
in the following example), it will default to "DEFAULT_NATS_SUBJECT"
;; // instanciate the Nats reporter; // start reporterreporter.start .then .catch;
Running NATS Streaming Server locally
Refer to the Official NATS Streaming Server documentation (you can also directly go to the installing part).
Releasing / publish docs / publish package
# check functionalitynpm inpm run build # releasegit commit -am "release of a.b.c"git pushgit tag va.b.cgit push --tags # publish docsrm -fr docs/git branch -D gh-pagesgit worktree prunegit worktree listgit worktree add -b gh-pages docs origin/gh-pagesnpm run publishDocs # publish packagenpm publish