Helm charts for Prometheus Kafka Remote Writer
[demo.git] / vnfs / DAaaS / deploy / collection / charts / prometheus / templates / prometheus.yaml
1 apiVersion: monitoring.coreos.com/v1
2 kind: Prometheus
3 metadata:
4   name: {{ template "prometheus.fullname" . }}-prometheus
5   labels:
6     app: {{ template "prometheus.name" . }}-prometheus
7   "helm.sh/hook": post-install
8   "helm.sh/hook-weight": "2"
9 spec:
10   serviceAccountName: {{ template "prometheus.serviceAccountName" . }}
11   serviceMonitorSelector:
12     matchLabels:
13       app: {{ template "prometheus.name" . }}-prometheus
14       release: {{ .Release.Name }}
15   serviceMonitorNamespaceSelector:
16     matchNames:
17       - {{ .Release.Namespace | quote }}
18   resources:
19 {{ toYaml .Values.prometheus.resources | indent 4 }}