Modify exported metrics

In addition to the default metrics, you can also export metrics measuring specific environments and nodes managed by Puppet Server.

The puppet_enterprise::profile::master::metrics_puppetserver_metrics_allowed parameter takes an array of metrics as strings. To export additional metrics, add them to this array.

Optional metrics include:

  • compiler.compile.<ENVIRONMENT> and compiler.compile.<ENVIRONMENT>.<NODE-NAME>, and all statistical fields suffixed to these, such as compiler.compile.<ENVIRONMENT>.mean.
  • compiler.compile.evaluate_resources.<RESOURCE>, which represents time spent evaluating a specific resource during catalog compilation.

Omit the puppetlabs.<MASTER-HOSTNAME> prefix and field suffixes (such as .count or .mean) from metrics. Instead, suffix the environment or node name as a field to the metric. For example:

  • To track the compilation time for the production environment, add compiler.compile.production to the metrics-allowed list.
  • To track only the my.node.localdomain node in the production environment, add compiler.compile.production.my.node.localdomain to the metrics-allowed list.