github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/ocprometheus/sampleconfig_above_4.20.yml (about)

     1  # Per-device labels. Optional
     2  # Exactly the same set of labels must be specified for each device.
     3  # If device address is *, the labels apply to all devices not listed explicitly.
     4  # If any explicit device if listed below, then you need to specify all devices you're subscribed to,
     5  # or have a wildcard entry. Otherwise, updates from non-listed devices will be ignored.
     6  #deviceLabels:
     7  #        10.1.1.1:
     8  #                lab1: val1
     9  #                lab2: val2
    10  #        '*':
    11  #                lab1: val3
    12  #                lab2: val4
    13  
    14  # Subscriptions to OpenConfig paths.
    15  subscriptions:
    16          - /Smash/counters/ethIntf
    17          - /Smash/interface/counter/lag/current/counter
    18          - /Sysdb/environment/archer/cooling/status
    19          - /Sysdb/environment/archer/power/status
    20          - /Sysdb/environment/archer/temperature/status
    21          - /Sysdb/hardware/archer/xcvr/status
    22          - /Sysdb/interface/config/eth
    23          - /Kernel/proc
    24          - /Sysdb/connectivityMonitor
    25  
    26  # Prometheus metrics configuration.
    27  # If you use named capture groups in the path, they will be extracted into labels with the same name.
    28  # All fields are mandatory.
    29  metrics:
    30          - name: interfaceDescription
    31            path: /Sysdb/interface/config/eth/phy/slice/1/intfConfig/(?P<interface>Ethernet.+)/description
    32            help: Description
    33            valuelabel: description
    34            defaultvalue: 15
    35          - name: intfCounter
    36            path: /Smash/counters/ethIntf/FocalPointV2/current/(counter)/(?P<intf>.+)/statistics/(?P<direction>(?:in|out))(?P<type>(?:Octets|Errors|Discards))
    37            help: Per-Interface Bytes/Errors/Discards Counters
    38          - name: intfLagCounter
    39            path: /Smash/interface/counter/lag/current/(counter)/(?P<intf>.+)/statistics/(?P<direction>(?:in|out))(Octets|Errors|Discards)
    40            help: Per-Lag Bytes/Errors/Discards Counters
    41          - name: intfPktCounter
    42            path: /Smash/counters/ethIntf/FocalPointV2/current/counter/(?P<intf>.+)/statistics/(?P<direction>(?:in|out))(?P<type>(?:Ucast|Multicast|Broadcast))Pkt
    43            help: Per-Interface Unicast/Multicast/Broadcast Packer Counters
    44          - name: intfLagPktCounter
    45            path: /Smash/interface/counter/lag/current/(counter)/(?P<intf>.+)/statistics/(?P<direction>(?:in|out))(?P<type>(?:Ucast|Multicast|Broadcast))(Pkt)
    46            help: Per-Lag Unicast/Multicast/Broadcast Packer Counters
    47          - name: intfPfcClassCounter
    48            path: /Smash/counters/ethIntf/FocalPointV2/current/(counter)/(?P<intf>.+)/ethStatistics/(?P<direction>(?:in|out))(PfcClassFrames)
    49            help: Per-Interface Input/Output PFC Frames Counters
    50          - name: tempSensor
    51            path: /Sysdb/environment/archer/temperature/status/(?P<sensor>.+)/((?:maxT|t)emperature)/value
    52            help: Temperature and Maximum Temperature
    53          - name: tempSensorAlert
    54            path: /Sysdb/environment/archer/temperature/status/(?P<sensor>.+)/(alertRaisedCount)
    55            help: Temperature Alerts Counter
    56          - name: currentSensor
    57            path: /Sysdb/environment/archer/power/status/currentSensor/(?P<sensor>.+)/(current)
    58            help: Current Levels
    59          - name: powerSensor
    60            path: /Sysdb/environment/archer/power/status/powerSupply/(?P<sensor>.+)/(?P<pwrdir>(?:input|output))Power
    61            help: Input/Output Power Levels
    62          - name: voltageSensor
    63            path: /Sysdb/environment/archer/power/status/voltageSensor/(?:cell/.+|system)/(?P<sensor>VoltageSensor.+)/(voltage)/value
    64            help: Voltage Levels
    65          - name: railCurrentSensor
    66            path: /Sysdb/environment/archer/power/status/voltageSensor/(?:cell/.+|system)/(?P<sensor>VoltageSensor.+)/(current)/value
    67            help: Rail Current Levels
    68          - name: fanSpeed
    69            path: /Sysdb/environment/archer/(cooling)/status/(?P<fan>.+)/speed/value
    70            help: Fan Speed
    71          - name: qsfpModularRxPower
    72            path: /Sysdb/hardware/archer/(xcvr)/status/slice/(?P<linecard>.+)/(?P<intf>.+)/domRegisterData/lane(?P<lane>\d)(OpticalRxPower)
    73            help: qsfpModularRxPower
    74          - name: qsfpFixedRxPower
    75            path: /Sysdb/hardware/archer/(xcvr)/status/all/(?P<intf>.+)/domRegisterData/lane(?P<lane>\d)(OpticalRxPower)
    76            help: qsfpFixedRxPower
    77          - name: qsfpModularTxPower
    78            path: /Sysdb/hardware/archer/(xcvr)/status/slice/(?P<linecard>.+)/(?P<intf>.+)/domRegisterData/lane(?P<lane>\d)(OpticalTxPower)
    79            help: qsfpModularTxPower
    80          - name: qsfpFixedTxPower
    81            path: /Sysdb/hardware/archer/(xcvr)/status/all/(?P<intf>.+)/domRegisterData/lane(?P<lane>\d)(OpticalTxPower)
    82            help: qsfpFixedTxPower
    83          - name: sfpModularTemperature
    84            path: /Sysdb/hardware/archer/(xcvr)/status/slice/(?P<linecard>.+)/(?P<intf>.+)/lastDomUpdateTime/(temperature)
    85            help: sfpModularTemperature
    86          - name: sfpFixedTemperature
    87            path: /Sysdb/hardware/archer/(xcvr)/status/all/(?P<intf>.+)/lastDomUpdateTime/(temperature)
    88            help: sfpFixedTemperature
    89          - name: sfpFixedRxTxPower
    90            path: /Sysdb/hardware/archer/xcvr/status/all/(?P<intf>.+)/lastDomUpdateTime/(?P<powerdirection>(?:rx|tx))(Power)
    91            help: sfpFixedRxTxPower
    92          - name: kernelprocrss
    93            path: /Kernel/proc/stat/(?P<pid>.+)/rss
    94            help: KernelProcRSS
    95          - name: kernelproc
    96            path: /Kernel/proc/stat/(?P<pid>.+)/comm
    97            help: KernelProcStat
    98            valuelabel: command
    99            defaultvalue: 1
   100          - name: connectivityMonitor
   101            path: /Sysdb/connectivityMonitor/status/hostStatus/(?P<originhost>.+)/defaultStats/(?P<traceType>(?:jitter|latency|packetLoss|httpResponseTime))