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

Disable invalid Prometheus ServiceMonitor #259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/bifrost/templates/backend-servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
{{- if .Values.metrics.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand All @@ -15,3 +16,4 @@ spec:
selector:
matchLabels:
{{- include "bifrost.selectorLabels" . | nindent 6 }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/bifrost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@
allowDNS: true
# apiServerCIDR is the CIDR of the Kubernetes API server.
# apiServerCIDR: 1.2.3.4/32

metrics:
enabled: false

alerts:
enabled: true

Check failure on line 73 in charts/bifrost/values.yaml

View workflow job for this annotation

GitHub Actions / Lint and test Chart

73:16 [new-line-at-end-of-file] no new line character at the end of file
Loading