Modify Storage Metrics Collection
ESS includes a Storage Metrics feature to gather the following metrics:
The total number of Pods
The number of Pods that have been “Created” (where the provision has been confirmed)
The number of Pods that have been “Deleted”(marked for deletion; i.e., soft-deleted).
The number of Pods that are “Active” (created and not deleted)
Specifically, Storage Metrics runs as a Kubernetes Deployment, ess-storage-metrics, with a single Pod that collects the metrics on a fixed period.
You can use Kustomize to modify how often the metrics are collected.
Example Customizations
The provided overlays are configured to collect the metrics every 2 minutes.
If instead you wish to collect the metrics every 5 minutes:
Go to your ESS installation directory:
cd ${HOME}/essCreate a
kustomize-storage-metrics.yamlfile with the following content:apiVersion: apps/v1 kind: Deployment metadata: name: ess-storage-metrics spec: template: spec: containers: - name: ess-storage-metrics env: - name: INRUPT_STORAGE_METRICS_COLLECTION_PERIOD value: 5mModify the
kustomization.yaml(i.e., step 3 of the Applying Your Customizations procedure) to usekustomize-storage-metrics.yaml. Specifically, add the highlighted content to thekustomization.yamlfile to thepatchessection:
4. Continue with the rest of the Applying Your Customizations procedure.
See also Administration: Storage Metrics
Last updated