snmp-exporter h3c精简监控指标 snmp.yml

过多的snmp监控指标会增加交换机cpu使用率,精简snmp.yml配置如下,请修改community认证信息

# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
h3c_mib:
  walk:
  - 1.3.6.1.2.1.31.1.1.1.1
  - 1.3.6.1.2.1.31.1.1.1.10
  - 1.3.6.1.2.1.31.1.1.1.18
  - 1.3.6.1.2.1.31.1.1.1.6
  - 1.3.6.1.2.1.47.1.1.1.1.2
  - 1.3.6.1.2.1.47.1.1.1.1.7
  - 1.3.6.1.4.1.25506.2.149.1.1.1.4
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.12
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.6
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.8
  - 1.3.6.1.4.1.25506.8.35.9.1.1.1.2
  - 1.3.6.1.4.1.25506.8.35.9.1.2.1.2
  get:
  - 1.3.6.1.2.1.1.1.0
  - 1.3.6.1.2.1.1.3.0
  - 1.3.6.1.2.1.1.5.0
  - 1.3.6.1.2.1.2.1.0
  metrics:
  - name: sysDescr
    oid: 1.3.6.1.2.1.1.1
    type: DisplayString
    help: A textual description of the entity - 1.3.6.1.2.1.1.1
  - name: sysUpTime
    oid: 1.3.6.1.2.1.1.3
    type: gauge
    help: The time (in hundredths of a second) since the network management portion
      of the system was last re-initialized. - 1.3.6.1.2.1.1.3
  - name: sysName
    oid: 1.3.6.1.2.1.1.5
    type: DisplayString
    help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5
  - name: ifNumber
    oid: 1.3.6.1.2.1.2.1
    type: gauge
    help: The number of network interfaces (regardless of their current state) present
      on this system. - 1.3.6.1.2.1.2.1
  - name: ifHCOutOctets
    oid: 1.3.6.1.2.1.31.1.1.1.10
    type: counter
    help: The total number of octets transmitted out of the interface, including framing
      characters - 1.3.6.1.2.1.31.1.1.1.10
    indexes:
    - labelname: ifIndex
      type: gauge
    lookups:
    - labels:
      - ifIndex
      labelname: ifAlias
      oid: 1.3.6.1.2.1.31.1.1.1.18
      type: DisplayString
    - labels:
      - ifIndex
      labelname: ifName
      oid: 1.3.6.1.2.1.31.1.1.1.1
      type: DisplayString
  - name: ifHCInOctets
    oid: 1.3.6.1.2.1.31.1.1.1.6
    type: counter
    help: The total number of octets received on the interface, including framing
      characters - 1.3.6.1.2.1.31.1.1.1.6
    indexes:
    - labelname: ifIndex
      type: gauge
    lookups:
    - labels:
      - ifIndex
      labelname: ifAlias
      oid: 1.3.6.1.2.1.31.1.1.1.18
      type: DisplayString
    - labels:
      - ifIndex
      labelname: ifName
      oid: 1.3.6.1.2.1.31.1.1.1.1
      type: DisplayString
  - name: hh3cSessionStatCount
    oid: 1.3.6.1.4.1.25506.2.149.1.1.1.4
    type: gauge
    help: The number of current sessions. - 1.3.6.1.4.1.25506.2.149.1.1.1.4
    indexes:
    - labelname: hh3cSessionStatChassis
      type: gauge
    - labelname: hh3cSessionStatSlot
      type: gauge
    - labelname: hh3cSessionStatCPUID
      type: gauge
  - name: hh3cEntityExtTemperature
    oid: 1.3.6.1.4.1.25506.2.6.1.1.1.1.12
    type: gauge
    help: The temperature for the entity. - 1.3.6.1.4.1.25506.2.6.1.1.1.1.12
    indexes:
    - labelname: hh3cEntityExtPhysicalIndex
      type: gauge
    lookups:
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalDescr
      oid: 1.3.6.1.2.1.47.1.1.1.1.2
      type: DisplayString
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalName
      oid: 1.3.6.1.2.1.47.1.1.1.1.7
      type: DisplayString
  - name: hh3cEntityExtCpuUsage
    oid: 1.3.6.1.4.1.25506.2.6.1.1.1.1.6
    type: gauge
    help: The CPU usage for this entity - 1.3.6.1.4.1.25506.2.6.1.1.1.1.6
    indexes:
    - labelname: hh3cEntityExtPhysicalIndex
      type: gauge
    lookups:
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalDescr
      oid: 1.3.6.1.2.1.47.1.1.1.1.2
      type: DisplayString
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalName
      oid: 1.3.6.1.2.1.47.1.1.1.1.7
      type: DisplayString
  - name: hh3cEntityExtMemUsage
    oid: 1.3.6.1.4.1.25506.2.6.1.1.1.1.8
    type: gauge
    help: The memory usage for the entity - 1.3.6.1.4.1.25506.2.6.1.1.1.1.8
    indexes:
    - labelname: hh3cEntityExtPhysicalIndex
      type: gauge
    lookups:
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalDescr
      oid: 1.3.6.1.2.1.47.1.1.1.1.2
      type: DisplayString
    - labels:
      - hh3cEntityExtPhysicalIndex
      labelname: entPhysicalName
      oid: 1.3.6.1.2.1.47.1.1.1.1.7
      type: DisplayString
  - name: hh3cDevMFanStatus
    oid: 1.3.6.1.4.1.25506.8.35.9.1.1.1.2
    type: gauge
    help: 'Fan status: active (1), deactive (2) not installed (3) and unsupported
      (4) - 1.3.6.1.4.1.25506.8.35.9.1.1.1.2'
    indexes:
    - labelname: hh3cDevMFanNum
      type: gauge
    enum_values:
      1: active
      2: deactive
      3: not-install
      4: unsupport
  - name: hh3cDevMPowerStatus
    oid: 1.3.6.1.4.1.25506.8.35.9.1.2.1.2
    type: gauge
    help: 'Power status: active (1), deactive (2) not installed (3) and unsupported
      - 1.3.6.1.4.1.25506.8.35.9.1.2.1.2'
    indexes:
    - labelname: hh3cDevMPowerNum
      type: gauge
    enum_values:
      1: active
      2: deactive
      3: not-install
      4: unsupport
  version: 2
  max_repetitions: 3
  retries: 3
  timeout: 25s
  auth:
    community: ***

你可能感兴趣的:(运维)