monitor.yaml 491 B

1234567891011121314151617181920
  1. # Prometheus Monitor Service (Metrics)
  2. apiVersion: monitoring.coreos.com/v1
  3. kind: ServiceMonitor
  4. metadata:
  5. labels:
  6. control-plane: controller-manager
  7. name: controller-manager-metrics-monitor
  8. namespace: system
  9. spec:
  10. endpoints:
  11. - path: /metrics
  12. port: https
  13. scheme: https
  14. bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
  15. tlsConfig:
  16. insecureSkipVerify: true
  17. selector:
  18. matchLabels:
  19. control-plane: controller-manager