Add istio for prometheus
This commit is contained in:
parent
03506a40c9
commit
e8b0428e41
@ -14,3 +14,20 @@ spec:
|
||||
- destination:
|
||||
host: metrics-grafana
|
||||
{{- end }}
|
||||
---
|
||||
{{- if .Values.prometheus.istio.enabled }}
|
||||
apiVersion: networking.istio.io/v1alpha3
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: prometheus
|
||||
namespace: monitoring
|
||||
spec:
|
||||
hosts:
|
||||
- {{ .Values.prometheus.istio.url }}
|
||||
gateways:
|
||||
- {{ .Values.prometheus.istio.gateway }}
|
||||
http:
|
||||
- route:
|
||||
- destination:
|
||||
host: metrics-prometheus-operato-prometheus
|
||||
{{- end }}
|
||||
|
@ -4,6 +4,12 @@ grafana:
|
||||
url: ""
|
||||
gateway: ingressgateway.istio-system.svc.cluster.local
|
||||
|
||||
prometheus:
|
||||
istio:
|
||||
enabled: false
|
||||
url: ""
|
||||
gateway: ingressgateway.istio-system.svc.cluster.local
|
||||
|
||||
prometheus-operator:
|
||||
defaultRules:
|
||||
create: true
|
||||
@ -64,7 +70,9 @@ prometheus-operator:
|
||||
enabled: true
|
||||
|
||||
prometheusSpec:
|
||||
retention: 10d
|
||||
retention: 8d
|
||||
portName: http-prometheus
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: 512Mi
|
||||
|
@ -95,10 +95,17 @@ kubezero:
|
||||
metrics:
|
||||
enabled: {{ .Values.metrics.enabled }}
|
||||
values:
|
||||
{{- if and .Values.metrics.istio.enabled .Values.istio.enabled }}
|
||||
{{- if and .Values.metrics.istio.grafana.enabled .Values.istio.enabled }}
|
||||
grafana:
|
||||
istio:
|
||||
{{- with .Values.metrics.istio }}
|
||||
{{- with .Values.metrics.istio.grafana }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if and .Values.metrics.istio.prometheus.enabled .Values.istio.enabled }}
|
||||
prometheus:
|
||||
istio:
|
||||
{{- with .Values.metrics.istio.prometheus }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -28,6 +28,9 @@ istio:
|
||||
metrics:
|
||||
enabled: false
|
||||
istio:
|
||||
grafana:
|
||||
enabled: false
|
||||
prometheus:
|
||||
enabled: false
|
||||
|
||||
# Deprecated once metrics goes live
|
||||
|
Loading…
Reference in New Issue
Block a user