integration_test_v2c_config.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. receivers:
  2. snmp:
  3. community: "1.3.6.1.6.1.1.0"
  4. collection_interval: 10s
  5. endpoint: udp://localhost:1024
  6. version: v2c
  7. resource_attributes:
  8. ra1:
  9. indexed_value_prefix: p
  10. url:
  11. oid: "1.3.6.1.4.1.2021.10.1.4"
  12. metrics:
  13. snmp.test.metric.sysuptime:
  14. description: System uptime
  15. unit: "by"
  16. gauge:
  17. value_type: int
  18. scalar_oids:
  19. - oid: ".1.3.6.1.2.1.1.8.0"
  20. attributes:
  21. - name: snmp.test.1
  22. value: sysuptime_test
  23. - oid: "1.3.6.1.2.1.1.3.0"
  24. snmp.test.metric.sysservices:
  25. description: System services
  26. unit: "by"
  27. gauge:
  28. value_type: int
  29. scalar_oids:
  30. - oid: ".1.3.6.1.2.1.1.7.0"
  31. attributes:
  32. - name: snmp.test.attribute.two.enum
  33. value: out
  34. snmp.test.column.out.get.reponses:
  35. description: SNMP get responses
  36. unit: "By"
  37. sum:
  38. aggregation: cumulative
  39. monotonic: true
  40. value_type: int
  41. column_oids:
  42. - oid: "1.3.6.1.4.1.2021.10.1.5"
  43. resource_attributes:
  44. - ra1
  45. - url
  46. attributes:
  47. - name: snmp.test.attribute.one.enum
  48. value: happy
  49. attributes:
  50. snmp.test.attribute.two.enum:
  51. description: Test enum with two options
  52. enum:
  53. - in
  54. - out
  55. snmp.test.attribute.one.enum:
  56. value: mood
  57. description: Test enum with one options
  58. enum:
  59. - happy
  60. snmp.test.1:
  61. value: test
  62. description: test integration scrape 1
  63. enum:
  64. - sysuptime_test
  65. exporters:
  66. nop:
  67. service:
  68. pipelines:
  69. metrics:
  70. receivers: [snmp]
  71. exporters: [nop]