summaryrefslogtreecommitdiffstats
path: root/web/api
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2019-09-28 00:33:34 +0300
committerthiagoftsm <thiagoftsm@gmail.com>2019-09-27 21:33:34 +0000
commitbec641cc99ac2d16714ea40a13578bb74c2044d7 (patch)
tree41ba58bf296c880e0423908936701022bdf04106 /web/api
parente3471fa5727bcf286dd3b52ec0cdecd8fdf7067e (diff)
add family to allmetrics_json resp (#6966)
Diffstat (limited to 'web/api')
-rw-r--r--web/api/exporters/shell/allmetrics_shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/api/exporters/shell/allmetrics_shell.c b/web/api/exporters/shell/allmetrics_shell.c
index 9a18b92dce..90c63d443d 100644
--- a/web/api/exporters/shell/allmetrics_shell.c
+++ b/web/api/exporters/shell/allmetrics_shell.c
@@ -108,6 +108,7 @@ void rrd_stats_api_v1_charts_allmetrics_json(RRDHOST *host, BUFFER *wb) {
buffer_sprintf(wb, "%s\n"
"\t\"%s\": {\n"
"\t\t\"name\":\"%s\",\n"
+ "\t\t\"family\":\"%s\",\n"
"\t\t\"context\":\"%s\",\n"
"\t\t\"units\":\"%s\",\n"
"\t\t\"last_updated\": %ld,\n"
@@ -115,6 +116,7 @@ void rrd_stats_api_v1_charts_allmetrics_json(RRDHOST *host, BUFFER *wb) {
, chart_counter?",":""
, st->id
, st->name
+ , st->family
, st->context
, st->units
, rrdset_last_entry_t(st)