Day 15 in the #vDM30in30

As I discussed previously, I have been working on getting a Vagrant stack to demonstrate how JMX metrics from puppetserver look.

And I succeeded! (kind of…)

How it works

The main bit is here:

puppet_enterprise::profile::master::java_args:
  Xmx: '2048m'
  Xms: '2048m'
  'Dcom.sun.management.jmxremote.port': '=1099'
  'Dcom.sun.management.jmxremote.authenticate': '=false'
  'Dcom.sun.management.jmxremote.ssl': '=false'

This is hiera config, that sets Puppet Enterprise’s specific Puppet code to configure puppetserver JAVA_ARGS, which will start the JMX service on 1099.

From there, we can configure a generic profile to setup jmxtrans on the Puppet master machine:

Peter Souter

Just some guy y’know?

Technical Account Manager

London, UK