monitor.yaml 761 B

1234567891011121314151617181920212223242526
  1. # Prometheus Monitor Service (Metrics)
  2. apiVersion: monitoring.coreos.com/v1
  3. kind: ServiceMonitor
  4. metadata:
  5. labels:
  6. control-plane: controller-manager
  7. app.kubernetes.io/name: servicemonitor
  8. app.kubernetes.io/instance: controller-manager-metrics-monitor
  9. app.kubernetes.io/component: metrics
  10. app.kubernetes.io/created-by: nodb
  11. app.kubernetes.io/part-of: nodb
  12. app.kubernetes.io/managed-by: kustomize
  13. name: controller-manager-metrics-monitor
  14. namespace: system
  15. spec:
  16. endpoints:
  17. - path: /metrics
  18. port: https
  19. scheme: https
  20. bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
  21. tlsConfig:
  22. insecureSkipVerify: true
  23. selector:
  24. matchLabels:
  25. control-plane: controller-manager