Browse Source

Add a missing parameter to the allmetrics endpoint in Swagger Editor (#7776)

Vladimir Kobal 5 years ago
parent
commit
413d6a2053
2 changed files with 25 additions and 0 deletions
  1. 14 0
      web/api/netdata-swagger.json
  2. 11 0
      web/api/netdata-swagger.yaml

+ 14 - 0
web/api/netdata-swagger.json

@@ -561,6 +561,20 @@
               "default": "shell"
             }
           },
+          {
+            "name": "variables",
+            "in": "query",
+            "description": "When enabled, netdata will expose various system configuration metrics.",
+            "required": false,
+            "schema": {
+              "type": "string",
+              "enum": [
+                "yes",
+                "no"
+              ],
+              "default": "no"
+            }
+          },
           {
             "name": "help",
             "in": "query",

+ 11 - 0
web/api/netdata-swagger.yaml

@@ -481,6 +481,17 @@ paths:
               - prometheus_all_hosts
               - json
             default: shell
+        - name: variables
+          in: query
+          description: When enabled, netdata will expose various system
+            configuration metrics.
+          required: false
+          schema:
+            type: string
+            enum:
+              - yes
+              - no
+            default: no
         - name: help
           in: query
           description: Enable or disable HELP lines in prometheus output.