The Node-Red project is a visual tool for wiring the Internet of Things.
This package is Node-Red contribution for sending flows to a StatsD server.
Here's an example flow that places the output of an MQTT topic into a StatsD server:
- A StatsD server running in your network.
- Node.js installed
- Install Node-RED:
npm install -g node-red
- Install Statsd package
mkdir -p ~/.node-red/node_modules
npm install --prefix ~/.node-red node-red-contrib-statsd
node-red
- Open http://localhost:1880
- Add an input or function node that produces a numeric payload (an MQTT input topic works well)
- Add the statsd node, and connect it to the flow above
- Add configuration parameters:
- Update Node-RED:
npm update -g node-red
- Update Statsd package
npm update --prefix ~/.node-red node-red-contrib-statsd
MIT License. See LICENSE.txt for more details.