lookfirst/jmxtrans — pull request #33 by gregwork (2012-07-04 07:28:32+00:00)
Title: Allow arbitrary JMX URL definitions in YAML config ...

... including hostname/port templating

Add a 'urlTemplate' attribute at the 'setname' level if you need a custom JMX
URL that doesn't match the hard coded default (as defined in
src/com/googlecode/jmxtrans/model/Server.java, effectively
service:jmx:rmi:///jndi/rmi://hostname:port/jmxrmi)

If unset, the default behaviour of using the hard coded string above is
unchanged.

The templating currently understands $hostname (being the current host in the
setname's hosts list), and $query_port (defined as a global setting in the YAML
config).

Example:
```
sets:
- setname: set1
urlTemplate: service:jmx:rmi://$hostname:$query_port/jndi/rmi://$hostname:1099/karaf-root
query_names:
- mempool
hosts:
- host1.f.q.d.n
```