-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add feature blackbox exporter #74
Conversation
templates/blackbox_exporter.yaml.erb
Outdated
@@ -0,0 +1,4 @@ | |||
<% require 'yaml' -%> | |||
<% modules = scope.lookupvar('::prometheus::blackbox_exporter::modules') -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just using @modules
should be fine as well
manifests/blackbox_exporter.pp
Outdated
# preferred_ip_protocol: ip4 | ||
class prometheus::blackbox_exporter ( | ||
Hash $modules = {}, | ||
$arch = $::prometheus::params::arch, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add datatypes to all of those params. An example is https://github.com/voxpupuli/puppet-prometheus/pull/68/files
Hi @bramblek1, thanks for the PR.
|
f27511c
to
0ae25b1
Compare
@bastelfreak please see changes to simplify template of 'modules' variable, all params with puppet4 types , commits squashed. |
Thanks! |
add feature blackbox exporter
Adds a wrapper around prometheus::daemon for the blackbox exporter, following the pattern of other exporters.