puppet_metrics_collector
: This module manages the collection of Puppet and system Metricspuppet_metrics_collector::system
: This class manages collect postgres and system metrics
puppet_metrics_collector::service::ace
: Collects ace metricspuppet_metrics_collector::service::bolt
: Collects bolt metricspuppet_metrics_collector::service::console
: Collects console metricspuppet_metrics_collector::service::orchestrator
: Collects orchestrator metricspuppet_metrics_collector::service::puppetdb
: Collects puppetdb metricspuppet_metrics_collector::service::puppetserver
: Collect puppetserver metricspuppet_metrics_collector::system::postgres
: Collects postgres Metricspuppet_metrics_collector::system::processes
: Collects System Processes Metricspuppet_metrics_collector::system::sar
: Collects System CPU Metricspuppet_metrics_collector::system::vmware
: Collects System vmware Metrics
puppet_metrics_collector::collect
: Creates systemd units for collecting a given metricpuppet_metrics_collector::deprecated_parameter
puppet_metrics_collector::pe_metric
: A defined type to manage the configuration of tbe different metrics collection targetspuppet_metrics_collector::sar_metric
: This class manages the collections of SAR metrics
puppet_metrics_collector::hosts_with_pe_profile
: Function: hosts_with_pe_profile Queries PuppetDB for hosts with the specified Puppet Enterprise profile. Used by this module to query Puppetpuppet_metrics_collector::to_yaml
: Description: Converts the content of the passed array or hash to YAMLpuppet_metrics_collector::version_based_excludes
: Function: version_based_excludes Description: Generates a list of services to exlude based on the metrics type
Optional Enum['splunk_hec']: The metrics server type to send data to. Default: undef
@ param metrics_server_hostname Optional String: The hostname of the metrics server to send data to. Default: undef
@ param metrics_server_port Optional Integer: The port number of the metrics server to send data to. Default: undef
Optional String: (Deprecated)The database name on the metrics server to send data to. Default: undef
Optional String: Allows you to define the command that is executed to gather metrics. Default: undef
Optional String: Collection of ActiveMQ metrics has been removed, but the parameters are left to avoid breaking upgrades Optional String: Collection of ActiveMQ metrics has been removed, but the parameters are left to avoid breaking upgrades Optional Integer: Collection of ActiveMQ metrics has been removed, but the parameters are left to avoid breaking upgrades
The following parameters are available in the puppet_metrics_collector
class:
puppetserver_metrics_ensure
output_dir
collection_frequency
retention_days
puppetserver_hosts
puppetserver_port
puppetdb_metrics_ensure
puppetdb_hosts
puppetdb_port
orchestrator_metrics_ensure
orchestrator_hosts
orchestrator_port
console_metrics_ensure
console_hosts
console_port
ace_metrics_ensure
ace_hosts
ace_port
bolt_metrics_ensure
bolt_hosts
bolt_port
metrics_server_type
metrics_server_db_name
override_metrics_command
activemq_metrics_ensure
activemq_hosts
activemq_port
puppetserver_excludes
puppetdb_excludes
orchestrator_excludes
console_excludes
ace_excludes
bolt_excludes
activemq_excludes
metrics_server_hostname
metrics_server_port
Data type: String
Whether to enable or disable the collection of Puppetserver metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: String
The directory to write the metrics to. Default: '/opt/puppetlabs/puppet-metrics-collector'
Default value: '/opt/puppetlabs/puppet-metrics-collector'
Data type: Integer
The frequency to collect metrics in minutes. Default: '5'
Default value: 5
Data type: Integer
The number of days to retain metrics. Default: '90'
Default value: 90
Data type: Array[String]
The list of puppetserver hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the puppetserver profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('master')
Data type: Integer
Port to connect to puppetserver on. Default: '8140'
Default value: 8140
Data type: String
Whether to enable or disable the collection of PuppetDB metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: Array[String]
The list of puppetdb hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the puppetdb profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('puppetdb')
Data type: Integer
Port to connect to puppetdb on. Default: '8081'
Default value: 8081
Data type: String
Whether to enable or disable the collection of Orchestrator metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: Array[String]
The list of orchestrator hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the orchestrator profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('orchestrator')
Data type: Integer
Port to connect to orchestrator on. Default: '8143'
Default value: 8143
Data type: String
Whether to enable or disable the collection of PE Console metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: Array[String]
The list of console hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the console profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('console')
Data type: Integer
Port to connect to console on. Default: '4433'
Default value: 4433
Data type: String
Whether to enable or disable the collection of Ace metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: Array[String]
The list of ace hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the ace profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('ace_server')
Data type: Integer
Port to connect to ace on. Default: '44633'
Default value: 44633
Data type: String
Whether to enable or disable the collection of Bolt metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: Array[String]
The list of bolt hosts to collect metrics from. Uses the hosts_with_pe_profile function to determine the list of hosts with the bolt profile.
Default value: puppet_metrics_collector::hosts_with_pe_profile('bolt_server')
Data type: Integer
Port to connect to bolt on. Default: '62658'
Default value: 62658
Data type: Optional[Enum['influxdb', 'graphite', 'splunk_hec']]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: Optional[String]
Default value: undef
Data type: String
Default value: 'absent'
Data type: Array[String]
Default value: []
Data type: Integer
Default value: 8161
Data type: Optional[Array[String]]
An Array of metrics to exclude from the puppetserver metrics collection.
Default value: undef
Data type: Optional[Array[String]]
An Array of metrics to exclude from the puppetdb metrics collection.
Default value: undef
Data type: Optional[Array[String]]
An Array of metrics to exclude from the orchestrator_excludes metrics collection.
Default value: undef
Data type: Optional[Array[String]]
An Array of metrics to exclude from the console_excludes metrics collection.
Default value: undef
Data type: Optional[Array[String]]
An Array of metrics to exclude from the ace_excludes metrics collection.
Default value: undef
Data type: Optional[Array[String]]
An Array of metrics to exclude from the bolt_excludes metrics collection.
Default value: undef
Data type: Optional[Array[String]]
Collection of ActiveMQ metrics has been removed, but the parameters are left to avoid breaking upgrades
Default value: undef
Data type: Optional[String]
The hostname of the metrics server to send data to. Default: undef
Default value: undef
Data type: Optional[Integer]
(Deprecated) The port number of the metrics server to send data to. Default: undef
Default value: undef
This class manages collect postgres and system metrics
The following parameters are available in the puppet_metrics_collector::system
class:
system_metrics_ensure
output_dir
collection_frequency
retention_days
polling_frequency_seconds
manage_sysstat
manage_vmware_tools
vmware_tools_pkg
metrics_server_type
metrics_server_hostname
metrics_server_port
metrics_server_db_name
Data type: String
Whether to enable or disable the collection of System metrics. Valid values are 'present', and 'absent'. Default : 'present'
Default value: 'present'
Data type: String
The directory to write the metrics to. Default: '/opt/puppetlabs/puppet-metrics-collector'
Default value: '/opt/puppetlabs/puppet-metrics-collector'
Data type: Integer
The frequency to collect metrics in minutes. Default: '5'
Default value: 5
Data type: Integer
The number of days to retain metrics. Default: '90'
Default value: 90
Data type: Integer
Default value: 1
Data type: Boolean
Default value: false
Data type: Boolean
Default value: false
Data type: String
Default value: 'open-vm-tools'
Data type: Optional[Enum['influxdb', 'graphite', 'splunk_hec']]
Default value: getvar('puppet_metrics_collector::metrics_server_type')
Data type: Optional[String]
Default value: getvar('puppet_metrics_collector::metrics_server_hostname')
Data type: Optional[Integer]
Default value: getvar('puppet_metrics_collector::metrics_server_port')
Data type: Optional[String]
Default value: getvar('puppet_metrics_collector::metrics_server_db_name')
Creates systemd units for collecting a given metric
The following parameters are available in the puppet_metrics_collector::collect
defined type:
Data type: Enum['present', 'absent']
Default value: 'present'
Data type: String
Default value: $title
Data type: String
Default value: undef
Data type: String
Default value: undef
Data type: Optional[Hash]
Default value: undef
Data type: String
Default value: 'present'
Data type: String
Default value: '5'
The puppet_metrics_collector::deprecated_parameter class.
A defined type to manage the configuration of tbe different metrics collection targets
The following parameters are available in the puppet_metrics_collector::pe_metric
defined type:
metrics_type
metric_ensure
cron_minute
retention_days
hosts
metrics_port
metric_script_file
ssl
excludes
additional_metrics
override_metrics_command
metrics_server_type
env_vars
Data type: String
Default value: $title
Data type: Enum['absent', 'present']
Default value: 'present'
Data type: String
Default value: '0/5'
Data type: Integer
Default value: 90
Data type: Array[String]
Default value: ['127.0.0.1']
Data type: Integer
Default value: undef
Data type: String
Default value: 'tk_metrics'
Data type: Boolean
Default value: true
Data type: Array[String]
Default value: puppet_metrics_collector::version_based_excludes($title)
Data type: Array[Hash]
Default value: []
Data type: Optional[String]
Default value: undef
Data type: Optional[Enum['splunk_hec']]
Default value: undef
Data type: Optional[Hash]
Default value: undef
How often the target is requested to provide data, in seconds. Default: 1
The following parameters are available in the puppet_metrics_collector::sar_metric
defined type:
collection_frequency
retention_days
polling_frequency_seconds
cron_minute
metrics_type
metric_ensure
metric_script_file
metrics_shipping_command
env_vars
Data type: Integer
The frequency to collect metrics in minutes. Default: '5'
Default value: 5
Data type: Integer
The number of days to retain metrics. Default: '90'
Default value: 90
Data type: Integer
Default value: 1
Data type: String
The minute to run the cron job. Default: '0/5'
Default value: '0/5'
Data type: String
The string aide to identify the metrics type, this is used to create the metrics file name.
Default value: $title
Data type: Enum['absent', 'present']
The ensure value for the metrics file. Default: 'present'
Default value: 'present'
Data type: String
The script file to run to collect the metrics. Default: 'system_metrics'
Default value: 'system_metrics'
Data type: String
The parameter that defines the command for the remote shipping of metrics. Default: '$puppet_metrics_collector::system::metrics_shipping_command'
Default value: $puppet_metrics_collector::system::metrics_shipping_command
Data type: Optional[Hash]
Default value: undef
Type: Puppet Language
Function: hosts_with_pe_profile
Queries PuppetDB for hosts with the specified Puppet Enterprise profile. Used by this module to query Puppet Enterprise API endpoints. Parameters:
Results:
Function: hosts_with_pe_profile
Queries PuppetDB for hosts with the specified Puppet Enterprise profile. Used by this module to query Puppet Enterprise API endpoints. Parameters:
Results:
Returns: Any
$hosts: an array of certnames. or ['127.0.0.1'] when PuppetDB returns no hosts.
Data type: Any
the short name of the Puppet Enterprise profile.
Type: Ruby 4.x API
Description: Converts the content of the passed array or hash to YAML
The puppet_metrics_collector::to_yaml function.
Returns: String
YAML representation of the passed array or hash
Data type: Hash
The puppet_metrics_collector::to_yaml function.
Returns: String
YAML representation of the passed array or hash
Data type: Array
Type: Puppet Language
Function: version_based_excludes
Description: Generates a list of services to exlude based on the metrics type
Function: version_based_excludes
Description: Generates a list of services to exlude based on the metrics type
Returns: Array[String]
excludes the list of services to exclude
Data type: String[1]
the service currently compiling metrics for