@cryptotaxi247 / netdata-1 / commits / bec641cc9

add family to allmetrics_json resp (#6966)

Ilya Mashchenko committed Sep 28, 2019 at 00:33 UTC bec641cc99ac2d16714ea40a13578bb74c2044d7
1 file changed +2
web/api/exporters/shell/allmetrics_shell.c
+2
@@ -108,6 +108,7 @@ void rrd_stats_api_v1_charts_allmetrics_json(RRDHOST *host, BUFFER *wb) {
108 buffer_sprintf(wb, "%s\n"
109 "\t\"%s\": {\n"
110 "\t\t\"name\":\"%s\",\n"
111 + "\t\t\"family\":\"%s\",\n"
112 "\t\t\"context\":\"%s\",\n"
113 "\t\t\"units\":\"%s\",\n"
114 "\t\t\"last_updated\": %ld,\n"
@@ -115,6 +116,7 @@ void rrd_stats_api_v1_charts_allmetrics_json(RRDHOST *host, BUFFER *wb) {
116 , chart_counter?",":""
117 , st->id
118 , st->name
119 + , st->family
120 , st->context
121 , st->units
122 , rrdset_last_entry_t(st)