An open API service indexing awesome lists of open source software.

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

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
```