Skip to content
jaylemur edited this page May 10, 2015 · 12 revisions

Send metrics to a Graphite server.

Settings

  • host: hostname or ip address of the Graphite server. Mandatory.
  • port: listen port for the TCP Carbon Plain Text Protocol of the Graphite server. Optional, default value: 2003.
  • namePrefix: prefix append to the metrics name. Optional, default value: servers.#hostname#..
  • enabled: flag to enable/disable the writer. Optional, default value: true.
  • protocol: protocol used to send data. Optional, possible values: TCP/UDP, default value: TCP.

Sample configuration

"outputWriters": [
  {
    "@class": "org.jmxtrans.embedded.output.GraphiteWriter",
    "settings": {
      "host": "${graphite.host:localhost}",
      "port": "${graphite.port:2003}",
      "namePrefix": "${graphite.namePrefix:servers.#hostname#.}",
      "enabled": "${graphite.enabled:true}",
      "protocol": "${graphite.protocol:TCP}"
    }
  }
]

Hosted Graphite Configuration

Hosted Graphite Logo

EmbeddedJmxTrans works well with cloud based monitoring solutions like Hosted Graphite.

You just have to prefix your metrics name by your Hosted Graphite API Key available on you Hosted Graphite Account page.

Sample configuration:

"outputWriters": [
  {
    "@class": "org.jmxtrans.embedded.output.GraphiteWriter",
    "settings": {
      "host": "carbon.hostedgraphite.com",
      "port": 2003,
      "namePrefix: "<<YOUR-API-KEY>>.servers.#hostname#."
    }
  }
]

Hosted Graphite API Key available on you Hosted Graphite Account page

Hosted Graphite Account Page - API Key