mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-10 15:09:38 -05:00
968cdc1a38
* cli: move internal packages Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: fix buildfiles Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix exclude dir Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: move back libraries that will not be used by TF provider Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
{{- if and .Values.hubble.enabled .Values.hubble.metrics.enabled .Values.hubble.metrics.serviceMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: hubble
|
|
namespace: {{ .Values.prometheus.serviceMonitor.namespace | default .Release.Namespace }}
|
|
labels:
|
|
app.kubernetes.io/part-of: cilium
|
|
{{- with .Values.hubble.metrics.serviceMonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.hubble.metrics.serviceMonitor.annotations .Values.hubble.annotations }}
|
|
annotations:
|
|
{{- with .Values.hubble.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.hubble.metrics.serviceMonitor.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: hubble
|
|
namespaceSelector:
|
|
matchNames:
|
|
- {{ .Release.Namespace }}
|
|
endpoints:
|
|
- port: hubble-metrics
|
|
interval: {{ .Values.hubble.metrics.serviceMonitor.interval | quote }}
|
|
honorLabels: true
|
|
path: /metrics
|
|
{{- with .Values.hubble.metrics.serviceMonitor.relabelings }}
|
|
relabelings:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.hubble.metrics.serviceMonitor.metricRelabelings }}
|
|
metricRelabelings:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.hubble.metrics.serviceMonitor.jobLabel }}
|
|
jobLabel: {{ .Values.hubble.metrics.serviceMonitor.jobLabel | quote }}
|
|
{{- end }}
|
|
{{- end }}
|