@cryptotaxi247 / netdata-1 / commits / 98dcabce7

fix v0 dashboard (#16389)

Ilya Mashchenko committed Nov 12, 2023 at 16:45 UTC 98dcabce73d798ede9d546406198627c8c68d889
1 file changed +1 -1
web/api/formatters/rrdset2json.c
+1 -1
@@ -34,7 +34,7 @@ void rrdset2json(RRDSET *st, BUFFER *wb, size_t *dimensions_count, size_t *memor
34 buffer_json_member_add_string(wb, "units", rrdset_units(st));
35
36 char data_url[RRD_ID_LENGTH_MAX + 16];
37 - snprintfz(data_url, RRD_ID_LENGTH_MAX + 15, "/api/v1/chart=%s", rrdset_name(st));
37 + snprintfz(data_url, RRD_ID_LENGTH_MAX + 15, "/api/v1/data?chart=%s", rrdset_name(st));
38 buffer_json_member_add_string(wb, "data_url", data_url);
39
40 buffer_json_member_add_string(wb, "chart_type", rrdset_type_name(st->chart_type));