k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/default/prometheus-podMonitorNodeLocalDNS.yaml (about) 1 {{$PROMETHEUS_SCRAPE_NODE_LOCAL_DNS := DefaultParam .PROMETHEUS_SCRAPE_NODE_LOCAL_DNS false}} 2 3 {{if $PROMETHEUS_SCRAPE_NODE_LOCAL_DNS}} 4 apiVersion: monitoring.coreos.com/v1 5 kind: PodMonitor 6 metadata: 7 labels: 8 k8s-app: node-local-dns-pods 9 name: node-local-dns-pods 10 namespace: monitoring 11 spec: 12 podMetricsEndpoints: 13 - interval: 10m 14 port: metrics 15 jobLabel: k8s-app 16 selector: 17 matchLabels: 18 k8s-app: node-local-dns 19 namespaceSelector: 20 matchNames: 21 - kube-system 22 {{end}}