summaryrefslogtreecommitdiffstats
path: root/src/streaming/stream-conf.h
blob: da7a88123505175ff58fe2ef52a7330e593b5f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_STREAM_CONF_H
#define NETDATA_STREAM_CONF_H

#include "libnetdata/libnetdata.h"
#include "daemon/common.h"

extern bool stream_conf_send_enabled;
extern bool stream_conf_compression_enabled;
extern bool stream_conf_replication_enabled;

extern const char *stream_conf_send_destination;
extern const char *stream_conf_send_api_key;
extern const char *stream_conf_send_charts_matching;
extern time_t stream_conf_replication_period;
extern time_t stream_conf_replication_step;
extern unsigned int stream_conf_initial_clock_resync_iterations;

extern struct config stream_config;
extern const char *stream_conf_ssl_ca_path;
extern const char *stream_conf_ssl_ca_file;

bool stream_conf_init();
bool stream_conf_receiver_needs_dbengine();
bool stream_conf_configured_as_parent();

#endif //NETDATA_STREAM_CONF_H