# ServiceMonitors for Foxhunt services and GPU metrics # Applied separately from the Helm chart (additionalServiceMonitors not rendered by chart) apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: foxhunt-services namespace: foxhunt labels: app.kubernetes.io/part-of: foxhunt spec: selector: matchLabels: app.kubernetes.io/part-of: foxhunt namespaceSelector: matchNames: [foxhunt] endpoints: - port: metrics interval: 15s # Override job label to "foxhunt-services" (matching old standalone config) # so all existing dashboard queries continue to work relabelings: - targetLabel: job replacement: foxhunt-services --- # DCGM Exporter (GPU metrics from nvidia-gpu-operator DaemonSet) apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: dcgm-exporter namespace: foxhunt labels: app.kubernetes.io/part-of: foxhunt spec: selector: matchExpressions: - key: app.kubernetes.io/name operator: In values: [dcgm-exporter] namespaceSelector: matchNames: [kube-system, monitoring, foxhunt] endpoints: - port: metrics interval: 15s