Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion manifests/integrations/php_fpm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
# $tags
# Optional array of tags
#
# $use_fastcgi
# Use fastcgi to get stats. Default: false
#
# Sample Usage:
#
# class { 'datadog_agent::integrations::php_fpm' :
Expand All @@ -29,7 +32,8 @@
$ping_reply = 'pong',
$http_host = undef,
$tags = [],
$instances = undef
$instances = undef,
$use_fastcgi = 'false'
) inherits datadog_agent::params {
include datadog_agent

Expand All @@ -40,6 +44,7 @@
'ping_url' => $ping_url,
'ping_reply' => $ping_reply,
'tags' => $tags,
'use_fastcgi' => $use_fastcgi,
}]
} else {
$_instances = $instances
Expand Down
2 changes: 2 additions & 0 deletions templates/agent-conf.d/php_fpm.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ instances:
<%- (Array(@_instances)).each do |instance| -%>
- # Get metrics from your FPM pool with this URL
status_url: <%= instance['status_url'] %>
# Get metrics using fastcgi
use_fastcgi: <%= instance['use_fastcgi'] %>
# Get a reliable service check of your FPM pool with that one
ping_url: <%= instance['ping_url'] %>
# Set the expected reply to the ping.
Expand Down