Skip to content

Commit

Permalink
Update jvm_prometheus_jmx_exporter.yaml.epp
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Dec 23, 2024
1 parent 418f78b commit 4d29fdf
Showing 1 changed file with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
lowercaseOutputName: true
lowercaseOutputLabelNames: true
blacklistObjectNames:
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.compiler.evaluate_resource.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.compiler.compile.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.puppetdb.catalog.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.puppetdb.facts.*
- puppetserver:name=puppetlabs.localhost.compiler.evaluate_resource.*
- puppetserver:name=puppetlabs.localhost.compiler.compile.*
- puppetserver:name=puppetlabs.localhost.puppetdb.catalog.*
- puppetserver:name=puppetlabs.localhost.puppetdb.facts.*
whitelistObjectNames:
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.compiler
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.compiler.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.functions
# - puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.puppetdb.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.memory.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http-client.experimental.with-metric-id.puppetdb.*
- puppetserver:name=puppetlabs.<%= $facts['networking']['fqdn'] %>.uptime
- puppetserver:name=puppetlabs.localhost.compiler
- puppetserver:name=puppetlabs.localhost.compiler.*
- puppetserver:name=puppetlabs.localhost.functions
# - puppetserver:name=puppetlabs.localhost.puppetdb.*
- puppetserver:name=puppetlabs.localhost.memory.*
- puppetserver:name=puppetlabs.localhost.jruby.*
- puppetserver:name=puppetlabs.localhost.http.*
- puppetserver:name=puppetlabs.localhost.http-client.experimental.with-metric-id.puppetdb.*
- puppetserver:name=puppetlabs.localhost.uptime

rules:
# Metrics from https://puppet.com/docs/puppetserver/latest/puppet_server_metrics.html#enabling-puppet-servers-graphite-support

## Compiler metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.compiler.([\w-]+)><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.compiler.([\w-]+)><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_compiler_seconds
type: GAUGE
help: "Time spent parsing/retrieving/compiling catalogs."
Expand All @@ -34,7 +34,7 @@
measurement: "$2"

## Function metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.functions><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.functions><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_functions_seconds
type: GAUGE
help: "The amount of time during catalog compilation spent in function calls."
Expand All @@ -43,7 +43,7 @@
measurement: "$1"

## HTTP metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http.total-requests><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.http.total-requests><>(Max|Min|Mean$|StdDev|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_http_requests_duration_seconds
type: GAUGE
help: "The time spent handling requests."
Expand All @@ -53,42 +53,42 @@
measurement: "$1"

## JRuby metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.borrow-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.borrow-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_borrow_timer
type: GAUGE
help: "The time spent with a borrowed JRuby."
valueFactor: 0.001
labels:
measurement: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.free-jrubies-histo><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.free-jrubies-histo><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_free_jrubies_histo
type: GAUGE
help: "A histogram of free JRubies over time. This metric’s average value should greater than 1; if it isn’t, more JRubies or another compile master might be needed to keep up with requests."
valueFactor: 0.001
labels:
measurement: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.lock-held-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.lock-held-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_lock_held_timer
type: GAUGE
help: "The time spent holding the JRuby lock."
valueFactor: 0.001
labels:
measurement: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.lock-wait-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.lock-wait-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_lock_wait_timer
type: GAUGE
help: "The time spent waiting to acquire the JRuby lock."
valueFactor: 0.001
labels:
measurement: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.requested-jrubies-histo><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.requested-jrubies-histo><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_requested_jrubies_histo
type: GAUGE
help: "A histogram of requested JRubies over time. This increases as the number of free JRubies, or the free-jrubies-histo metric, decreases, which can suggest that the server’s capacity is being depleted."
valueFactor: 0.001
labels:
measurement: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.wait-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.wait-timer><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_jruby_wait_timer
type: GAUGE
help: "The time spent waiting to borrow a JRuby."
Expand All @@ -98,7 +98,7 @@

# PuppetDB metrics
# puppetserver_puppetdb_duration_seconds{function="facts",measurement="Mean",} 0.08795445645602212
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http-client.experimental.with-metric-id.puppetdb.(.+).full-response><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
- pattern: 'puppetserver<name=puppetlabs.localhost.http-client.experimental.with-metric-id.puppetdb.(.+).full-response><>(Max|Min|Mean$|StdDev|Count|50thPercentile|75thPercentile|95thPercentile|99thPercentile)'
name: puppetserver_puppetdb_duration_seconds
type: GAUGE
help: "Time that Puppet Server spends sending or receiving data from PuppetDB."
Expand All @@ -110,76 +110,76 @@
# Counters only

## HTTP metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http.active-requests><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.http.active-requests><>Count'
name: puppetserver_http_requests_active
type: GAUGE
help: "The number of active HTTP requests."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http.total-requests><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.http.total-requests><>Count'
name: puppetserver_http_requests_total
type: COUNTER
help: "The number of active HTTP requests."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.http.(puppet.+percentage)><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.http.(puppet.+percentage)><>Value'
name: puppetserver_http_requests_percentage
type: GAUGE
help: "Percentage of each HTTP API endpoint’s share of total handled HTTP requests."
labels:
endpoint: "$1"

## JRuby metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.borrow-count><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.borrow-count><>Count'
name: puppetserver_jruby_borrow_count
type: COUNTER
help: "The number of successfully borrowed JRubies."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.borrow-retry-count><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.borrow-retry-count><>Count'
name: puppetserver_jruby_borrow_retry_count
type: COUNTER
help: "The number of attempts to borrow a JRuby that must be retried."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.borrow-timeout-count><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.borrow-timeout-count><>Count'
name: puppetserver_jruby_borrow_timeout_count
type: COUNTER
help: "The number of attempts to borrow a JRuby that resulted in a timeout."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.request-count><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.request-count><>Count'
name: puppetserver_jruby_request_count
type: COUNTER
help: "The number of requested JRubies."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.return-count><>Count'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.return-count><>Count'
name: puppetserver_jruby_return_count
type: COUNTER
help: "The number of JRubies successfully returned to the pool."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.num-free-jrubies><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.num-free-jrubies><>Value'
name: puppetserver_jruby_num_free_jrubies
type: COUNTER
help: "The number of free JRuby instances. If this number is often 0, more requests are coming in than the server has available JRuby instances. To alleviate this, increase the number of JRuby instances on the Server or add additional compile masters."
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.jruby.num-jrubies><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.jruby.num-jrubies><>Value'
name: puppetserver_jruby_num_jrubies
type: COUNTER
help: "The total number of JRuby instances on the server, governed by the max-active-instances setting. See Tuning JRuby on Puppet Server for details."

## Other metrics
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.uptime><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.uptime><>Value'
name: puppetserver_uptime
type: COUNTER
help: "Puppet Server process’s uptime."

- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.memory.([\w-]+).used><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.memory.([\w-]+).used><>Value'
name: puppetserver_memory_bytes_used
type: GAUGE
help: "Used bytes of a given JVM memory area."
labels:
area: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.memory.([\w-]+).committed><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.memory.([\w-]+).committed><>Value'
name: puppetserver_memory_bytes_committed
type: GAUGE
help: "Committed bytes of memory."
labels:
area: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.memory.([\w-]+).init><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.memory.([\w-]+).init><>Value'
name: puppetserver_memory_bytes_init
type: GAUGE
help: "Initialized bytes of memory."
labels:
area: "$1"
- pattern: 'puppetserver<name=puppetlabs.<%= $facts['networking']['fqdn'] %>.memory.([\w-]+).max><>Value'
- pattern: 'puppetserver<name=puppetlabs.localhost.memory.([\w-]+).max><>Value'
name: puppetserver_memory_bytes_max
type: GAUGE
help: "Maximum amount of memory that can be used."
Expand Down

0 comments on commit 4d29fdf

Please sign in to comment.