extends:
  - _std-if-mib.yaml
  - _hp.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.11.2.3.7.11.*

metadata:
  device:
    fields:
      type:
        value: "Switch"

# https://mibbrowser.online/mibdb_search.php?mib=STATISTICS-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/hp/STATISTICS-MIB

# https://mibbrowser.online/mibdb_search.php?mib=NETSWITCH-MIB
# https://github.com/DanielleHuisman/observium-community-edition/blob/main/mibs/hp/NETSWITCH-MIB

metrics:
  - MIB: STATISTICS-MIB
    symbol:
      name: cpu.usage # hpSwitchCpuStat
      OID: 1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0
      chart_meta:
        description: The current CPU utilization
        family: 'System/CPU/Usage'
        unit: "%"
  - MIB: NETSWITCH-MIB
    table:
      name: hpLocalMemTable
      OID: 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1
    symbols:
      - name: memory.total
        OID: 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.5
        chart_meta:
          description: The number of currently installed bytes.
          family: 'System/Memory/Total'
          unit: "By"
      - name: memory.free
        OID: 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6
        chart_meta:
          description: The number of available (unallocated) bytes.
          family: 'System/Memory/Free'
          unit: "By"
    metric_tags:
      - tag: mem_index
        index: 1
      - tag: hp_local_mem_slot_index
        symbol:
          OID: 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.1
          name: hpLocalMemSlotIndex
