# Per-device labels. Optional # Exactly the same set of labels must be specified for each device. # If device address is *, the labels apply to all devices not listed explicitly. # If any explicit device if listed below, then you need to specify all devices you're subscribed to, # or have a wildcard entry. Otherwise, updates from non-listed devices will be ignored. deviceLabels: 10.1.1.1: lab1: val1 lab2: val2 '*': lab1: val3 lab2: val4 # Subscriptions to OpenConfig paths. subscriptions: - /Sysdb/environment/cooling/status - /Sysdb/environment/power/status - /Sysdb/environment/temperature/status - /Sysdb/interface/counter/eth/lag - /Sysdb/interface/counter/eth/slice/phy # Prometheus metrics configuration. # If you use named capture groups in the path, they will be extracted into labels with the same name. # All fields are mandatory. metrics: - name: intfCounter path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P.+)/intfCounter/current/statistics/(?P(?:in|out))(?P(Octets|Errors|Discards)) help: Per-Interface Bytes/Errors/Discards Counters - name: intfPktCounter path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P.+)/intfCounter/current/statistics/(?P(?:in|out))(?P(?:Ucast|Multicast|Broadcast))Pkt help: Per-Interface Unicast/Multicast/Broadcast Packer Counters - name: intfPfcClassCounter path: /Sysdb/interface/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P.+)/intfCounter/current/ethStatistics/(?P(?:in|out))PfcClassFrames help: Per-Interface Input/Output PFC Frames Counters - name: tempSensor path: /Sysdb/environment/temperature/status/tempSensor/(?P.+)/(?P(?:maxT|t)emperature)/value help: Temperature and Maximum Temperature - name: tempSensorAlert path: /Sysdb/environment/temperature/status/tempSensor/(?P.+)/alertRaisedCount help: Temperature Alerts Counter - name: currentSensor path: /Sysdb/environment/power/status/currentSensor/(?P.+)/current/value help: Current Levels - name: powerSensor path: /Sysdb/environment/power/status/powerSupply/(?P.+)/(?P(input|output))Power/value help: Input/Output Power Levels - name: voltageSensor path: /Sysdb/environment/power/status/voltageSensor/(?P.+)/voltage/value help: Voltage Levels - name: railCurrentSensor path: /Sysdb/environment/power/status/voltageSensor/(?P.+)/current/value help: Rail Current Levels - name: fanSpeed path: /Sysdb/environment/cooling/status/fan/(?P.+)/speed/value help: Fan Speed