# 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: gofer namespace: gofer-system spec: selector: matchLabels: app.kubernetes.io/name: gofer podMetricsEndpoints: - port: metrics relabelings: - sourceLabels: [__meta_kubernetes_pod_node_name] targetLabel: node