Skip to content
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

feat(chart): drop kube-prometheus-stack #3561

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

swiatekm-sumo
Copy link
Contributor

@swiatekm-sumo swiatekm-sumo commented Feb 21, 2024

This is a draft showing what getting rid of kube-prometheus-stack would look like in practice. Integration tests should pass, template tests should not, as updating them would pollute the diff too much.

Changes:

  1. Add kube-state-metrics and prometheus-node-exporter charts as direct dependencies. I copied the configuration, as I haven't found anyway to avoid a breaking change here.
  2. Add ServiceMonitor and PodMonitor CRDs to the Chart. In the absence of kube-prometheus-stack, we need to ship these ourselves.
  3. Move the ServiceMonitors for K8s components from kube-prometheus-stack to our Chart. I've more or less copied the values.yaml sections, but I'm not sure we want to make this fully configurable.
  4. Drop kube-prometheus-stack.
  5. Some integration test adjustments.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request contains invalid labels. Please remove all of the following labels: ['do-not-merge/hold']

@@ -311,6 +311,7 @@ If dryRun=true, we do not create any chart labels.
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
app.kubernetes.io/instance: "{{ .Release.Name }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was added because kube-state-metrics and node-exporter charts don't add the release label to their ServiceMonitors, and I needed a label to select for. In the near future, this shouldn't be necessary, as otel operator will expose more powerful selectors for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant