---
# Scrape the redis_exporter sidecar (:9121) on the netbox-valkey pod. Picked up
# by the observability VMAgent (selectAllByDefault). Pod-level rather than
# VMServiceScrape because the valkey Service doesn't expose the metrics port.
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMPodScrape
metadata:
  name: valkey-exporter
  namespace: netbox
spec:
  selector:
    matchLabels:
      app: netbox-valkey
  podMetricsEndpoints:
    - port: metrics
      path: /metrics
