diff --git a/kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml b/kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml index 51780d9d..708427da 100644 --- a/kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml +++ b/kubernetes/apps/openebs-system/openebs/app/helmrelease.yaml @@ -80,4 +80,4 @@ spec: storageClass: enabled: false metrics: - enabled: false + enabled: true diff --git a/kubernetes/apps/openebs-system/openebs/config/kustomization.yaml b/kubernetes/apps/openebs-system/openebs/config/kustomization.yaml index 5756909b..ad4fcbeb 100644 --- a/kubernetes/apps/openebs-system/openebs/config/kustomization.yaml +++ b/kubernetes/apps/openebs-system/openebs/config/kustomization.yaml @@ -6,3 +6,4 @@ resources: - diskpools.yaml - snapshotclass.yaml - storageclass.yaml + - ./servicemonitor.yaml diff --git a/kubernetes/apps/openebs-system/openebs/config/servicemonitor.yaml b/kubernetes/apps/openebs-system/openebs/config/servicemonitor.yaml new file mode 100644 index 00000000..5298739f --- /dev/null +++ b/kubernetes/apps/openebs-system/openebs/config/servicemonitor.yaml @@ -0,0 +1,15 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: mayastor-metrics + namespace: openebs-system + labels: + app: openebs + release: openebs +spec: + selector: + matchLabels: + app: openebs + endpoints: + - port: metrics + path: /metrics