metadata.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: tor
  6. monitored_instance:
  7. name: Tor
  8. link: 'https://www.torproject.org/'
  9. categories:
  10. - data-collection.vpns
  11. icon_filename: 'tor.svg'
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ''
  17. keywords:
  18. - tor
  19. - traffic
  20. - vpn
  21. most_popular: false
  22. overview:
  23. data_collection:
  24. metrics_description: 'This collector monitors Tor bandwidth traffic .'
  25. method_description: 'It connects to the Tor control port to collect traffic statistics.'
  26. supported_platforms:
  27. include: []
  28. exclude: []
  29. multi_instance: true
  30. additional_permissions:
  31. description: ''
  32. default_behavior:
  33. auto_detection:
  34. description: 'If no configuration is provided the collector will try to connect to 127.0.0.1:9051 to detect a running tor instance.'
  35. limits:
  36. description: ''
  37. performance_impact:
  38. description: ''
  39. setup:
  40. prerequisites:
  41. list:
  42. - title: 'Required python module'
  43. description: |
  44. The `stem` python library needs to be installed.
  45. - title: 'Required Tor configuration'
  46. description: |
  47. Add to /etc/tor/torrc:
  48. ControlPort 9051
  49. For more options please read the manual.
  50. configuration:
  51. file:
  52. name: python.d/tor.conf
  53. options:
  54. description: |
  55. There are 2 sections:
  56. * Global variables
  57. * One or more JOBS that can define multiple different instances to monitor.
  58. 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.
  59. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  60. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  61. folding:
  62. title: "Config options"
  63. enabled: true
  64. list:
  65. - name: update_every
  66. description: Sets the default data collection frequency.
  67. default_value: 5
  68. required: false
  69. - name: priority
  70. description: Controls the order of charts at the netdata dashboard.
  71. default_value: 60000
  72. required: false
  73. - name: autodetection_retry
  74. description: Sets the job re-check interval in seconds.
  75. default_value: 0
  76. required: false
  77. - name: penalty
  78. description: Indicates whether to apply penalty to update_every in case of failures.
  79. default_value: yes
  80. required: false
  81. - name: name
  82. 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.
  83. default_value: ''
  84. required: false
  85. - name: control_addr
  86. description: Tor control IP address
  87. default_value: 127.0.0.1
  88. required: false
  89. - name: control_port
  90. description: Tor control port. Can be either a tcp port, or a path to a socket file.
  91. default_value: 9051
  92. required: false
  93. - name: password
  94. description: Tor control password
  95. default_value: ''
  96. required: false
  97. examples:
  98. folding:
  99. enabled: true
  100. title: "Config"
  101. list:
  102. - name: Local TCP
  103. description: A basic TCP configuration. `local_addr` is ommited and will default to `127.0.0.1`
  104. config: |
  105. local_tcp:
  106. name: 'local'
  107. control_port: 9051
  108. password: <password> # if required
  109. - name: Local socket
  110. description: A basic local socket configuration
  111. config: |
  112. local_socket:
  113. name: 'local'
  114. control_port: '/var/run/tor/control'
  115. password: <password> # if required
  116. troubleshooting:
  117. problems:
  118. list: []
  119. alerts: []
  120. metrics:
  121. folding:
  122. title: Metrics
  123. enabled: false
  124. description: ""
  125. availability: []
  126. scopes:
  127. - name: global
  128. description: "These metrics refer to the entire monitored application."
  129. labels: []
  130. metrics:
  131. - name: tor.traffic
  132. description: Tor Traffic
  133. unit: "KiB/s"
  134. chart_type: area
  135. dimensions:
  136. - name: read
  137. - name: write