For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. Go to your ESS installation directory:

    cd ${HOME}/ess
  2. Create a kustomize-storage-metrics.yaml file 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: 5m
  3. Modify the kustomization.yaml (i.e., step 3 of the Applying Your Customizations procedure) to use kustomize-storage-metrics.yaml . Specifically, add the highlighted content to the kustomization.yaml file to the patches section:

Tip

If patches key does not exist in kustomization.yaml , add the patches key as well.

4. Continue with the rest of the Applying Your Customizations procedure.

If you collect less often, also review any alert on stale Storage Metrics, such as the example in Administration: Storage Metrics, so that it does not fire between collections.

See also Administration: Storage Metrics

Last updated