diff --git a/apps/base/csi-cephfs/kustomization.yaml b/apps/base/csi-cephfs/kustomization.yaml index 5849aad..cd444d8 100644 --- a/apps/base/csi-cephfs/kustomization.yaml +++ b/apps/base/csi-cephfs/kustomization.yaml @@ -7,3 +7,4 @@ resources: - vaultauth.yaml - vaultstaticsecret.yaml - storageclass.yaml + - vmservicescrape.yaml diff --git a/apps/base/csi-cephfs/vmservicescrape.yaml b/apps/base/csi-cephfs/vmservicescrape.yaml new file mode 100644 index 0000000..3362347 --- /dev/null +++ b/apps/base/csi-cephfs/vmservicescrape.yaml @@ -0,0 +1,15 @@ +--- +# Scrape the ceph-csi-cephfs nodeplugin + provisioner http-metrics endpoints. +# Picked up by the observability VMAgent (selectAllByDefault). +apiVersion: operator.victoriametrics.com/v1beta1 +kind: VMServiceScrape +metadata: + name: ceph-csi-cephfs + namespace: csi-cephfs +spec: + selector: + matchLabels: + app: ceph-csi-cephfs + endpoints: + - port: http-metrics + path: /metrics diff --git a/apps/base/csi-cephrbd/kustomization.yaml b/apps/base/csi-cephrbd/kustomization.yaml index 5849aad..cd444d8 100644 --- a/apps/base/csi-cephrbd/kustomization.yaml +++ b/apps/base/csi-cephrbd/kustomization.yaml @@ -7,3 +7,4 @@ resources: - vaultauth.yaml - vaultstaticsecret.yaml - storageclass.yaml + - vmservicescrape.yaml diff --git a/apps/base/csi-cephrbd/vmservicescrape.yaml b/apps/base/csi-cephrbd/vmservicescrape.yaml new file mode 100644 index 0000000..ed08260 --- /dev/null +++ b/apps/base/csi-cephrbd/vmservicescrape.yaml @@ -0,0 +1,15 @@ +--- +# Scrape the ceph-csi-rbd nodeplugin + provisioner http-metrics endpoints. +# Picked up by the observability VMAgent (selectAllByDefault). +apiVersion: operator.victoriametrics.com/v1beta1 +kind: VMServiceScrape +metadata: + name: ceph-csi-rbd + namespace: csi-cephrbd +spec: + selector: + matchLabels: + app: ceph-csi-rbd + endpoints: + - port: http-metrics + path: /metrics