#eventsd-server
Eventsd service
Supports publishing eventsd messages to the following messaging services:
New services can be added using the internal pluggable messaging service interface.
Install
npm install -g eventsd-server
##Config
Specify an optional JSON configuration file:
eventsd -c path/to/config.json
The configuration file should have the following format (defaults shown):
{
"udpServer": {
"port": 8150,
"host": "0.0.0.0"
},
"websocketServer": {
"port": 8151
},
"publisher": {
"type": "amqp",
"options": {
"host": "127.0.0.1",
"port": 5672,
"user": "guest",
"password": "guest",
"vhost": "/",
"ssl": {
"enable": false
}
}
},
"consumer": {
"type": "amqp",
"options": {
"host": "127.0.0.1",
"port": 5672,
"user": "guest",
"password": "guest",
"vhost": "/",
"ssl": {
"enable": false
}
}
},
"publisherOnly": false,
"consumerOnly": false
}
##Environment Variables
The following environment variables are also available:
SZ_AMQP_HOST
SZ_AMQP_PORT
SZ_AMQP_USER
SZ_AMQP_PASSWORD
SZ_AMQP_VHOST
SZ_EVENTSD_SERVER_UDP_HOST
SZ_EVENTSD_SERVER_UDP_PORT
DEBUG
##Testing
amqp
Install and run rabbitMQ server on your local host.
Use Homebrew on OSx. All other distros have packages for rabbitMQ (install with your favorite package manager).