# https://mibbrowser.online/mibdb_search.php?mib=UTILIZATION-MANAGEMENT-MIB

metrics:
  # CPU
  - MIB: UTILIZATION-MANAGEMENT-MIB
    table:
      OID: 1.3.6.1.4.1.6889.2.1.11.1.1.1
      name: genCpuUtilizationTable
    symbols:
      - OID: 1.3.6.1.4.1.6889.2.1.11.1.1.1.1.6
        name: cpu.usage # genCpuCurrentUtilization
        chart_meta:
          description: The current CPU utilization
          family: 'System/CPU/Usage'
          unit: "%"
    metric_tags:
      - tag: cpu_index
        index: 1

  # Memory
  - MIB: UTILIZATION-MANAGEMENT-MIB
    table:
      OID: 1.3.6.1.4.1.6889.2.1.11.1.2.6
      name: genMemUtilizationTable
    symbols:
      - OID: 1.3.6.1.4.1.6889.2.1.11.1.2.6.1.2
        name: genMemUtilizationPhyRam
        chart_meta:
          description: The total size of the physical RAM
          family: 'System/Memory/Module/Total'
          unit: "By"
      - OID: 1.3.6.1.4.1.6889.2.1.11.1.2.6.1.3
        name: genMemUtilizationPercentUsed
        chart_meta:
          description: The percentage of memory used
          family: 'System/Memory/Module/Used'
          unit: "%"
    metric_tags:
      - tag: mem_module_index
        index: 1

  - MIB: UTILIZATION-MANAGEMENT-MIB
    symbol:
      OID: 1.3.6.1.4.1.6889.2.1.11.1.2.1
      name: genMemUtilizationTotalRAM
      scale_factor: 1048576 # MB => Bytes
      chart_meta:
        description: The total size of the RAM
        family: 'System/Memory/Ram/Total'
        unit: "By"
  - MIB: UTILIZATION-MANAGEMENT-MIB
    symbol:
      OID: 1.3.6.1.4.1.6889.2.1.11.1.2.3.1
      name: genMemUtilizationDynAllocMemUsed
      chart_meta:
        description: The dynamically allocated memory has been used
        family: 'System/Memory/Allocated/Used'
        unit: "By"
  - MIB: UTILIZATION-MANAGEMENT-MIB
    symbol:
      OID: 1.3.6.1.4.1.6889.2.1.11.1.2.3.3
      name: genMemUtilizationDynAllocMemAvailable
      chart_meta:
        description: The available dynamically allocated memory
        family: 'System/Memory/Allocated/Available'
        unit: "By"
