Measurements

Measurements are where you define properties for Dell Cloud Manager to use to determine when to perform the auto healing actions you define. You define the desired measurements as sections inside the measurements: section and give them unique label names. Those names will be referenced later in the policies: section of the template.

Measurements are defined with a section name, type and properties. Only one measurement is currently allowed per policy.

section name

Example: cloud_reported_status:

Type

The type: specifies the type of measurement:

  • type: dcm.policy.measurement.ResourceActive
  • type: dcm.policy.measurement.ResourceStatus
  • type: dcm.policy.measurement.CpuIdle (CPU Idle time in percentage)
  • type: dcm.policy.measurement.disk.ReadBytes (bytes per second)
  • type: dcm.policy.measurement.disk.WriteBytes (bytes per second)
  • type: dcm.policy.measurement.disk.ReadOperations (operations per second)
  • type: dcm.policy.measurement.disk.WriteOperations (operations per second)
  • type: dcm.policy.measurement.network.ReadBytes (bytes per second)
  • type: dcm.policy.measurement.network.WriteBytes (bytes per second)

Properties

All of the above measurements except for dcm.policy.measurement.ResourceActive have the following properties:

  • period: - Amount of time in seconds to wait between the measurements.
  • The default is 30

Example: period: 30

  • count: - How many measurements to collect from the server.
  • The default is 10

Example: count: 10

Example

    # Even if not used explicitly by a policy, include this to enable UX health status
    # Status reported by cloud must be active, and for VMs, the Dell Cloud Manager agent heartbeat must succeed otherwise resource will be marked as DEGRADED
    measurements:
      cloud_reported_status:                     # The cloud_reported_status label is referenced in the policy in a measurements: statement
        type: dcm.policy.measurement.ResourceActive