blob: ad75e67ffd1a242cad839f8a8ab9579fcb23c47c [file] [log] [blame]
# Class: datadog_agent::integrations::php_fpm
#
# This class will set-up PHP FPM monitoring
#
# Parameters:
# $status_url
# URL to fetch FPM metrics. Default: http://localhost/status
#
# $ping_url
# URL to get a reliable check of the FPM pool. Default: http://localhost/ping
#
# $tags
# Optional array of tags
#
# Sample Usage:
#
# class { 'datadog_agent::integrations::php_fpm' :
# status_url => 'http://localhost/fpm_status',
# ping_url => 'http://localhost/fpm_ping'
# }
#
class datadog_agent::integrations::php_fpm(
$status_url = 'http://localhost/status',
$ping_url = 'http://localhost/ping',
$tags = []
) inherits datadog_agent::params {
include datadog_agent
file { "${datadog_agent::params::conf_dir}/php_fpm.yaml":
ensure => file,
owner => $datadog_agent::params::dd_user,
group => $datadog_agent::params::dd_group,
mode => '0600',
content => template('datadog_agent/agent-conf.d/php_fpm.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name]
}
}