Class LibratoWriter

java.lang.Object
org.jmxtrans.embedded.output.AbstractOutputWriter
org.jmxtrans.embedded.output.LibratoWriter
All Implemented Interfaces:
OutputWriter

public class LibratoWriter
extends AbstractOutputWriter
implements OutputWriter
Librato Metrics implementation of the OutputWriter. This implementation uses POST /v1/metrics HTTP API. LibratoWriter uses the "query.attribute.type" configuration parameter (via QueryResult.getType()) to publish the metrics. Supported types are "counter" and "gauge". If the type is null or unsupported, metric is exported as "counter". Settings:
  • "url": Librato server URL. Optional, default value: "https://metrics-api.librato.com/v1/metrics".
  • "user": Librato user. Mandatory
  • "token": Librato token. Mandatory
  • "libratoApiTimeoutInMillis": read timeout of the calls to Librato HTTP API. Optional, default value: 1000.
  • "enabled": flag to enable/disable the writer. Optional, default value: {$code true}.
  • "source": Librato . Optional, default value: "#hostname#" (the hostname of the server).
Author:
Cyrille Le Clerc