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: add servicemonitor for prometheus #559

Merged
merged 4 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ spec:
ports:
- port: 80
targetPort: 8080
name: main
selector:
brupop.bottlerocket.aws/component: brupop-controller
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- if .Values.prometheus.serviceMonitor.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: brupop-controller
namespace: {{ .Values.namespace }}
labels:
app.kubernetes.io/component: brupop-controller
app.kubernetes.io/managed-by: brupop
app.kubernetes.io/part-of: brupop
brupop.bottlerocket.aws/component: brupop-controller
spec:
endpoints:
- port: main
namespaceSelector:
matchNames:
- {{ .Values.namespace }}
selector:
matchLabels:
brupop.bottlerocket.aws/component: brupop-controller
{{- end }}

4 changes: 4 additions & 0 deletions deploy/charts/bottlerocket-update-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@ logging:
tracing_filter: "info"
apiserver:
tracing_filter: "info"

prometheus:
serviceMonitor:
cbgbt marked this conversation as resolved.
Show resolved Hide resolved
enabled: false
cbgbt marked this conversation as resolved.
Show resolved Hide resolved