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

Add Prometheus Exports to Mongodb Replicaset #5874

Merged
merged 5 commits into from
Jun 18, 2018

Conversation

ssalaues
Copy link
Collaborator

@ssalaues ssalaues commented Jun 1, 2018

What this PR does / why we need it:

  1. Adds option for prometheus compatible metric exports in all pods under the Mongodb-replicaset chart
  2. Fixes some broken TLS chart functionality and allows the metrics exporter to use TLS options

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

Special notes for your reviewer:
First PR into kubernetes/charts 😁

Salim Salaues added 3 commits June 1, 2018 14:52
1. Moves context of ssl configuration script into /work-dir
where certain files are expected to be created.

2. Specifies the --sslMode=requireSSL flag on the container command when using TLS
as specified by mongo docs.
https://docs.mongodb.com/manual/tutorial/configure-ssl/
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jun 1, 2018
@k8s-ci-robot k8s-ci-robot requested review from foxish and unguiculus June 1, 2018 22:00
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 1, 2018
@ssalaues
Copy link
Collaborator Author

ssalaues commented Jun 1, 2018

Just signed the CLA with my github! 😄

Also I added dockerfiles for the container but not necessary to the functionality. If it's not wanted, I can drop those files which would reduce the size of this PR.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jun 1, 2018
@ssalaues
Copy link
Collaborator Author

ssalaues commented Jun 1, 2018

/assign @foxish

Copy link
Member

@prydonius prydonius left a comment

Choose a reason for hiding this comment

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

thanks! lgtm in general, the minor version needs to be bumped as this is a new feature (we follow semver).

/ok-to-test

@@ -1,12 +1,13 @@
name: mongodb-replicaset
home: https://github.com/mongodb/mongo
version: 3.4.0
version: 3.4.1
Copy link
Member

Choose a reason for hiding this comment

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

this should be bumped to 3.5.0 as this is a new feature

@prydonius
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 15, 2018
@ssalaues
Copy link
Collaborator Author

Thanks for the feedback! I bumped the version to 3.5 and fixed the conflicts.

@prydonius
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Jun 18, 2018
@k8s-ci-robot k8s-ci-robot merged commit 4fa2cd3 into helm:master Jun 18, 2018
@unguiculus
Copy link
Member

unguiculus commented Jun 21, 2018

@prydonius @ssalaues I'm inclined to revert this PR.

  • Always adds annotation for Prometheus. You don't need them if you use prometheus-operator.
  • The Makefile has stuff specific to Google Container Registry in it but the image is on Dockerhub. Why?
  • Doesn't follow best practices for specifying images.
  • Most importantly: Uses the admin user for the exporter instead of a user with the clusterMonitor role. This is bad practice and a security risk. We should not have such practices in the chart.

@prydonius
Copy link
Member

@unguiculus sure, I think we should go ahead and revert this. Once reverted, @ssalaues can re-create a PR to apply the changes and we can try to solve some of the issues you mentioned.

unguiculus added a commit to unguiculus/charts that referenced this pull request Jun 21, 2018
@ssalaues
Copy link
Collaborator Author

@unguiculus I'll make the requested changes and re create the PR. Thanks!

k8s-ci-robot pushed a commit that referenced this pull request Jun 21, 2018
@unguiculus
Copy link
Member

@ssalaues Thanks. I'll be happy to assist. You can find my on Kubernetes Slack.

Ferenc- pushed a commit to Ferenc-/charts that referenced this pull request Jun 26, 2018
or1can pushed a commit to or1can/charts that referenced this pull request Jul 10, 2018
* Replicaset Prometheus Metrics export

* bugfix: Fix TLS issues

1. Moves context of ssl configuration script into /work-dir
where certain files are expected to be created.

2. Specifies the --sslMode=requireSSL flag on the container command when using TLS
as specified by mongo docs.
https://docs.mongodb.com/manual/tutorial/configure-ssl/

* Documentation on metrics options

* Bump Chart Version
or1can pushed a commit to or1can/charts that referenced this pull request Jul 10, 2018
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
* Replicaset Prometheus Metrics export

* bugfix: Fix TLS issues

1. Moves context of ssl configuration script into /work-dir
where certain files are expected to be created.

2. Specifies the --sslMode=requireSSL flag on the container command when using TLS
as specified by mongo docs.
https://docs.mongodb.com/manual/tutorial/configure-ssl/

* Documentation on metrics options

* Bump Chart Version

Signed-off-by: voron <av@arilot.com>
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
…lm#6253)

This reverts commit 4fa2cd3.

Signed-off-by: voron <av@arilot.com>
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants