apiVersion: monitoring.coreos.com/v1alpha1 kind: Prometheus metadata: name: k8s labels: prometheus: k8s spec: version: "{{ prometheus_image_tag }}" baseImage: "{{ prometheus_image_repo }}" serviceMonitorSelector: matchExpression: - {key: k8s-apps, operator: Exists} resources: requests: # 2Gi is default, but won't schedule if you don't have a node with >2Gi # memory. Modify based on your target and time-series count for # production use. This value is mainly meant for demonstration/testing # purposes. memory: {{ prometheus_mem_requests }} alerting: alertmanagers: - namespace: monitoring name: alertmanager-main port: web