-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Migrate prometheus operator from coreos #6765
Conversation
afaa2b1
to
952e6e5
Compare
# memory: 100Mi | ||
# requests: | ||
# cpu: 100m | ||
# memory: 50Mi |
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.
prometheus-operator/prometheus-operator@dcca972#diff-316e3be0fdb46f4d221f84162f7d03f8
I think the values in the sample should reflect the updated memory limit - defaults are forever!
@@ -0,0 +1,2412 @@ | |||
{{- if .Values.createCustomResource -}} |
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.
createCustomResource
should be documented and added to values.yaml ?
@@ -0,0 +1,16 @@ | |||
{{- if .Values.rbacEnable }} |
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.
These appear as rbac.*
configurations in the readme and values.yaml
Made updates here with these and other suggested changes. |
|
||
## Introduction | ||
|
||
This chart bootstraps a [prometheus-operator](https://github.com/coreos/prometheus-operator) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. |
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.
As we have already https://github.com/helm/charts/tree/master/stable/prometheus. Can we quickly specify the differences to the users.
bb0a81b
to
4c7ac8b
Compare
@vsliouniaev I applied your changes here. TODO list
|
@gianrubio, since we're planning to use It should be easy to template and we could even provide it as a subchart so that it's usable with I would say we should try to get #7060 merged if we go that route. Using the grafana values to embed dashboards seems problematic for size reasons. |
@stealthybox I think the creation of dashboards and datasources is better handled by the kube-prometheus Chart, that at some point it will pull this new upstream Charts as dependencies, since dashboards and datasources are not directly related to the prometheus-operator.
|
@richerve we're on the same page. We can configure The
|
endpoints: | ||
- port: http-metrics | ||
interval: 15s | ||
tlsConfig: |
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.
Should we drop/comment out tlsConfig here? kube-controller-manager metrics are only available via http kubernetes/kubernetes#58982
@gianrubio anything I can do to help out here? I would love to see this PR getting merged. |
The
Can we remove that and try the e2e job again? We'd also love to see this move forward, as well. |
I’m being lazy to finish this PR. I’ll get some time during this weekend to make it mergeable. Sorry for any inconvenience |
31c4906
to
a02501d
Compare
Changed: - Update Prometheus to 2.4.3, alertmanager to 0.15.2 - Change some job labels - should refer to a label appearing on the service. Tried to keep this consistent with what was used in the coreos version - Add confguration for using CoreDNS - Add insecureSkipVerify to kubeApiServer - Add `prometheus.additionalScrapeConfigs`, `prometheus.additionalAlertManagerConfigs` - Add ability to deploy an operated prometheus without installing anything else - Switch `prometheus.serviceAccountName` to be based on `prometheus.fullname` to prevent clashes - Fix `serviceMonitorSelector` typo - Add `serviceMonitorNamespaceSelector` to values.yaml - Fix grafana typo (helm#6765 (comment)) Add CoreDNS dashboard - Fixed dashboard use of updated name metric Signed-off-by: Giancarlo Rubio <[email protected]> Signed-off-by: Vasily Sliouniaev <[email protected]> Vas prometheus operator (#5) * Fix lint * Fix missing selector on kubelet helm#6765 (comment) * Fix braces in files * Fix naming * Move non-exporters out of exporters folder * Use common value names, add to readme * Change value names deploy -> enabled helm#6765 (comment) helm#6765 (comment) * Update etcd rules https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/etcd3_alert.rules.yml * Fix etcd rules to match job name * Review readme * Change initial version to 0.1.0 Additional Fixes While Github is down (#6) * Fix additional service monitor template * Fix label indentation helm#6765 (comment) Fix cleanup, requirements.lock file (#7)
a02501d
to
0a431fe
Compare
Tested and worked great for me. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gianrubio, viglesiasce 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 |
@trevex this was fixed |
The readme still points to incubator in various places like:
|
There also seems to be some confusion around the prometheus ingress config:
|
@andig prs with thiese fixes are very welcome 😋 |
Absolutely if these are as you expect them! Happy to have been watching this issue and looking forward to give it a ride tomorrow. |
Another one: the readme gives an example for |
* Create promethues-operator chart Signed-off-by: Giancarlo Rubio <[email protected]> * Fixes for stable/prometheus-operator Changed: - Update Prometheus to 2.4.3, alertmanager to 0.15.2 - Change some job labels - should refer to a label appearing on the service. Tried to keep this consistent with what was used in the coreos version - Add confguration for using CoreDNS - Add insecureSkipVerify to kubeApiServer - Add `prometheus.additionalScrapeConfigs`, `prometheus.additionalAlertManagerConfigs` - Add ability to deploy an operated prometheus without installing anything else - Switch `prometheus.serviceAccountName` to be based on `prometheus.fullname` to prevent clashes - Fix `serviceMonitorSelector` typo - Add `serviceMonitorNamespaceSelector` to values.yaml - Fix grafana typo (helm#6765 (comment)) Add CoreDNS dashboard - Fixed dashboard use of updated name metric Signed-off-by: Giancarlo Rubio <[email protected]> Signed-off-by: Vasily Sliouniaev <[email protected]> Vas prometheus operator (helm#5) * Fix lint * Fix missing selector on kubelet helm#6765 (comment) * Fix braces in files * Fix naming * Move non-exporters out of exporters folder * Use common value names, add to readme * Change value names deploy -> enabled helm#6765 (comment) helm#6765 (comment) * Update etcd rules https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/etcd3_alert.rules.yml * Fix etcd rules to match job name * Review readme * Change initial version to 0.1.0 Additional Fixes While Github is down (helm#6) * Fix additional service monitor template * Fix label indentation helm#6765 (comment) Fix cleanup, requirements.lock file (helm#7) Signed-off-by: Jakob Niggel <[email protected]>
* Create promethues-operator chart Signed-off-by: Giancarlo Rubio <[email protected]> * Fixes for stable/prometheus-operator Changed: - Update Prometheus to 2.4.3, alertmanager to 0.15.2 - Change some job labels - should refer to a label appearing on the service. Tried to keep this consistent with what was used in the coreos version - Add confguration for using CoreDNS - Add insecureSkipVerify to kubeApiServer - Add `prometheus.additionalScrapeConfigs`, `prometheus.additionalAlertManagerConfigs` - Add ability to deploy an operated prometheus without installing anything else - Switch `prometheus.serviceAccountName` to be based on `prometheus.fullname` to prevent clashes - Fix `serviceMonitorSelector` typo - Add `serviceMonitorNamespaceSelector` to values.yaml - Fix grafana typo (helm#6765 (comment)) Add CoreDNS dashboard - Fixed dashboard use of updated name metric Signed-off-by: Giancarlo Rubio <[email protected]> Signed-off-by: Vasily Sliouniaev <[email protected]> Vas prometheus operator (helm#5) * Fix lint * Fix missing selector on kubelet helm#6765 (comment) * Fix braces in files * Fix naming * Move non-exporters out of exporters folder * Use common value names, add to readme * Change value names deploy -> enabled helm#6765 (comment) helm#6765 (comment) * Update etcd rules https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/etcd3_alert.rules.yml * Fix etcd rules to match job name * Review readme * Change initial version to 0.1.0 Additional Fixes While Github is down (helm#6) * Fix additional service monitor template * Fix label indentation helm#6765 (comment) Fix cleanup, requirements.lock file (helm#7)
* Create promethues-operator chart Signed-off-by: Giancarlo Rubio <[email protected]> * Fixes for stable/prometheus-operator Changed: - Update Prometheus to 2.4.3, alertmanager to 0.15.2 - Change some job labels - should refer to a label appearing on the service. Tried to keep this consistent with what was used in the coreos version - Add confguration for using CoreDNS - Add insecureSkipVerify to kubeApiServer - Add `prometheus.additionalScrapeConfigs`, `prometheus.additionalAlertManagerConfigs` - Add ability to deploy an operated prometheus without installing anything else - Switch `prometheus.serviceAccountName` to be based on `prometheus.fullname` to prevent clashes - Fix `serviceMonitorSelector` typo - Add `serviceMonitorNamespaceSelector` to values.yaml - Fix grafana typo (helm/charts#6765 (comment)) Add CoreDNS dashboard - Fixed dashboard use of updated name metric Signed-off-by: Giancarlo Rubio <[email protected]> Signed-off-by: Vasily Sliouniaev <[email protected]> Vas prometheus operator (#5) * Fix lint * Fix missing selector on kubelet helm/charts#6765 (comment) * Fix braces in files * Fix naming * Move non-exporters out of exporters folder * Use common value names, add to readme * Change value names deploy -> enabled helm/charts#6765 (comment) helm/charts#6765 (comment) * Update etcd rules https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/etcd3_alert.rules.yml * Fix etcd rules to match job name * Review readme * Change initial version to 0.1.0 Additional Fixes While Github is down (#6) * Fix additional service monitor template * Fix label indentation helm/charts#6765 (comment) Fix cleanup, requirements.lock file (#7)
* Create promethues-operator chart Signed-off-by: Giancarlo Rubio <[email protected]> * Fixes for stable/prometheus-operator Changed: - Update Prometheus to 2.4.3, alertmanager to 0.15.2 - Change some job labels - should refer to a label appearing on the service. Tried to keep this consistent with what was used in the coreos version - Add confguration for using CoreDNS - Add insecureSkipVerify to kubeApiServer - Add `prometheus.additionalScrapeConfigs`, `prometheus.additionalAlertManagerConfigs` - Add ability to deploy an operated prometheus without installing anything else - Switch `prometheus.serviceAccountName` to be based on `prometheus.fullname` to prevent clashes - Fix `serviceMonitorSelector` typo - Add `serviceMonitorNamespaceSelector` to values.yaml - Fix grafana typo (helm/charts#6765 (comment)) Add CoreDNS dashboard - Fixed dashboard use of updated name metric Signed-off-by: Giancarlo Rubio <[email protected]> Signed-off-by: Vasily Sliouniaev <[email protected]> Vas prometheus operator (#5) * Fix lint * Fix missing selector on kubelet helm/charts#6765 (comment) * Fix braces in files * Fix naming * Move non-exporters out of exporters folder * Use common value names, add to readme * Change value names deploy -> enabled helm/charts#6765 (comment) helm/charts#6765 (comment) * Update etcd rules https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/etcd3_alert.rules.yml * Fix etcd rules to match job name * Review readme * Change initial version to 0.1.0 Additional Fixes While Github is down (#6) * Fix additional service monitor template * Fix label indentation helm/charts#6765 (comment) Fix cleanup, requirements.lock file (#7)
What this PR does / why we need it:
This a FR from coreos/prometheus-operator project. Moving the chart to helm upstream will make easier to run e2e tests and to accept/merge PR.
@richerve @pierreozoux @vsliouniaev please review it
prometheus-operator/prometheus-operator#1154
#3490