Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[stable/redis-ha] Add Optional Prometheus Exporter Sidecar #11085

Conversation

tmitrovich
Copy link
Contributor

Added support for an optional prometheus exporter sidecar container in each Redis pod.

Signed-off-by: Tim Mitrovich tim@mitrovich.net

What this PR does / why we need it:

This PR adds support for (optionally) injecting a prometheus Redis exporter container in each Redis pod as a sidecar. This addition makes it really easy to add metrics scraping to all Redis pods without having to install the exporters as separate pods. The exporter sidecar is disabled by default so until the sidecar is enabled, this chart will behave as it always have. That way existing users won't "accidentally" get the sidecar, but those that do want it can easily turn it on.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

Added support for an optional prometheus exporter sidecar container in each redis pod.

Signed-off-by: Tim Mitrovich <tim@mitrovich.net>
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). labels Feb 2, 2019
@k8s-ci-robot k8s-ci-robot requested a review from foxish February 2, 2019 02:22
@tmitrovich
Copy link
Contributor Author

/assign @ssalaues

@k8s-ci-robot
Copy link
Contributor

@tmitrovich: GitHub didn't allow me to assign the following users: ssalaues.

Note that only helm members and repo collaborators can be assigned and that issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @ssalaues

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Collaborator

@ssalaues ssalaues left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much welcome PR just needs some minor changes/updates

* Added https://github.com/oliver006/redis_exporter to the sources list
* Added ability to configure resource limits
* Added ability to pull redis password from the existing redis secret so that we don't have plain text passwords in the config files
* Added ability to configure port and metrics scraping path
* Updated comments about the default install of redis-ha chart
* Added livenessProbe to exporter container

Signed-off-by: Tim Mitrovich <tim@mitrovich.net>
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 5, 2019
@tmitrovich
Copy link
Contributor Author

@ssalaues good suggestions. I implemented all of the suggestions. Have a look and let me know if there is anything else you think we should do.

@ssalaues
Copy link
Collaborator

ssalaues commented Feb 7, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ssalaues, tmitrovich

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2019
@k8s-ci-robot k8s-ci-robot merged commit df256c3 into helm:master Feb 7, 2019
towolf pushed a commit to towolf/charts that referenced this pull request Feb 7, 2019
* [stable/redis-ha] Add Optional Prometheus Exporter Sidecar

Added support for an optional prometheus exporter sidecar container in each redis pod.

Signed-off-by: Tim Mitrovich <tim@mitrovich.net>

* [stable/redis-ha] Add Optional Prometheus Exporter Sidecar

* Added https://github.com/oliver006/redis_exporter to the sources list
* Added ability to configure resource limits
* Added ability to pull redis password from the existing redis secret so that we don't have plain text passwords in the config files
* Added ability to configure port and metrics scraping path
* Updated comments about the default install of redis-ha chart
* Added livenessProbe to exporter container

Signed-off-by: Tim Mitrovich <tim@mitrovich.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
4 participants