rrd_unlock();
- debug(D_RRDHOST, "Host '%s', added with guid '%s'", host->hostname, host->machine_guid);
+ info("Host '%s' with guid '%s' initialized, update every: %d, memory mode: %s, streaming: %s, health: %s, cache_dir: '%s', varlib_dir: '%s', health_log: '%s'"
+ , host->hostname
+ , host->machine_guid
+ , host->rrd_update_every
+ , rrd_memory_mode_name(host->rrd_memory_mode)
+ , host->rrdpush_enabled?"enabled: ":"disabled"
+ , host->health_enabled?"enabled":"disabled"
+ , host->cache_dir
+ , host->varlib_dir
+ , host->health_log_filename
+ );
return host;
}
void rrd_init(char *hostname) {
health_init();
registry_init();
+ rrdpush_init();
debug(D_RRDHOST, "Initializing localhost with hostname '%s'", hostname);
localhost = rrdhost_create(hostname,
default_health_enabled,
1
);
-
- rrdpush_init();
}
// ----------------------------------------------------------------------------
#define NETDATA_RRDPUSH_H
extern int default_rrdpush_enabled;
-extern int default_rrdpush_exclusive;
extern int rrdpush_init();
extern void rrdset_done_push(RRDSET *st);