Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oroce/godot-influxdb
influxdb forwarder for godot
https://github.com/oroce/godot-influxdb
Last synced: 24 days ago
JSON representation
influxdb forwarder for godot
- Host: GitHub
- URL: https://github.com/oroce/godot-influxdb
- Owner: oroce
- Created: 2014-06-01T16:03:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-27T14:29:04.000Z (over 10 years ago)
- Last Synced: 2024-10-19T07:05:01.352Z (2 months ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[http://influxdb.org](influxdb) forwarder for [http://github.com/nodejitsu/godot](godot).
### Example
var godot = require('godot');
var influxdb = require('godot-influxdb');
godot.createServer({
type: 'tcp',
multiplex: false,
reactors: [
function(socket) {
socket
.pipe(godot.console())
.pipe(influxdb({
username: 'root',
password: 'root',
database: 'a-existing-influx-database',
port: 8083,
host: 'localhost',
format: function(data) {
return {
name: 'custom.name.because.i.can',
metric: {
'anything': 'that influx can understand',
time: data.time,
metaValue: data.meta.value
}
};
}));
}
]
}).listen(1337);### Warning
[http://github.com/nodejitsu/godot](godot) currently added as dependency, I'm gonna move it `peerDependency` as soon as 1.0.0 will be released.