conkw documentation - PushToEmiGrabber

This is the PushToEmiGrabber grabber. It is used to push all or part of the configured grabbers data to another conkw instance, through the /emi endpoint. It is used to to send metrics from one to another conkw instance.

Use cases

Configuration

{
  "implementation":"net.pieroxy.conkw.webapp.grabbers.PushToEmiGrabber",
  "name":"p2emi",
  "config": {
    "toExtract":["sys"],
    "url":"http://localhost:12789/emi?ns=test_emi",
    "prefix":"mygrabber",
    "timeout":200
  }
}

Let's take the totalCpuUsage metric of the sys grabber. With the above configuration, the metric will be pushed as mygrabber_sys_totalCpuUsage. That's the prefix, the extractor name and the actual metric name, all separated by underscores.

How it works

Every second, the PushToEmiGrabber will grab metrics from the configured grabbers and send them to the distant conkw instance in one http (or https) call. This allows potentially thousands of servers to report their health status to a central instance.

Performance