Skip to content

reload config plugin go.d/ping without restart service netdata #16063

Answered by ilyam8
cayenne17 asked this question in Q&A
Discussion options

You must be logged in to vote

Alternatively, you can try using the file-watching feature (go.d.plugin rereads it on every change and adds/stops jobs automatically) - but it is not documented and could break in the future. But if you want:

  • create a file anywhere and make sure it is readable by netdata user.
  • add -w PATH_TO_THE_FILE to go.d.plugin command options in netdata.conf.
  • ...
  • profit!

Example:

  • create /opt/netdata/etc/netdata/ping.conf (could be /etc/netdata/ping.conf in your case, depends on the install prefix)
jobs:
  - name: first
    hosts:
      - 8.8.8.8
  • make go.d.plugin to watch it
# netdata.conf
[plugin:go.d]
        # update every = 1
        command options = -w /opt/netdata/etc/netdata/ping.conf
  • r…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ilyam8
Comment options

Answer selected by cayenne17
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants