kube-state-metrics-servicemonitor.yaml 705 B

1234567891011121314151617181920212223242526
  1. apiVersion: monitoring.coreos.com/v1
  2. kind: ServiceMonitor
  3. metadata:
  4. labels:
  5. app.kubernetes.io/component: exporter
  6. app.kubernetes.io/name: kube-state-metrics
  7. app.kubernetes.io/part-of: kube-prometheus
  8. app.kubernetes.io/version: 2.10.1
  9. name: kube-state-metrics
  10. prometheus-enabled: "true"
  11. name: kube-state-metrics
  12. namespace: monitoring
  13. spec:
  14. namespaceSelector:
  15. matchNames:
  16. - monitoring
  17. endpoints:
  18. - port: http-metrics
  19. interval: 30s
  20. honorLabels: true
  21. jobLabel: app.kubernetes.io/name
  22. selector:
  23. matchLabels:
  24. app.kubernetes.io/component: exporter
  25. app.kubernetes.io/name: kube-state-metrics
  26. app.kubernetes.io/part-of: kube-prometheus