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>andcompiler.compile.<ENVIRONMENT>.<NODE-NAME>, and all statistical fields suffixed to these, such ascompiler.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
productionenvironment, addcompiler.compile.productionto themetrics-allowedlist. - To track only the
my.node.localdomainnode in theproductionenvironment, addcompiler.compile.production.my.node.localdomainto themetrics-allowedlist.






