summaryrefslogtreecommitdiffstats
path: root/web/api
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-01-17 13:47:25 +0200
committerGitHub <noreply@github.com>2020-01-17 13:47:25 +0200
commit413d6a20539c50933553d6bc7f4f0cfbdeb5eed6 (patch)
tree56e22e533c6b3a50f63a2a346e62d70d886fc85b /web/api
parent0d509a07ca194950fa7f3e3265d4a948f7c0d35a (diff)
Add a missing parameter to the allmetrics endpoint in Swagger Editor (#7776)
Diffstat (limited to 'web/api')
-rw-r--r--web/api/netdata-swagger.json14
-rw-r--r--web/api/netdata-swagger.yaml11
2 files changed, 25 insertions, 0 deletions
diff --git a/web/api/netdata-swagger.json b/web/api/netdata-swagger.json
index 6a222a00ab..ca2d03631f 100644
--- a/web/api/netdata-swagger.json
+++ b/web/api/netdata-swagger.json
@@ -562,6 +562,20 @@
}
},
{
+ "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.",
diff --git a/web/api/netdata-swagger.yaml b/web/api/netdata-swagger.yaml
index 669d1d1917..77c2e7c91b 100644
--- a/web/api/netdata-swagger.yaml
+++ b/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.