Skip to content

Commit

Permalink
add servicemonitor for dal node
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 14, 2023
1 parent 2d174da commit caf1c5b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions charts/tezos/templates/octez-dal-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ kind: Service
metadata:
name: {{ $k }}
namespace: {{ $.Release.Namespace }}
labels:
appType: octez-dal-node
spec:
type: NodePort
ports:
Expand Down Expand Up @@ -158,3 +160,20 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
{{- toYaml .Values.serviceMonitor.labels | nindent 4 }}
name: tezos-service-monitor
namespace: {{ .Release.Namespace }}
spec:
endpoints:
- interval: 15s
port: metrics
path: /metrics
selector:
matchLabels:
appType: octez-dal-node
{{- end }}

0 comments on commit caf1c5b

Please sign in to comment.