https://github.com/tokenrove/erl-tcp-metrics
Read Linux kernel TCP metrics from Erlang
https://github.com/tokenrove/erl-tcp-metrics
Last synced: 5 days ago
JSON representation
Read Linux kernel TCP metrics from Erlang
- Host: GitHub
- URL: https://github.com/tokenrove/erl-tcp-metrics
- Owner: tokenrove
- License: gpl-2.0
- Created: 2016-02-08T12:48:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T13:34:28.000Z (about 10 years ago)
- Last Synced: 2025-04-03T19:47:06.036Z (over 1 year ago)
- Language: C
- Size: 1.06 MB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
tcp_metrics
===========
Reads RTT information from the Linux kernel over netlink. (The
information is updated every five seconds because there is presently
no mechanism to subscribe to these updates.)
Some code is derived from iproute2. Correspondingly, this package is
licenced under the GPLv2. See the file [COPYING](COPYING) for
details.
Build
-----
Requires [libnl](https://www.infradead.org/~tgr/libnl/).
$ ./rebar3 compile
Usage
-----
Start the `tcp_metrics` application and call `tcp_metrics:lookup(Ip)`
or read straight from the ETS table created; the returned value is
either `undefined` or an integer in milliseconds.
You can filter by source address by setting `source_address` in the
application environment before the application is started; e.g.:
```
application:set_env(tcp_metrics, source_address, {127,0,0,1}).
```