Metric Exporter

Enable the metrics

To enable the Ondat Volume metrics, add the following field to your StorageOSCluster resource.

spec:
  metrics:
    enabled: true

⚠️ On OCP you may need to follow their instructions for enabling monitoring of user-defined projects, here

Example setup

Here’s an example ServiceMonitor resource that scrapes our metrics endpoints:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app: storageos
    release: prometheus
  name: storageos-metrics-service-monitor
  namespace: storageos
spec:
  endpoints:
  - interval: 15s
    path: /metrics
    port: metrics
  namespaceSelector:
    matchNames:
    - storageos
  selector:
    matchLabels:
      app: storageos
      app.kubernetes.io/component: metrics-exporter

⚠️ The label selector fields must match those of our service.

After the manifest is applied, Ondat metrics will be scraped by your Prometheus server.