2022-04-20 13:36:08 +00:00
|
|
|
{{- if and .Values.istiod.telemetry.enabled .Values.rateLimiting.enabled }}
|
2021-08-25 13:58:55 +00:00
|
|
|
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 }}
|