Skip to content
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

Merged
merged 1 commit into from Oct 23, 2017

Conversation

bramblek1
Copy link

Adds a wrapper around prometheus::daemon for the blackbox exporter, following the pattern of other exporters.

@@ -0,0 +1,4 @@
<% require 'yaml' -%>
<% modules = scope.lookupvar('::prometheus::blackbox_exporter::modules') -%>
Copy link
Member

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

# preferred_ip_protocol: ip4
class prometheus::blackbox_exporter (
Hash $modules = {},
$arch = $::prometheus::params::arch,
Copy link
Member

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

@bastelfreak bastelfreak added the enhancement New feature or request label Oct 19, 2017
@bastelfreak
Copy link
Member

Hi @bramblek1, thanks for the PR.

  • Can you squash those commits a bit?
  • Please take a look at the inline comments I made

@bramblek1
Copy link
Author

@bastelfreak please see changes to simplify template of 'modules' variable, all params with puppet4 types , commits squashed.

@bastelfreak
Copy link
Member

Thanks!

@bastelfreak bastelfreak merged commit d034688 into voxpupuli:master Oct 23, 2017
@bramblek1 bramblek1 deleted the blackbox_exporter branch December 18, 2018 02:02
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants