Skip to content

Commit

Permalink
KLT monitoring using ServiceMonitor (#3733)
Browse files Browse the repository at this point in the history
* Fix: KLT monitoring using ServiceMonitor

Signed-off-by: Nicolas Lamirault <[email protected]>

* Update: cleanup

Signed-off-by: Nicolas Lamirault <[email protected]>

---------

Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault authored Apr 4, 2023
1 parent 44fea26 commit 8cab2db
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions gitops/argocd/charts/klt-system/klt/templates/serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,27 @@ spec:
jobLabel: k8s-app
selector:
matchLabels:
control-plane: metrics-controller
# TODO: https://github.com/keptn/lifecycle-toolkit/issues/1106
# control-plane: metrics-operator
control-plane: metrics-operator
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
{{- include "keptn-lifecycle-toolkit.labels" . | indent 4 }}
monitoring: portefaix
name: klt-lifecycle-operator-metrics
namespace: {{ .Release.Namespace }}
spec:
endpoints:
- interval: 30s
port: metrics
jobLabel: k8s-app
selector:
matchLabels:
control-plane: lifecycle-operator
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down

0 comments on commit 8cab2db

Please sign in to comment.