Measurements

Measurements are where you define properties for Dell Cloud Manager to use to determine when to perform the auto scaling 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: cpu_idle_time:

Type

The type: specifies the type of measurement:

  • 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 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

    # Measurements define the "measurements" used to determine when to perform the actions
    measurements:
      cpu_idle_time:                         # The cpu_idle_time measurements label is referenced in the policy in a measurements: statement
      # The Dell Cloud Manager agent will collect and store the last 15 samples of cpu %idle time measured in 30-second intervals
        type: dcm.policy.measurement.CpuIdle
        properties:
          period: 30                         # Take a measurement every 30 seconds
          count: 15                          # Take 15 measurements