apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: redis-replication-harbor
  namespace: harbor
  labels:
    helm.sh/chart: redis-replication-1.0.4
    app.kubernetes.io/version: "1.0.4"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: redis-replication-harbor
    app.kubernetes.io/instance: harbor
    app.kubernetes.io/part-of: harbor
spec:
  selector:
    matchLabels:
      app: redis-replication-harbor
      redis_setup_type: replication
      role: replication
  endpoints:
    - port: redis-exporter
      interval: 30s
      scrapeTimeout: 10s
