# Scrapes /metrics on the operator's metrics port. The relabeling puts # the pod's node in the node label. apiVersion: monitoring.coreos.com/v1 kind: PodMonitor metadata: name: simmer-operator namespace: simmer spec: selector: matchLabels: app: simmer-operator podMetricsEndpoints: - port: metrics # Several series name the namespace of the Mandate or the Console # they count, and the alerts read it as namespace. Without this, # Prometheus moves it to exported_namespace and puts the operator's # own namespace in its place. honorLabels: true relabelings: - sourceLabels: [__meta_kubernetes_pod_node_name] targetLabel: node