Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/tsd
spins up a server to receive time-series data via tcp streams and then graphs it in the browser via web-sockets
https://github.com/heapwolf/tsd
Last synced: 5 days ago
JSON representation
spins up a server to receive time-series data via tcp streams and then graphs it in the browser via web-sockets
- Host: GitHub
- URL: https://github.com/heapwolf/tsd
- Owner: heapwolf
- Created: 2013-03-11T22:05:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-12T01:39:43.000Z (over 11 years ago)
- Last Synced: 2024-11-01T18:37:37.690Z (12 days ago)
- Language: JavaScript
- Homepage:
- Size: 467 KB
- Stars: 51
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NAME
tsd-web(3)# SYNOPSIS
Spin up a quick server to visualize time series data.# USAGE
Deadly simple. just specify the ports you want it to listen on.```js
var tsd = require('tsd-web');tsd({
http: 80,
tcp: 9099
});
```Write some dummy data to the socket (LINE DELIMITED!).
```js
var net = require('net');
var x = 0;
var client = net.connect({ port: 9099 }, function() {function write(json) {
client.write(JSON.stringify(json) + '\n');
}
setInterval(function() {x++;
write({ key: 'hello', value: (Math.random() + x) / 50 });
write({ key: 'goodbye', value: (Math.random() + x) / 20 });
write({ key: 'ohai', value: 1000 });
write({ key: 'neat-stuff', value: (Math.random() + x) / 10 });}, 150);
});
```# WUT?
![screenshot](/screenshot.png)# TODO
This is a work in progress. Pull requests welcome.- Provide a way to flush the cache.