metadata.yaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: uwsgi
  6. monitored_instance:
  7. name: uWSGI
  8. link: "https://github.com/unbit/uwsgi/tree/2.0.21"
  9. categories:
  10. - data-collection.web-servers-and-web-proxies
  11. icon_filename: "uwsgi.svg"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - application server
  19. - python
  20. - web applications
  21. most_popular: false
  22. overview:
  23. data_collection:
  24. metrics_description: "This collector monitors uWSGI metrics about requests, workers, memory and more."
  25. method_description: "It collects every metric exposed from the stats server of uWSGI, either from the `stats.socket` or from the web server's TCP/IP socket."
  26. supported_platforms:
  27. include: []
  28. exclude: []
  29. multi_instance: true
  30. additional_permissions:
  31. description: ""
  32. default_behavior:
  33. auto_detection:
  34. description: "This collector will auto-detect uWSGI instances deployed on the local host, running on port 1717, or exposing stats on socket `tmp/stats.socket`."
  35. limits:
  36. description: ""
  37. performance_impact:
  38. description: ""
  39. setup:
  40. prerequisites:
  41. list:
  42. - title: Enable the uWSGI Stats server
  43. description: |
  44. Make sure that you uWSGI exposes it's metrics via a Stats server.
  45. Source: https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html
  46. configuration:
  47. file:
  48. name: "python.d/uwsgi.conf"
  49. options:
  50. description: |
  51. There are 2 sections:
  52. * Global variables
  53. * One or more JOBS that can define multiple different instances to monitor.
  54. 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.
  55. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  56. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  57. folding:
  58. title: "Config options"
  59. enabled: true
  60. list:
  61. - name: update_every
  62. description: Sets the default data collection frequency.
  63. default_value: 5
  64. required: false
  65. - name: priority
  66. description: Controls the order of charts at the netdata dashboard.
  67. default_value: 60000
  68. required: false
  69. - name: autodetection_retry
  70. description: Sets the job re-check interval in seconds.
  71. default_value: 0
  72. required: false
  73. - name: penalty
  74. description: Indicates whether to apply penalty to update_every in case of failures.
  75. default_value: yes
  76. required: false
  77. - name: name
  78. description: The JOB's name as it will appear at the dashboard (by default is the job_name)
  79. default_value: job_name
  80. required: false
  81. - name: socket
  82. description: The 'path/to/uwsgistats.sock'
  83. default_value: no
  84. required: false
  85. - name: host
  86. description: The host to connect to
  87. default_value: no
  88. required: false
  89. - name: port
  90. description: The port to connect to
  91. default_value: no
  92. required: false
  93. examples:
  94. folding:
  95. enabled: true
  96. title: "Config"
  97. list:
  98. - name: Basic (default out-of-the-box)
  99. description: A basic example configuration, one job will run at a time. Autodetect mechanism uses it by default. As all JOBs have the same name, only one can run at a time.
  100. config: |
  101. socket:
  102. name : 'local'
  103. socket : '/tmp/stats.socket'
  104. localhost:
  105. name : 'local'
  106. host : 'localhost'
  107. port : 1717
  108. localipv4:
  109. name : 'local'
  110. host : '127.0.0.1'
  111. port : 1717
  112. localipv6:
  113. name : 'local'
  114. host : '::1'
  115. port : 1717
  116. - name: Multi-instance
  117. description: |
  118. > **Note**: When you define multiple jobs, their names must be unique.
  119. Collecting metrics from local and remote instances.
  120. config: |
  121. local:
  122. name : 'local'
  123. host : 'localhost'
  124. port : 1717
  125. remote:
  126. name : 'remote'
  127. host : '192.0.2.1'
  128. port : 1717
  129. troubleshooting:
  130. problems:
  131. list: []
  132. alerts: []
  133. metrics:
  134. folding:
  135. title: Metrics
  136. enabled: false
  137. description: ""
  138. availability: []
  139. scopes:
  140. - name: global
  141. description: "These metrics refer to the entire monitored application."
  142. labels: []
  143. metrics:
  144. - name: uwsgi.requests
  145. description: Requests
  146. unit: "requests/s"
  147. chart_type: stacked
  148. dimensions:
  149. - name: a dimension per worker
  150. - name: uwsgi.tx
  151. description: Transmitted data
  152. unit: "KiB/s"
  153. chart_type: stacked
  154. dimensions:
  155. - name: a dimension per worker
  156. - name: uwsgi.avg_rt
  157. description: Average request time
  158. unit: "milliseconds"
  159. chart_type: line
  160. dimensions:
  161. - name: a dimension per worker
  162. - name: uwsgi.memory_rss
  163. description: RSS (Resident Set Size)
  164. unit: "MiB"
  165. chart_type: stacked
  166. dimensions:
  167. - name: a dimension per worker
  168. - name: uwsgi.memory_vsz
  169. description: VSZ (Virtual Memory Size)
  170. unit: "MiB"
  171. chart_type: stacked
  172. dimensions:
  173. - name: a dimension per worker
  174. - name: uwsgi.exceptions
  175. description: Exceptions
  176. unit: "exceptions"
  177. chart_type: line
  178. dimensions:
  179. - name: exceptions
  180. - name: uwsgi.harakiris
  181. description: Harakiris
  182. unit: "harakiris"
  183. chart_type: line
  184. dimensions:
  185. - name: harakiris
  186. - name: uwsgi.respawns
  187. description: Respawns
  188. unit: "respawns"
  189. chart_type: line
  190. dimensions:
  191. - name: respawns