metadata.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: example
  6. monitored_instance:
  7. name: Example collector
  8. link: https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/example/README.md
  9. categories:
  10. - data-collection.other
  11. icon_filename: ""
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - example
  19. - netdata
  20. - python
  21. most_popular: false
  22. overview:
  23. data_collection:
  24. metrics_description: |
  25. Example collector that generates some random numbers as metrics.
  26. If you want to write your own collector, read our [writing a new Python module](https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/README.md#how-to-write-a-new-module) tutorial.
  27. method_description: |
  28. The `get_data()` function uses `random.randint()` to generate a random number which will be collected as a metric.
  29. supported_platforms:
  30. include: []
  31. exclude: []
  32. multi_instance: true
  33. additional_permissions:
  34. description: ""
  35. default_behavior:
  36. auto_detection:
  37. description: ""
  38. limits:
  39. description: ""
  40. performance_impact:
  41. description: ""
  42. setup:
  43. prerequisites:
  44. list: []
  45. configuration:
  46. file:
  47. name: python.d/example.conf
  48. description: ""
  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: num_lines
  62. description: The number of lines to create.
  63. default_value: 4
  64. required: false
  65. - name: lower
  66. description: The lower bound of numbers to randomly sample from.
  67. default_value: 0
  68. required: false
  69. - name: upper
  70. description: The upper bound of numbers to randomly sample from.
  71. default_value: 100
  72. required: false
  73. - name: update_every
  74. description: Sets the default data collection frequency.
  75. default_value: 1
  76. required: false
  77. - name: priority
  78. description: Controls the order of charts at the netdata dashboard.
  79. default_value: 60000
  80. required: false
  81. - name: autodetection_retry
  82. description: Sets the job re-check interval in seconds.
  83. default_value: 0
  84. required: false
  85. - name: penalty
  86. description: Indicates whether to apply penalty to update_every in case of failures.
  87. default_value: yes
  88. required: false
  89. - name: name
  90. 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.
  91. default_value: ""
  92. required: false
  93. examples:
  94. folding:
  95. enabled: true
  96. title: Config
  97. list:
  98. - name: Basic
  99. folding:
  100. enabled: false
  101. description: A basic example configuration.
  102. config: |
  103. four_lines:
  104. name: "Four Lines"
  105. update_every: 1
  106. priority: 60000
  107. penalty: yes
  108. autodetection_retry: 0
  109. num_lines: 4
  110. lower: 0
  111. upper: 100
  112. troubleshooting:
  113. problems:
  114. list: []
  115. alerts: []
  116. metrics:
  117. folding:
  118. title: Metrics
  119. enabled: false
  120. description: ""
  121. availability: []
  122. scopes:
  123. - name: global
  124. description: |
  125. These metrics refer to the entire monitored application.
  126. labels: []
  127. metrics:
  128. - name: example.random
  129. description: A random number
  130. unit: number
  131. chart_type: line
  132. dimensions:
  133. - name: random