]> arthur.barton.de Git - netdata.git/blobdiff - src/rrd2json.c
each host can have its own settings for history, update_every, rrd memory mode, healt...
[netdata.git] / src / rrd2json.c
index b06fb4ae66118b780ec5eba0e76e9e6ae6b37409..40e5bea78e35bc02a3f8965865031af1f9ab53c9 100644 (file)
@@ -93,8 +93,8 @@ void rrd_stats_api_v1_charts(BUFFER *wb)
         , localhost->hostname
         , program_version
         , os_type
-        , rrd_update_every
-        , rrd_default_history_entries
+        , localhost->rrd_update_every
+        , localhost->rrd_history_entries
         );
 
     pthread_rwlock_rdlock(&localhost->rrdset_root_rwlock);
@@ -438,8 +438,8 @@ void rrd_stats_all_json(BUFFER *wb)
         "\t\"memory\": %lu\n"
         "}\n"
         , localhost->hostname
-        , rrd_update_every
-        , rrd_default_history_entries
+        , localhost->rrd_update_every
+        , localhost->rrd_history_entries
         , memory
         );
 }