diff --git a/manifests/node-exporter/service.yaml b/manifests/node-exporter/service.yaml index b03b338..2a8f211 100644 --- a/manifests/node-exporter/service.yaml +++ b/manifests/node-exporter/service.yaml @@ -4,14 +4,17 @@ metadata: name: node-exporter namespace: monitoring annotations: - prometheus.io/scrape: 'true' - prometheus.io/port: '9100' + prometheus.io/scrape: 'true' + prometheus.io/port: '9100' + labels: + app.kubernetes.io/component: exporter + app.kubernetes.io/name: node-exporter spec: - selector: - app.kubernetes.io/component: exporter - app.kubernetes.io/name: node-exporter ports: - name: node-exporter protocol: TCP port: 9100 targetPort: 9100 + selector: + app.kubernetes.io/component: exporter + app.kubernetes.io/name: node-exporter diff --git a/manifests/node-exporter/servicemonitor.yaml b/manifests/node-exporter/servicemonitor.yaml index d71465d..4818379 100644 --- a/manifests/node-exporter/servicemonitor.yaml +++ b/manifests/node-exporter/servicemonitor.yaml @@ -6,6 +6,7 @@ metadata: spec: selector: matchLabels: + app.kubernetes.io/component: exporter app.kubernetes.io/name: node-exporter endpoints: - port: node-exporter