metadata.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: am2320
  6. monitored_instance:
  7. name: AM2320
  8. link: 'https://learn.adafruit.com/adafruit-am2320-temperature-humidity-i2c-sensor/overview'
  9. categories:
  10. - data-collection.hardware-devices-and-sensors
  11. icon_filename: 'microchip.svg'
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ''
  17. keywords:
  18. - temperature
  19. - am2320
  20. - sensor
  21. - humidity
  22. most_popular: false
  23. overview:
  24. data_collection:
  25. metrics_description: 'This collector monitors AM2320 sensor metrics about temperature and humidity.'
  26. method_description: 'It retrieves temperature and humidity values by contacting an AM2320 sensor over i2c.'
  27. supported_platforms:
  28. include: []
  29. exclude: []
  30. multi_instance: false
  31. additional_permissions:
  32. description: ''
  33. default_behavior:
  34. auto_detection:
  35. description: 'Assuming prerequisites are met, the collector will try to connect to the sensor via i2c'
  36. limits:
  37. description: ''
  38. performance_impact:
  39. description: ''
  40. setup:
  41. prerequisites:
  42. list:
  43. - title: 'Sensor connection to a Raspberry Pi'
  44. description: |
  45. Connect the am2320 to the Raspberry Pi I2C pins
  46. Raspberry Pi 3B/4 Pins:
  47. - Board 3.3V (pin 1) to sensor VIN (pin 1)
  48. - Board SDA (pin 3) to sensor SDA (pin 2)
  49. - Board GND (pin 6) to sensor GND (pin 3)
  50. - Board SCL (pin 5) to sensor SCL (pin 4)
  51. You may also need to add two I2C pullup resistors if your board does not already have them. The Raspberry Pi does have internal pullup resistors but it doesn't hurt to add them anyway. You can use 2.2K - 10K but we will just use 10K. The resistors go from VDD to SCL and SDA each.
  52. - title: 'Software requirements'
  53. description: |
  54. Install the Adafruit Circuit Python AM2320 library:
  55. `sudo pip3 install adafruit-circuitpython-am2320`
  56. configuration:
  57. file:
  58. name: python.d/am2320.conf
  59. options:
  60. description: |
  61. There are 2 sections:
  62. * Global variables
  63. * One or more JOBS that can define multiple different instances to monitor.
  64. The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
  65. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  66. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  67. folding:
  68. title: "Config options"
  69. enabled: true
  70. list:
  71. - name: update_every
  72. description: Sets the default data collection frequency.
  73. default_value: 5
  74. required: false
  75. - name: priority
  76. description: Controls the order of charts at the netdata dashboard.
  77. default_value: 60000
  78. required: false
  79. - name: autodetection_retry
  80. description: Sets the job re-check interval in seconds.
  81. default_value: 0
  82. required: false
  83. - name: penalty
  84. description: Indicates whether to apply penalty to update_every in case of failures.
  85. default_value: yes
  86. required: false
  87. - name: name
  88. description: Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works.
  89. default_value: ''
  90. required: false
  91. examples:
  92. folding:
  93. enabled: false
  94. title: "Config"
  95. list:
  96. - name: Local sensor
  97. description: A basic JOB configuration
  98. config: |
  99. local_sensor:
  100. name: 'Local AM2320'
  101. troubleshooting:
  102. problems:
  103. list: []
  104. alerts: []
  105. metrics:
  106. folding:
  107. title: Metrics
  108. enabled: false
  109. description: ""
  110. availability: []
  111. scopes:
  112. - name: global
  113. description: "These metrics refer to the entire monitored application."
  114. labels: []
  115. metrics:
  116. - name: am2320.temperature
  117. description: Temperature
  118. unit: "celsius"
  119. chart_type: line
  120. dimensions:
  121. - name: temperature
  122. - name: am2320.humidity
  123. description: Relative Humidity
  124. unit: "percentage"
  125. chart_type: line
  126. dimensions:
  127. - name: humidity