apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  name: main
  labels:
    prometheus: main
spec:
  replicas: 2
  serviceMonitorSelector:
    matchExpressions:
    - {key: app, operator: In, values: [node-exporter, example-app]}
  alerting:
    alertmanagers:
    - namespace: default
      name: alertmanager
      port: web
