# Virtual Chassis-related metrics

# TODO, this profile is used by MX(router) and EX(switch), so the families need some templating to be dynamic here.

metrics:
  # These metrics will be sent as monotonic counts and rates:
  - MIB: JUNIPER-VIRTUALCHASSIS-MIB
    table:
      OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2
      name: jnxVirtualChassisPortTable
    metric_type: monotonic_count
    symbols:
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.5
        name: jnxVirtualChassisPortInPkts
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Total/In'
          description: Total number of packets received on the virtual-chassis port
          unit: "{packet}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.11
        name: jnxVirtualChassisPortInPkts1secRate
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Total/In'
          description: Total number of packets received per second on the virtual-chassis port
          unit: "{packet}/s"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.6
        name: jnxVirtualChassisPortOutPkts
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Total/Out'
          description: Total number of packets sent from the virtual-chassis port
          unit: "{packet}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.12
        name: jnxVirtualChassisPortOutPkts1secRate
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Total/Out'
          description: Total number of packets sent per second from the virtual-chassis port
          unit: "{packet}/s"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.7
        name: jnxVirtualChassisPortInOctets
        chart_meta:
          family: 'Network/VirtualChassis/Port/Traffic/Total/In'
          description: Total number of octets received on the virtual-chassis port
          unit: "By"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.13
        name: jnxVirtualChassisPortInOctets1secRate
        chart_meta:
          family: 'Network/VirtualChassis/Port/Traffic/Total/In'
          description: Total number of octets received per second on the virtual-chassis port
          unit: "By/s"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.8
        name: jnxVirtualChassisPortOutOctets
        chart_meta:
          family: 'Network/VirtualChassis/Port/Traffic/Total/Out'
          description: Total number of octets sent on the virtual-chassis port
          unit: "By"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.14
        name: jnxVirtualChassisPortOutOctets1secRate
        chart_meta:
          family: 'Network/VirtualChassis/Port/Traffic/Total/Out'
          description: Total number of octets sent per second on the virtual-chassis port
          unit: "By/s"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.9
        name: jnxVirtualChassisPortInMcasts
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Multicast/In'
          description: Total number of multicast packets received on the virtual-chassis port
          unit: "{packet}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.10
        name: jnxVirtualChassisPortOutMcasts
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Multicast/Out'
          description: Total number of multicast packets sent from the virtual-chassis port
          unit: "{packet}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.15
        name: jnxVirtualChassisPortCarrierTrans
        chart_meta:
          family: 'Network/VirtualChassis/Port/Error/CarrierTransition'
          description: Total number of Carrier errors on the virtual-chassis port
          unit: "{error}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.16
        name: jnxVirtualChassisPortInCRCAlignErrors
        chart_meta:
          family: 'Network/VirtualChassis/Port/Error/CRCAlign/In'
          description: Total number of Input CRC Alignment errors on the virtual-chassis port
          unit: "{error}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.17
        name: jnxVirtualChassisPortUndersizePkts
        chart_meta:
          family: 'Network/VirtualChassis/Port/Packet/Undersize'
          description: Total number of Undersize Packets on the virtual-chassis port
          unit: "{packet}"
      - OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.18
        name: jnxVirtualChassisPortCollisions
        chart_meta:
          family: 'Network/VirtualChassis/Port/Error/Collision'
          description: Total number of Collisions on the virtual-chassis port
          unit: "{collision}"
    metric_tags:
      - tag: port_name
        symbol:
          OID: 1.3.6.1.4.1.2636.3.40.1.4.1.2.1.2
          name: jnxVirtualChassisPortName
