github.com/aristanetworks/goarista@v0.0.0-20240514173732-cca2755bbd44/cmd/octsdb/sampleconfig.json (about)

     1  {
     2  	"comment": "This is a sample configuration for EOS versions below 4.20",
     3  	"subscriptions": [
     4  		"/Sysdb/interface/counter/eth/lag",
     5  		"/Sysdb/interface/counter/eth/slice/phy",
     6  
     7  		"/Sysdb/environment/temperature/status",
     8  		"/Sysdb/environment/cooling/status",
     9  		"/Sysdb/environment/power/status",
    10  
    11  		"/Sysdb/hardware/xcvr/status/all/xcvrStatus",
    12  
    13  		"/Sysdb/interface/status/eth/phy/slice/1/intfStatus"
    14  	],
    15  	"metricPrefix": "eos",
    16  	"metrics": {
    17  		"intfCounter": {
    18  			"path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(Octets|Errors|Discards)"
    19  		},
    20  		"intfPktCounter": {
    21  			"path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(?P<type>(?:Ucast|Multicast|Broadcast))(Pkt)"
    22  		},
    23  		"intfPfcClassCounter": {
    24  			"path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/ethStatistics/(?P<direction>(?:in|out))(PfcClassFrames)"
    25  		},
    26  
    27  		"tempSensor": {
    28  			"path": "/Sysdb/(environment)/temperature/status/tempSensor/(?P<sensor>.+)/((?:maxT|t)emperature)"
    29  		},
    30  		"tempSensorAlert": {
    31  			"path": "/Sysdb/(environment)/temperature/status/tempSensor/(?P<sensor>.+)/(alertRaisedCount)"
    32  		},
    33  		"currentSensor": {
    34  			"path": "/Sysdb/(environment)/power/status/currentSensor/(?P<sensor>.+)/(current)"
    35  		},
    36  		"powerSensor": {
    37  			"path": "/Sysdb/(environment/power)/status/powerSupply/(?P<sensor>.+)/(input|output)Power"
    38  		},
    39  		"voltageSensor": {
    40  			"path": "/Sysdb/(environment)/power/status/voltageSensor/(?P<sensor>.+)/(voltage)"
    41  		},
    42  		"railCurrentSensor": {
    43  			"path": "/Sysdb/(environment)/power/status/voltageSensor/(?P<sensor>.+)/(current)"
    44  		},
    45  		"fanSpeed": {
    46  			"path": "/Sysdb/(environment)/cooling/status/(fan)/(?P<fan>.+)/(speed)"
    47  		},
    48  
    49  		"qsfpRxPower": {
    50  			"path": "/Sysdb/hardware/(xcvr)/status/all/xcvrStatus/(?P<intf>.+)/domRegisterData/lane(?P<lane>\\d)(OpticalRxPower)"
    51  		},
    52  		"sfpTemperature": {
    53  			"path": "/Sysdb/hardware/(xcvr)/status/all/xcvrStatus/(?P<intf>.+)/lastDomUpdateTime/(temperature)"
    54  		},
    55  		"operStatus": {
    56  			"path":"/Sysdb/interface/status/eth/phy/slice/1/intfStatus/(?P<intf>.+)/operStatus",
    57  			"StaticValueMap":{
    58  				"intfOperUp": 1,
    59  				"intfOperDown": 0,
    60  				"default": 0
    61  			}
    62  		 }
    63  	}
    64  }