summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-07-14 21:04:42 +0300
committerGitHub <noreply@github.com>2023-07-14 21:04:42 +0300
commita05a8f4074d8bdf8320915590e2a3794997215c1 (patch)
treee83c19cfd27c63e8ebb818ca7da6070b76e7fcd4 /database
parent8cc100f70fba859a0e60abbb140f40af3088db35 (diff)
Pre release fixes (#15405)
Diffstat (limited to 'database')
-rw-r--r--database/rrdhost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c
index d49813c6bd..235d64b1ee 100644
--- a/database/rrdhost.c
+++ b/database/rrdhost.c
@@ -1065,12 +1065,14 @@ int rrd_init(char *hostname, struct rrdhost_system_info *system_info, bool unitt
return 1;
}
+#ifdef NETDATA_DEV_MODE
// we register this only on localhost
// for the other nodes, the origin server should register it
rrd_collector_started(); // this creates a collector that runs for as long as netdata runs
rrd_collector_add_function(localhost, NULL, "streaming", 10,
RRDFUNCTIONS_STREAMING_HELP, true,
rrdhost_function_streaming, NULL);
+#endif
if (likely(system_info)) {
migrate_localhost(&localhost->host_uuid);