# services/monitoring/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitoring
resources:
  - namespace.yaml
  - rbac.yaml
  - secretproviderclass.yaml
  - vault-serviceaccount.yaml
  - grafana-dashboard-overview.yaml
  - grafana-dashboard-pods.yaml
  - grafana-dashboard-nodes.yaml
  - grafana-dashboard-storage.yaml
  - grafana-dashboard-network.yaml
  - grafana-dashboard-gpu.yaml
  - grafana-dashboard-gitops.yaml
  - grafana-dashboard-power.yaml
  - grafana-dashboard-mail.yaml
  - grafana-dashboard-testing.yaml
  - vmalert-atlas-availability.yaml
  - dcgm-exporter.yaml
  - nvidia-process-exporter.yaml
  - jetson-tegrastats-exporter.yaml
  - postmark-exporter-service.yaml
  - postmark-exporter-deployment.yaml
  - platform-quality-gateway-pvc.yaml
  - platform-quality-gateway-service.yaml
  - platform-quality-gateway-deployment.yaml
  - platform-quality-suite-probe-cronjob.yaml
  - vault-sync-deployment.yaml
  - grafana-alerting-config.yaml
  - grafana-folders.yaml
  - helmrelease.yaml
  - oneoffs/grafana-org-bootstrap.yaml
  - oneoffs/grafana-user-dedupe-job.yaml

configMapGenerator:
  - name: postmark-exporter-script
    namespace: monitoring
    files:
      - monitoring_postmark_exporter.py=scripts/postmark_exporter.py
    options:
      disableNameSuffixHash: true
  - name: jetson-tegrastats-exporter-script
    namespace: monitoring
    files:
      - exporter.py=scripts/jetson_tegrastats_exporter.py
    options:
      disableNameSuffixHash: true
  - name: nvidia-process-exporter-script
    namespace: monitoring
    files:
      - exporter.py=scripts/nvidia_process_exporter.py
    options:
      disableNameSuffixHash: true
  - name: monitoring-vault-entrypoint
    namespace: monitoring
    files:
      - scripts/vault-entrypoint.sh
    options:
      disableNameSuffixHash: true
  - name: platform-quality-suite-probe-script
    namespace: monitoring
    files:
      - platform_quality_suite_probe.sh=scripts/platform_quality_suite_probe.sh
    options:
      disableNameSuffixHash: true
