apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: k8s-app: alertmanager name: alertmanager namespace: monitoring spec: endpoints: - interval: 30s port: web selector: matchLabels: alertmanager: main