Skip to content
cyrille-leclerc edited this page Dec 30, 2012 · 12 revisions

Send metrics to a Graphite.

Settings

  • host: hostname or ip address of the Graphite server. Mandatory
  • port: listen port for the TCP Plain Text Protocol of the Graphite server. Optional, default value: 2003.
  • namePrefix: prefix append to the metrics name. Optional, default value: servers.#hostname#..

Sample configuration

"outputWriters": [
  {
    "@class": "org.jmxexporter.output.GraphiteWriter",
    "settings": {
      "host": "${graphite.host:localhost}",
      "port": "${graphite.port:2003}",
      "namePrefix: "${graphite.namePrefix:servers.#hostname#.}"
    }
  }
]

Hosted Graphite Configuration

Hosted Graphite Logo

JMX Exporter works well with cloud based monitoring solutions like Hosted Graphite.

Sample configuration:

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