nsd.conf 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # netdata python.d.plugin configuration for nsd
  2. #
  3. # This file is in YaML format. Generally the format is:
  4. #
  5. # name: value
  6. #
  7. # There are 2 sections:
  8. # - global variables
  9. # - one or more JOBS
  10. #
  11. # JOBS allow you to collect values from multiple sources.
  12. # Each source will have its own set of charts.
  13. #
  14. # JOB parameters have to be indented (using spaces only, example below).
  15. # ----------------------------------------------------------------------
  16. # Global Variables
  17. # These variables set the defaults for all JOBs, however each JOB
  18. # may define its own, overriding the defaults.
  19. # update_every sets the default data collection frequency.
  20. # If unset, the python.d.plugin default is used.
  21. # nsd-control is slow, so once every 30 seconds
  22. # update_every: 30
  23. # priority controls the order of charts at the netdata dashboard.
  24. # Lower numbers move the charts towards the top of the page.
  25. # If unset, the default for python.d.plugin is used.
  26. # priority: 60000
  27. # penalty indicates whether to apply penalty to update_every in case of failures.
  28. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  29. # penalty: yes
  30. # autodetection_retry sets the job re-check interval in seconds.
  31. # The job is not deleted if check fails.
  32. # Attempts to start the job are made once every autodetection_retry.
  33. # This feature is disabled by default.
  34. # autodetection_retry: 0
  35. # ----------------------------------------------------------------------
  36. # JOBS (data collection sources)
  37. #
  38. # The default JOBS share the same *name*. JOBS with the same name
  39. # are mutually exclusive. Only one of them will be allowed running at
  40. # any time. This allows autodetection to try several alternatives and
  41. # pick the one that works.
  42. #
  43. # Any number of jobs is supported.
  44. #
  45. # All python.d.plugin JOBS (for all its modules) support a set of
  46. # predefined parameters. These are:
  47. #
  48. # job_name:
  49. # name: myname # the JOB's name as it will appear at the
  50. # # dashboard (by default is the job_name)
  51. # # JOBs sharing a name are mutually exclusive
  52. # update_every: 1 # the JOB's data collection frequency
  53. # priority: 60000 # the JOB's order on the dashboard
  54. # penalty: yes # the JOB's penalty
  55. # autodetection_retry: 0 # the JOB's re-check interval in seconds
  56. #
  57. # Additionally to the above, nsd also supports the following:
  58. #
  59. # command: 'nsd-control stats_noreset' # the command to run
  60. #
  61. # ----------------------------------------------------------------------
  62. # IMPORTANT Information
  63. #
  64. # Netdata must have permissions to run `nsd-control stats_noreset` command
  65. #
  66. # - Example-1 (use "sudo")
  67. # 1. sudoers (e.g. visudo -f /etc/sudoers.d/netdata)
  68. # Defaults:netdata !requiretty
  69. # netdata ALL=(ALL) NOPASSWD: /usr/sbin/nsd-control stats_noreset
  70. # 2. etc/netdata/python.d/nsd.conf
  71. # local:
  72. # update_every: 30
  73. # command: 'sudo /usr/sbin/nsd-control stats_noreset'
  74. #
  75. # - Example-2 (add "netdata" user to "nsd" group)
  76. # usermod -aG nsd netdata
  77. #
  78. # ----------------------------------------------------------------------
  79. # AUTO-DETECTION JOBS
  80. local:
  81. update_every: 30
  82. command: 'nsd-control stats_noreset'