top
(README.md)
test-client
===========

This client demonstrates how to send metrics into this proxy using the collectd protocol (or into collectd itself).

## Options

```
client$ ./client -h
Usage of ./client:
  -collectdhost="localhost": host to send metrics to
  -collectdport="8096": port to send metrics to
  -metrichost="testhost": 'hostname' tag for the metric
  -metricplugin="testclient": 'plugin' tag for the metric
  -metricplugininstance="v1": 'plugininstance' tag for the metric
  -metrictype="test": 'type' tag for the metric
  -metrictypeinstance="int": 'typeinstance' tag for the metric
  -metricvalue=100: the value of the metric (as a guage)
```

## Some more specific examples
Here are some further examples of how to "schema" your metrics:

### Record the occurence of network-timeout errors for the "helloworld" service:
* plugin: "service"
* plugininstance: "com.company.service.helloworld"
* type: "gauge"
* typeinstance: "network-timeout"

### Record the occurence of successfully-sent hello messages for the "helloworld" service:
* plugin: "service"
* plugininstance: "com.company.service.helloworld"
* type: "gauge"
* typeinstance: "hello-sent"

Imports 3 package(s) ΒΆ

  1. collectd.org/api
  2. collectd.org/network
  3. github.com/cihub/seelog