go_expvar.conf 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # netdata python.d.plugin configuration for go_expvar
  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. # update_every: 1
  22. # priority controls the order of charts at the netdata dashboard.
  23. # Lower numbers move the charts towards the top of the page.
  24. # If unset, the default for python.d.plugin is used.
  25. # priority: 60000
  26. # penalty indicates whether to apply penalty to update_every in case of failures.
  27. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  28. # penalty: yes
  29. # autodetection_retry sets the job re-check interval in seconds.
  30. # The job is not deleted if check fails.
  31. # Attempts to start the job are made once every autodetection_retry.
  32. # This feature is disabled by default.
  33. # autodetection_retry: 0
  34. # ----------------------------------------------------------------------
  35. # JOBS (data collection sources)
  36. #
  37. # Any number of jobs is supported.
  38. #
  39. # All python.d.plugin JOBS (for all its modules) support a set of
  40. # predefined parameters. These are:
  41. #
  42. # job_name:
  43. # name: myname # the JOB's name as it will appear at the
  44. # # dashboard (by default is the job_name)
  45. # # JOBs sharing a name are mutually exclusive
  46. # update_every: 1 # the JOB's data collection frequency
  47. # priority: 60000 # the JOB's order on the dashboard
  48. # penalty: yes # the JOB's penalty
  49. # autodetection_retry: 0 # the JOB's re-check interval in seconds
  50. #
  51. # Additionally to the above, this plugin also supports the following:
  52. #
  53. # url: 'http://127.0.0.1/debug/vars' # the URL of the expvar endpoint
  54. #
  55. # As the plugin cannot possibly know the port your application listens on, there is no default value. Please include
  56. # the whole path of the endpoint, as the expvar handler can be installed in a non-standard location.
  57. #
  58. # if the URL is password protected, the following are supported:
  59. #
  60. # user: 'username'
  61. # pass: 'password'
  62. #
  63. # collect_memstats: true # enables charts for Go runtime's memory statistics
  64. # extra_charts: {} # defines extra data/charts to monitor, please see the example below
  65. #
  66. # If collect_memstats is disabled and no extra charts are defined, this module will disable itself, as it has no data to
  67. # collect.
  68. #
  69. # Please visit the module wiki page for more information on how to use the extra_charts variable:
  70. #
  71. # https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin/go_expvar
  72. #
  73. # Configuration example
  74. # ---------------------
  75. #app1:
  76. # name : 'app1'
  77. # url : 'http://127.0.0.1:8080/debug/vars'
  78. # collect_memstats: true
  79. # extra_charts:
  80. # - id: "runtime_goroutines"
  81. # options:
  82. # name: num_goroutines
  83. # title: "runtime: number of goroutines"
  84. # units: goroutines
  85. # family: runtime
  86. # context: expvar.runtime.goroutines
  87. # chart_type: line
  88. # lines:
  89. # - {expvar_key: 'runtime.goroutines', expvar_type: int, id: runtime_goroutines}
  90. # - id: "foo_counters"
  91. # options:
  92. # name: counters
  93. # title: "some random counters"
  94. # units: awesomeness
  95. # family: counters
  96. # context: expvar.foo.counters
  97. # chart_type: line
  98. # lines:
  99. # - {expvar_key: 'counters.cnt1', expvar_type: int, id: counters_cnt1}
  100. # - {expvar_key: 'counters.cnt2', expvar_type: float, id: counters_cnt2}