blob: 9f6efa3efba79a4a3ddb2df9bf8f4e33124deae0 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_COMMON_H
#define NETDATA_COMMON_H 1
#include "libnetdata/libnetdata.h"
#include "libuv_workers.h"
// ----------------------------------------------------------------------------
// netdata include files
#include "web/api/maps/maps.h"
#include "daemon/config/dyncfg.h"
#include "global_statistics.h"
// health monitoring and alarm notifications
#include "health/health.h"
// the netdata database
#include "database/rrd.h"
// the netdata webserver(s)
#include "web/server/web_server.h"
// the new h2o based netdata webserver
#ifdef ENABLE_H2O
#include "web/server/h2o/http_server.h"
#endif
// streaming metrics between netdata servers
#include "streaming/rrdpush.h"
// anomaly detection
#include "ml/ml.h"
// the netdata registry
// the registry is actually an API feature
#include "registry/registry.h"
// exporting engine for archiving the metrics
#include "exporting/exporting_engine.h"
// the netdata API
#include "web/server/web_client.h"
#include "web/rtc/webrtc.h"
// all data collection plugins
#include "collectors/all.h"
// netdata unit tests
#include "unit_test.h"
// netdata agent claiming
#include "claim/claim.h"
// netdata agent cloud link
#include "aclk/aclk.h"
// global GUID map functions
// the netdata daemon
#include "daemon.h"
#include "main.h"
#include "static_threads.h"
#include "signals.h"
#include "commands.h"
#include "pipename.h"
#include "analytics.h"
// global netdata daemon variables
extern const char *netdata_configured_hostname;
extern const char *netdata_configured_user_config_dir;
extern const char *netdata_configured_stock_config_dir;
extern const char *netdata_configured_log_dir;
extern const char *netdata_configured_primary_plugins_dir;
extern const char *netdata_configured_web_dir;
extern const char *netdata_configured_cache_dir;
extern const char *netdata_configured_varlib_dir;
extern const char *netdata_configured_lock_dir;
extern const char *netdata_configured_cloud_dir;
extern const char *netdata_configured_home_dir;
extern const char *netdata_configured_host_prefix;
extern const char *netdata_configured_timezone;
extern const char *netdata_configured_abbrev_timezone;
extern int32_t netdata_configured_utc_offset;
extern int netdata_anonymous_statistics_enabled;
extern bool netdata_ready;
extern time_t netdata_start_time;
long get_netdata_cpus(void);
void set_environment_for_plugins_and_scripts(void);
#endif /* NETDATA_COMMON_H */
|