github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/ocprometheus/sampleconfig_below_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 paths.
    15  # The paths can be optionally prefixed with origin followed by colon (eg. eos_native:/Sysdb/interface/config)
    16  subscriptions:
    17          - /Sysdb/environment/cooling/status
    18          - /Sysdb/environment/power/status
    19          - /Sysdb/environment/temperature/status
    20          - /Sysdb/interface/counter/eth/lag
    21          - /Sysdb/interface/counter/eth/slice/phy
    22          - /Sysdb/interface/config
    23          - /Sysdb/interface/config/eth/phy/slice/1/intfConfig
    24  
    25  # Prometheus metrics configuration.
    26  # If you use named capture groups in the path, they will be extracted into labels with the same name.
    27  # All fields are mandatory.
    28  metrics:
    29          - name: interfaceDescription
    30            path: Sysdb/interface/config/eth/phy/slice/1/intfConfig/(?P<interface>Ethernet.)/description
    31            help: Description
    32            valuelabel: description
    33            defaultvalue: 15
    34          - name: intfCounter
    35            path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(?P<type>(Octets|Errors|Discards))
    36            help: Per-Interface Bytes/Errors/Discards Counters
    37          - name: intfPktCounter
    38            path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(?P<type>(?:Ucast|Multicast|Broadcast))Pkt
    39            help: Per-Interface Unicast/Multicast/Broadcast Packer Counters
    40          - name: intfPfcClassCounter
    41            path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/ethStatistics/(?P<direction>(?:in|out))PfcClassFrames
    42            help: Per-Interface Input/Output PFC Frames Counters
    43          - name: tempSensor
    44            path: /Sysdb/environment/temperature/status/tempSensor/(?P<sensor>.+)/(?P<type>(?:maxT|t)emperature)/value
    45            help: Temperature and Maximum Temperature
    46          - name: tempSensorAlert
    47            path: /Sysdb/environment/temperature/status/tempSensor/(?P<sensor>.+)/alertRaisedCount
    48            help: Temperature Alerts Counter
    49          - name: currentSensor
    50            path: /Sysdb/environment/power/status/currentSensor/(?P<sensor>.+)/current/value
    51            help: Current Levels
    52          - name: powerSensor
    53            path: /Sysdb/environment/power/status/powerSupply/(?P<sensor>.+)/(?P<direction>(input|output))Power/value
    54            help: Input/Output Power Levels
    55          - name: voltageSensor
    56            path: /Sysdb/environment/power/status/voltageSensor/(?P<sensor>.+)/voltage/value
    57            help: Voltage Levels
    58          - name: railCurrentSensor
    59            path: /Sysdb/environment/power/status/voltageSensor/(?P<sensor>.+)/current/value
    60            help: Rail Current Levels
    61          - name: fanSpeed
    62            path: /Sysdb/environment/cooling/status/fan/(?P<fan>.+)/speed/value
    63            help: Fan Speed