1config BR2_PACKAGE_NETDATA
2	bool "netdata"
3	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
4	depends on BR2_USE_MMU # fork()
5	depends on !BR2_STATIC_LIBS # libuv
6	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
7	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
8	select BR2_PACKAGE_LIBUV
9	select BR2_PACKAGE_UTIL_LINUX
10	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
11	select BR2_PACKAGE_ZLIB
12	help
13	  Netdata is distributed, real-time, performance and health
14	  monitoring for systems and applications. It is a highly
15	  optimized monitoring agent you install on all your systems and
16	  containers.
17
18	  https://github.com/netdata/netdata
19
20if BR2_PACKAGE_NETDATA
21
22config BR2_PACKAGE_NETDATA_PROMETHEUS
23	bool "prometheus remote write backend"
24	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
25	depends on BR2_INSTALL_LIBSTDCPP # protobuf, snappy
26	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # protobuf
27	select BR2_PACKAGE_PROTOBUF
28	select BR2_PACKAGE_SNAPPY
29	help
30	  Enable prometheus remote write backend
31
32comment "prometheus remote write backend needs a toolchain w/ C++, gcc >= 4.8"
33	depends on !BR2_INSTALL_LIBSTDCPP || \
34		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
35	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
36
37endif
38
39comment "netdata needs a toolchain w/ NPTL, dynamic library, gcc >= 4.9"
40	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
41		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
42	depends on BR2_USE_MMU
43	depends on BR2_TOOLCHAIN_HAS_SYNC_4
44