summaryrefslogtreecommitdiff
path: root/puppetserver/conf.d/metrics.conf
diff options
context:
space:
mode:
Diffstat (limited to 'puppetserver/conf.d/metrics.conf')
-rw-r--r--puppetserver/conf.d/metrics.conf53
1 files changed, 53 insertions, 0 deletions
diff --git a/puppetserver/conf.d/metrics.conf b/puppetserver/conf.d/metrics.conf
new file mode 100644
index 0000000..0e03d50
--- /dev/null
+++ b/puppetserver/conf.d/metrics.conf
@@ -0,0 +1,53 @@
+# 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: localhost
+ 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
+ #}
+ }
+
+ }
+ }
+
+ # 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
+ #}
+ }
+ 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"
+ }
+ }
+ }
+
+}