Skip to content

Don't deploy monitoring resources by default#707

Merged
DrJosh9000 merged 1 commit into
mainfrom
dont-deploy-monitoring-resources-by-default
Sep 23, 2025
Merged

Don't deploy monitoring resources by default#707
DrJosh9000 merged 1 commit into
mainfrom
dont-deploy-monitoring-resources-by-default

Conversation

@DrJosh9000
Copy link
Copy Markdown
Contributor

What

Turn off deployment of the PodMonitor and Grafana Dashboard by default. These can be opted back in to using e.g.

helm upgrade ... 
  --set monitoring.podMonitor.deploy=true \
  --set monitoring.deployGrafanaDashboard=true

or with a custom values.yaml file.

Why

Turns out that Helm can't deploy a PodMonitor if it doesn't know what it is (i.e. if the Prometheus Operator CRDs aren't installed yet). This didn't break CI because I installed kube-prometheus-stack in our CI cluster for testing the new resources.

On further reflection, we probably shouldn't be auto-deploying potentially unnecessary things anyway.

@DrJosh9000 DrJosh9000 requested a review from a team as a code owner September 23, 2025 07:32
@DrJosh9000 DrJosh9000 force-pushed the dont-deploy-monitoring-resources-by-default branch from ea4096e to 55ba9a9 Compare September 23, 2025 07:34
@DrJosh9000 DrJosh9000 merged commit cdd6781 into main Sep 23, 2025
1 check passed
@DrJosh9000 DrJosh9000 deleted the dont-deploy-monitoring-resources-by-default branch September 23, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants