Make redis-exporter work with external Redis instances
This commit adds support for using redis-exporter with an external Redis instance when enabled via: ``` redis_exporter['enable'] = true ``` Omnibus GitLab disables redis-exporter if the bundled Redis instance is disabled, but previously when redis-exporter were enabled it would always attempt to talk to a local UNIX socket. This commit has been tested with Google Memorystore with TLS enabled. Note that TLS client auth is not yet supported.
parent
a4a00242
No related branches found
No related tags found
Showing
- files/gitlab-cookbooks/monitoring/libraries/prometheus.rb 5 additions, 2 deletionsfiles/gitlab-cookbooks/monitoring/libraries/prometheus.rb
- files/gitlab-cookbooks/monitoring/recipes/redis-exporter.rb 5 additions, 1 deletionfiles/gitlab-cookbooks/monitoring/recipes/redis-exporter.rb
- files/gitlab-cookbooks/monitoring/templates/sv-redis-exporter-run.erb 1 addition, 1 deletion...-cookbooks/monitoring/templates/sv-redis-exporter-run.erb
- files/gitlab-cookbooks/package/libraries/helpers/new_redis_helper/redis_exporter.rb 27 additions, 0 deletions...kage/libraries/helpers/new_redis_helper/redis_exporter.rb
- spec/chef/cookbooks/monitoring/recipes/redis_exporter_spec.rb 28 additions, 0 deletions.../chef/cookbooks/monitoring/recipes/redis_exporter_spec.rb
Loading
Please register or sign in to comment