apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: rook-ceph-exporter
  namespace: {{taskserv.namespace  | default (value="rook-ceph")}} # namespace:cluster
  labels:
    team: rook
spec:
  namespaceSelector:
    matchNames:
      - rook-ceph
  selector:
    matchLabels:
      app: rook-ceph-exporter
      rook_cluster: {{taskserv.clustertname | default(value="rook-ceph")}}  # namespace:cluster
      ceph_daemon_id: exporter
  endpoints:
    - port: ceph-exporter-http-metrics
      path: /metrics
      interval: 10s
