2022-04-20 15:36:08 +02:00
|
|
|
{{- if .Values.istiod.telemetry.enabled }}
|
2021-04-22 15:43:10 +02:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
name: istio-component-monitor
|
2021-04-25 11:58:17 +02:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2021-04-22 15:43:10 +02:00
|
|
|
labels:
|
2021-08-25 15:58:55 +02:00
|
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
2021-04-22 15:43:10 +02:00
|
|
|
spec:
|
|
|
|
jobLabel: istio
|
|
|
|
targetLabels: [app]
|
|
|
|
selector:
|
|
|
|
matchExpressions:
|
|
|
|
- {key: istio, operator: In, values: [pilot]}
|
|
|
|
endpoints:
|
|
|
|
- port: http-monitoring
|
|
|
|
{{- end }}
|