Browse Source

Update netdata commands (#13080)

* Update netdata commands

Adding the `-W buildinfo` options.

* Update README.md

* Update README.md

* Update daemon/README.md

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

* Update daemon/README.md

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

* also add the change in the daemon command line help message

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

* remove whitespace

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Tasos Katsoulas 2 years ago
parent
commit
9639a31fab
2 changed files with 14 additions and 0 deletions
  1. 8 0
      daemon/README.md
  2. 6 0
      daemon/main.c

+ 8 - 0
daemon/README.md

@@ -180,6 +180,14 @@ The command line options of the Netdata 1.10.0 version are the following:
   -W set section option value
                            set netdata.conf option from the command line.
 
+  -W buildinfo             Print the version, the configure options, 
+                           a list of optional features, and whether they 
+                           are enabled or not.
+
+  -W buildinfojson         Print the version, the configure options, 
+                           a list of optional features, and whether they 
+                           are enabled or not, in JSON format.
+  
   -W simple-pattern pattern string
                            Check if string matches pattern and exit.
 

+ 6 - 0
daemon/main.c

@@ -349,6 +349,12 @@ int help(int exitcode) {
 #endif
             "  -W set section option value\n"
             "                           set netdata.conf option from the command line.\n\n"
+            "  -W buildinfo             Print the version, the configure options,\n"
+            "                           a list of optional features, and whether they\n"
+            "                           are enabled or not.\n\n"
+            "  -W buildinfojson         Print the version, the configure options,\n"
+            "                           a list of optional features, and whether they\n"
+            "                           are enabled or not, in JSON format.\n\n"
             "  -W simple-pattern pattern string\n"
             "                           Check if string matches pattern and exit.\n\n"
             "  -W \"claim -token=TOKEN -rooms=ROOM1,ROOM2\"\n"