# - WLSX-SYSTEMEXT-MIB
#   https://mibbrowser.online/mibdb_search.php?mib=WLSX-SYSTEMEXT-MIB
#   https://github.com/librenms/librenms/blob/master/mibs/arubaos/WLSX-SYSTEMEXT-MIB

# CPU and memory metrics for Aruba switch
metrics:
  ### Processor

  # The table of processors contained by the controller.
  - MIB: WLSX-SYSTEMEXT-MIB
    table:
      OID: 1.3.6.1.4.1.14823.2.2.1.2.1.13
      name: wlsxSysExtProcessorTable
    symbols:
      # The average, over the last minute, of the percentage of time that this processor was not idle.
      - OID: 1.3.6.1.4.1.14823.2.2.1.2.1.13.1.3
        name: cpu.usage # sysExtProcessorLoad
        chart_meta:
          description: The current CPU utilization
          family: 'System/CPU/Usage'
          unit: "%"
    metric_tags:
      - tag: cpu_index
        index: 1

  ### Memory

  # The memory status of the controller. All memory values measured in KB.
  - MIB: WLSX-SYSTEMEXT-MIB
    table:
      OID: 1.3.6.1.4.1.14823.2.2.1.2.1.15.1
      name: wlsxSysExtMemoryTable
    symbols:
      - OID: 1.3.6.1.4.1.14823.2.2.1.2.1.15.1.2
        name: wlsxSysExtMemorySize
        chart_meta:
          description: Total memory
          family: 'System/Memory/Total'
          unit: "By"
        scale_factor: 1024
      - OID: 1.3.6.1.4.1.14823.2.2.1.2.1.15.1.3
        name: wlsxSysExtMemoryUsed
        chart_meta:
          description: Used memory
          family: 'System/Memory/Used'
          unit: "By"
        scale_factor: 1024
      - OID: 1.3.6.1.4.1.14823.2.2.1.2.1.15.1.4
        name: sysExtMemoryFree
        chart_meta:
          description: Free memory in KB
          family: 'System/Memory/Free'
          unit: "By"
        scale_factor: 1024
    metric_tags:
      - tag: mem_index
        index: 1
