diff --git a/livekit-server/templates/servicemonitor.yaml b/livekit-server/templates/servicemonitor.yaml index 73b62a9..80c35e9 100644 --- a/livekit-server/templates/servicemonitor.yaml +++ b/livekit-server/templates/servicemonitor.yaml @@ -5,6 +5,9 @@ metadata: name: {{ include "livekit-server.serviceMonitorName" . }} labels: {{- include "livekit-server.labels" . | nindent 4 }} + {{- with .Values.serviceMonitor.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.serviceMonitor.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/livekit-server/values.yaml b/livekit-server/values.yaml index bcf6d51..47bd5a2 100644 --- a/livekit-server/values.yaml +++ b/livekit-server/values.yaml @@ -143,6 +143,8 @@ gcp: serviceMonitor: # Specifies whether a service monitor should be created create: false + # -- labels to add to the service monitor + labels: {} # Annotations to add to the service monitor annotations: {} # The name of the service monitor to use.