-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Added redis_exporter module #45
Conversation
It installs https://github.com/oliver006/redis_exporter which seems to be the most used redis exporter for Prometheus. It uses prometheus::daemon although I had to redefine the archive extraction code in the exporter class due to packaging differences.
# [*version*] | ||
# The binary release version | ||
class prometheus::redis_exporter ( | ||
$addr = $::prometheus::params::redis_exporter_redis_address, |
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.
can you add puppet4 datatypes to the parameters?
$release = "v${version}" | ||
|
||
$real_download_url = pick($download_url, "${download_url_base}/download/${release}/${package_name}-${release}.${os}-${arch}.${download_extension}") | ||
validate_bool($purge_config_dir) |
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.
you can drop these validate_* calls, they're deprecated and replaced by datatypes
ping @vide |
Sorry @bastelfreak still on 3.8 at work so I have to setup Puppet 4 to write and test the code, and currently have very little spare time :( |
clone from voxpupuli#45 (added puppet4 datatypes and drop validate_* calls)
Duplicated by #157 |
Hi @vide and @bastelfreak , I've created this PR #224 to use "redis.file" parameter as default for this exporter. Hope this could helps! |
Hi, |
clone from voxpupuli#45 (added puppet4 datatypes and drop validate_* calls)
clone from voxpupuli#45 (added puppet4 datatypes and drop validate_* calls)
It installs https://github.com/oliver006/redis_exporter which
seems to be the most used redis exporter for Prometheus.
It uses prometheus::daemon although I had to redefine the archive
extraction code in the exporter class due to packaging differences.