Skip to content

Commit

Permalink
add option in datadog_agent to extract hostnames (fixes)
Browse files Browse the repository at this point in the history
Fixes #160.

This option is a string regex which can be enabled and used to extract
the hostname from puppet hostname strings with a capture group.
It is useful for people that have specific puppet hostnames and that
would like to sanitize them before reporting those in Datadog.
  • Loading branch information
LeoCavaille authored and truthbk committed Apr 12, 2016
1 parent 117d27a commit 23eb8b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,4 @@
hostname_extraction_regex => $hostname_extraction_regex,
}
}

}
2 changes: 1 addition & 1 deletion manifests/reports.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class datadog_agent::reports(
$api_key,
$puppetmaster_user,
$hostname_extraction_regex
$hostname_extraction_regex = nil
) {

include datadog_agent::params
Expand Down

0 comments on commit 23eb8b2

Please sign in to comment.