sampleconfig.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. "/Sysdb/environment/temperature/status",
  7. "/Sysdb/environment/cooling/status",
  8. "/Sysdb/environment/power/status",
  9. "/Sysdb/hardware/xcvr/status/all/xcvrStatus"
  10. ],
  11. "metricPrefix": "eos",
  12. "metrics": {
  13. "intfCounter": {
  14. "path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(Octets|Errors|Discards)"
  15. },
  16. "intfPktCounter": {
  17. "path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/statistics/(?P<direction>(?:in|out))(?P<type>(?:Ucast|Multicast|Broadcast))(Pkt)"
  18. },
  19. "intfPfcClassCounter": {
  20. "path": "/Sysdb/(interface)/counter/eth/(?:lag|slice/phy/.+)/intfCounterDir/(?P<intf>.+)/intfCounter/current/ethStatistics/(?P<direction>(?:in|out))(PfcClassFrames)"
  21. },
  22. "tempSensor": {
  23. "path": "/Sysdb/(environment)/temperature/status/tempSensor/(?P<sensor>.+)/((?:maxT|t)emperature)"
  24. },
  25. "tempSensorAlert": {
  26. "path": "/Sysdb/(environment)/temperature/status/tempSensor/(?P<sensor>.+)/(alertRaisedCount)"
  27. },
  28. "currentSensor": {
  29. "path": "/Sysdb/(environment)/power/status/currentSensor/(?P<sensor>.+)/(current)"
  30. },
  31. "powerSensor": {
  32. "path": "/Sysdb/(environment/power)/status/powerSupply/(?P<sensor>.+)/(input|output)Power"
  33. },
  34. "voltageSensor": {
  35. "path": "/Sysdb/(environment)/power/status/voltageSensor/(?P<sensor>.+)/(voltage)"
  36. },
  37. "railCurrentSensor": {
  38. "path": "/Sysdb/(environment)/power/status/voltageSensor/(?P<sensor>.+)/(current)"
  39. },
  40. "fanSpeed": {
  41. "path": "/Sysdb/(environment)/cooling/status/(fan)/(?P<fan>.+)/(speed)"
  42. },
  43. "qsfpRxPower": {
  44. "path": "/Sysdb/hardware/(xcvr)/status/all/xcvrStatus/(?P<intf>.+)/domRegisterData/lane(?P<lane>\\d)(OpticalRxPower)"
  45. },
  46. "sfpTemperature": {
  47. "path": "/Sysdb/hardware/(xcvr)/status/all/xcvrStatus/(?P<intf>.+)/lastDomUpdateTime/(temperature)"
  48. }
  49. }
  50. }