Skip to content

Commit 0d138f9

Browse files
Php-fpm Integration - enable use of fastcgi (DataDog#616)
Add use_fastcgi parameter.
1 parent 1477879 commit 0d138f9

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

manifests/integrations/php_fpm.pp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
# $tags
1616
# Optional array of tags
1717
#
18+
# $use_fastcgi
19+
# Use fastcgi to get stats. Default: false
20+
#
1821
# Sample Usage:
1922
#
2023
# class { 'datadog_agent::integrations::php_fpm' :
@@ -29,7 +32,8 @@
2932
$ping_reply = 'pong',
3033
$http_host = undef,
3134
$tags = [],
32-
$instances = undef
35+
$instances = undef,
36+
$use_fastcgi = 'false'
3337
) inherits datadog_agent::params {
3438
include datadog_agent
3539

@@ -40,6 +44,7 @@
4044
'ping_url' => $ping_url,
4145
'ping_reply' => $ping_reply,
4246
'tags' => $tags,
47+
'use_fastcgi' => $use_fastcgi,
4348
}]
4449
} else {
4550
$_instances = $instances

templates/agent-conf.d/php_fpm.yaml.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ instances:
66
<%- (Array(@_instances)).each do |instance| -%>
77
- # Get metrics from your FPM pool with this URL
88
status_url: <%= instance['status_url'] %>
9+
# Get metrics using fastcgi
10+
use_fastcgi: <%= instance['use_fastcgi'] %>
911
# Get a reliable service check of your FPM pool with that one
1012
ping_url: <%= instance['ping_url'] %>
1113
# Set the expected reply to the ping.

0 commit comments

Comments
 (0)