https://github.com/dougal/cpu_latency_forwarder
Sample app for script
https://github.com/dougal/cpu_latency_forwarder
Last synced: 11 months ago
JSON representation
Sample app for script
- Host: GitHub
- URL: https://github.com/dougal/cpu_latency_forwarder
- Owner: dougal
- Created: 2020-02-05T19:34:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T21:02:00.000Z (over 6 years ago)
- Last Synced: 2025-04-05T04:26:12.371Z (over 1 year ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPU Latency Forwarder
Forwards CPU latency samples taken from a eBPF script, to a graphite instance.
## Install
Tested on Ubuntu 18.04, on AMD64 architecture.
Install on node using Chef by running the following:
```
curl -fsSL https://github.com/dougal/cpu_latency_forwarder/raw/master/chef/install.sh | bash
```
Alternatively an example SystemD serivice unit is provided at `examples/cpu_latency_forwarder.service`.
## Usage
```
Usage: ./bin/run
-h HOSTNAME Specify the Graphite hostname. Default is 'localhost'.
-p PORT Specify the Graphite port. Default is '2003'.
-c PATH Specify the path of the CPU sampling script. Default is '/root/cpu_latency.bt'.
-i SECONDS Specify the period used to flush samples to Graphite. Default is '15'.
```
Any log messages are printed to STDOUT.
## Testing
Makes use of Mocha, which is available as a gem.
```
bundle install
rake
```