kubezero/charts/kubezero-istio/templates/ratelimit/servicemonitor.yaml

18 lines
480 B
YAML

{{- if and (index .Values "istio-discovery" "telemetry" "enabled") .Values.rateLimiting.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: istio-rate-limiting
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubezero-lib.labels" . | nindent 4 }}
spec:
jobLabel: istio
targetLabels: [app]
selector:
matchExpressions:
- {key: app, operator: In, values: [ratelimit]}
endpoints:
- port: http-monitoring
{{- end }}