Skip to content

Instantly share code, notes, and snippets.

@baurmatt
Created August 15, 2018 08:57
Show Gist options
  • Save baurmatt/045e3d9d2fe593df836be4d3387047e6 to your computer and use it in GitHub Desktop.
Save baurmatt/045e3d9d2fe593df836be4d3387047e6 to your computer and use it in GitHub Desktop.
Puppetserver metrics.conf
# settings related to metrics
metrics: {
# a server id that will be used as part of the namespace for metrics produced
# by this server
server-id: "psdev01.puppet.example.org"
registries: {
puppetserver: {
# specify metrics to allow in addition to those in the default list
#metrics-allowed: ["compiler.compile.production"]
reporters: {
# enable or disable JMX metrics reporter
jmx: {
enabled: true
}
# enable or disable Graphite metrics reporter
#graphite: {
# enabled: true
#}
graphite: {
enabled: false
}
}
}
}
# this section is used to configure settings for reporters that will send
# the metrics to various destinations for external viewing
reporters: {
#graphite: {
# # graphite host
# host: "127.0.0.1"
# # graphite metrics port
# port: 2003
# # how often to send metrics to graphite
# update-interval-seconds: 5
#}
graphite: {
host: "127.0.0.1"
port: 2003
update-interval-seconds: 5
}
}
metrics-webservice: {
jolokia: {
# Enable or disable the Jolokia-based metrics/v2 endpoint.
# Default is true.
# enabled: false
# Configure any of the settings listed at:
# https://jolokia.org/reference/html/agents.html#war-agent-installation
servlet-init-params: {
# Specify a custom security policy:
# https://jolokia.org/reference/html/security.html
# policyLocation: "file:///etc/puppetlabs/puppetserver/jolokia-access.xml"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment