apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# CRD-dependent resources — applied by deploy.sh AFTER kube-prometheus-stack
# installs the monitoring.coreos.com CRDs (ServiceMonitor, PodMonitor).

resources:
  # ServiceMonitors
  - servicemonitors/apiserver.yaml
  - servicemonitors/arc-controller.yaml
  - servicemonitors/buildkit.yaml
  - servicemonitors/buildkit-haproxy.yaml
  - servicemonitors/harbor.yaml
  - servicemonitors/karpenter.yaml
  - servicemonitors/keda.yaml
  - servicemonitors/node-compactor.yaml
  - servicemonitors/pushgateway.yaml
  - servicemonitors/pypi-cache.yaml
  # PodMonitors
  - podmonitors/arc-listeners.yaml
  - podmonitors/coredns.yaml
  - podmonitors/nodelocaldns.yaml
  # DCGM ServiceMonitor (DaemonSet is in parent kustomization)
  - dcgm-servicemonitor.yaml
  # PrometheusRule alerts
  - ../alerts
