---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  creationTimestamp: "2025-10-27T12:46:13Z"
  generation: 1
  labels:
    app.kubernetes.io/component: ocs-metrics-exporter
    app.kubernetes.io/name: ocs-metrics-exporter
  managedFields:
  - apiVersion: monitoring.coreos.com/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .: {}
          f:app.kubernetes.io/component: {}
          f:app.kubernetes.io/name: {}
        f:ownerReferences:
          .: {}
          k:{"uid":"678453e1-3f0b-48e8-8118-cede29946d85"}: {}
      f:spec:
        .: {}
        f:endpoints: {}
        f:namespaceSelector:
          .: {}
          f:matchNames: {}
        f:selector: {}
    manager: ocs-operator
    operation: Update
    time: "2025-10-27T12:46:13Z"
  name: ocs-metrics-exporter
  namespace: openshift-storage
  ownerReferences:
  - apiVersion: ocs.openshift.io/v1
    kind: StorageCluster
    name: ocs-storagecluster
    uid: 678453e1-3f0b-48e8-8118-cede29946d85
  resourceVersion: "61440"
  uid: abd5d05f-b734-4b02-bcbc-777943e82a1a
spec:
  endpoints:
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 1m
    path: /metrics
    port: https-main
    relabelings:
    - action: replace
      replacement: ocs-storagecluster
      targetLabel: managedBy
    scheme: https
    tlsConfig:
      ca: {}
      caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
      cert: {}
      insecureSkipVerify: false
      serverName: ocs-metrics-exporter.openshift-storage.svc
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 1m
    path: /metrics/rbd-mirror
    port: https-main
    relabelings:
    - action: replace
      replacement: ocs-storagecluster
      targetLabel: managedBy
    scheme: https
    tlsConfig:
      ca: {}
      caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
      cert: {}
      insecureSkipVerify: false
      serverName: ocs-metrics-exporter.openshift-storage.svc
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 1m
    path: /metrics
    port: https-self
    relabelings:
    - action: replace
      replacement: ocs-storagecluster
      targetLabel: managedBy
    scheme: https
    tlsConfig:
      ca: {}
      caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
      cert: {}
      insecureSkipVerify: false
      serverName: ocs-metrics-exporter.openshift-storage.svc
  namespaceSelector:
    matchNames:
    - openshift-storage
  selector:
    matchLabels:
      app.kubernetes.io/component: ocs-metrics-exporter
      app.kubernetes.io/name: ocs-metrics-exporter
