0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-11 08:21:23 +00:00
Commit graph

18435 commits

Author SHA1 Message Date
Costa Tsaousis
4c0122063f
WIP - Netdata v2 ()
* split claiming into multiple files; WIP claiming with api

* pidfile is now dynamically allocated

* netdata_exe_path is now dynamically allocated

* remove ENABLE_CLOUD and ENABLE_ACLK

* fix compilation

* remove ENABLE_HTTPS and ENABLE_OPENSSL

* remove the ability to disable cloud

* remove netdata_cloud_enabled variable; split rooms into a json array

* global libcurl initialization

* detect common claiming errors

* more common claiming errors

* finished claiming via API

* same as before

* same as before

* remove the old claiming logic that runs the claim script

* working claim.conf

* cleanup

* fix log message; default proxy is env

* fix log message

* remove netdata-claim.sh from run.sh

* remove netdata-claim.sh from everywhere, except kickstart scripts

* create cloud.d if it does not exist.

* better error handling and logging

* handle proxy disable

* merged master

* fix cmakelists for new files

* left-overs removal

* Include libcurl in required dependencies.

* Fix typo in dependency script.

* Use pkg-config for finding cURL.

This properly handles transitive dependencies, unlike the FindCURL
module.

* netdata installer writes claiming info to /etc/netdata/claim.conf

* remove claim from netdata

* add libcurl to windows packages

* add libcurl to windows packages

* compile-on-windows.sh installs too

* add NODE_ID streaming back to child and INDIRECT cloud status

* log child kill on windows

* fixes for spawn server on windows to ensure we have a valid pid and the process is properly terminated

* better handling to windows processes exit code

* pass the cloud url from parents to children

* add retries and timeout to claiming curl request

* remove FILE * from plugins.d

* spawn-tester to unittest spawning processes communication

* spawn-tester now tests FILE pointer I/O

* external plugins run in posix mode

* set blocking I/O on all pipes

* working spawn server on windows

* latest changes in spawn_popen applied to linux tools

* push environment

* repeated tests of fds

* export variable CYGWIN_BASE_PATH

* renamed to NETDATA_CYGWIN_BASE_PATH

* added cmd and help to adapt the command and the information to be presented to users during claiming

* split spawn server versions into files

* restored spawn server libuv based

* working libuv based spawn server

* fixes in libuv for windows

* working spawn server based on posix_spawn()

* fix fd leads on all spawn servers

* fixed windows spawn server

* fix signal handling to ensure proper cooperation with libuv

* switched windows to posix_spawn() based spawn server

* improvement on libuv version

* callocz() event loop

* simplification of libuv spawn server

* minor fixes in libuv and spawn tester

* api split into parts and separated by version; introduced /api/v3; no changes to old /api/v1 and /api/v2

* completed APIs splitting

* function renames

* remove dead code

* split basic functions into a directory

* execute external plugins in nofork spawn server with posix_spawn() for improved performance

* reset signals when using posix_spawn()

* fix spawn server logs and log cmdline in posix server

* bearer_get_token() implemented as function

* agent cloud status now exposes parent claim_id in indirect mode

* fixes for node id streaming from parent to children

* extract claimed id to separate file

* claim_id is no longer in host structure; there is a global claim_id for this agent and there are parent and origin claim ids in host structure

* fix issue on older compilers

* implement /api/v3 using calls from v1 and v2

* prevent asan leaks on local-sockets callback

* codacy fixes

* moved claim web api to web/api/v2

* when the agent is offline, prefer indirect connection when available; log a warning when a node changes node id

* improve inheritance of claim id from parent

* claim_id for bearer token show match any of the claim ids known

* aclk_connected replaced with functions

* aclk api can now be limited to node information, implementing [cloud].scope = license manager

* comment out most options in stream.conf so that internal defaults will be applied

* respect negative matches for send charts matching

* hidden functions are not accessible via the API; bearer_get_token function checks the request is coming from Netdata Cloud

* /api/v3/settings API

* added error logs to settings api

* saving and loading of bearer tokens

* Fix parameter when calling send_to_plugin

* Prevent overflow

* expose struct parser and typedef PARSER to enforce strict type checking on send_to_plugin()

* ensure the parser will not go away randomly from the receiver - it is now cleared when the receiver lock is acquired; also ensure the output sockets are set in the parser as long as the parser runs

* Add newline

* Send parent claim id downstream

* do not send anything when nodeid is zero

* code re-organization and cleanup

* add aclk capabilities, nodes summary and api version and protection to /api/v2,3/info

* added /api/v3/me which returns information about the current user

* make /api/v3/info accessible always

* Partially revert "remove netdata-claim.sh from everywhere, except kickstart scripts"

Due to how we handle files in our static builds and local builds, we
actually need to continue installing `netdata-claim.sh` to enable a
seamless transition to the new claiming mechanims without breaking
compatibility with existing installs or existing automation tooling that
is directly invoking the claiming script.

The script itself will be rewritten in a subsequent commit to simply
wrap the new claiming methodology, together with some additional changes
to ensure that a warning is issued if the script is invoked by anything
other than the kickstart script.

* Rewrite claiming script to use new claiming method.

* Revert "netdata installer writes claiming info to /etc/netdata/claim.conf"

Same reasoning as for 2e27bedb3fbf9df523bff407f2e8c8428e350e38.

We need to keep the old claiming support code in the kickstart script
for the forseeable future so that existing installs can still be
claimed, since the kickstart script is _NOT_ versioned with the agent.

A later commit will add native support for the new claiming method and
use that in preference to the claiming script if it appears to be
available.

* Add support for new claiming method to kickstart.sh.

This adds native support to the kickstart script to use the new claiming
method without depending on the claiming script, as well as adding a few
extra tweaks to the claiming script to enable it to better handle the
transition.

Expected behavior is for the kickstart script to use the new claiming
code path if the claiming script is either not installed, or does not
contain the specific string `%%NEW_CLAIMING_METHOD%%`. This way we will
skip the claiming script on systems which have the updated copy that
uses the new claiming approach, which should keep kickstart behavior
consistent with what Netdata itself supports.

* Depend on JSON-C 0.14 as a minimum supported version.

Needed for uint64 functions.

* Fix claiming option validation in kickstart script.

* do not cache auth in web client

* reuse bearer tokens when the request to create one matches an existing

* dictionaries dfe loops now allow using return statement

* bearer token files are now fixed for specific agents by having the machine guid of the agent in them

* systemd journal now respects facets and disables the default facets when not given

* fixed commands.c

* restored log for not openning config file

* Fix Netdata group templating for claiming script.

* Warn on failed templating in claiming script.

* Make `--require-cloud` a slient no-op.

We don’t need to warn users that it does nothing, we should just have ti
do nothing.

* added debugging info to claiming

* log also the response

* do not send double / at the url

* properly remove keyword from parameters

* disable debug during claimming

* fix log messages

* Update packaging/installer/kickstart.sh

* Update packaging/installer/kickstart.sh

* implemented POST request payload parsing for systemd-journal

* added missing reset of facets in json parsing

* JSON payload does not need hashes any more. I can accept the raw values

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
2024-08-23 14:12:01 +03:00
netdatabot
4e18df9e21 [ci skip] Update changelog and version for nightly build: v1.47.0-1-nightly. 2024-08-23 00:18:07 +00:00
netdatabot
0aa4481eed [ci skip] Minor release v1.47.0. 2024-08-22 14:13:59 +00:00
Austin S. Hemmelgarn
92ff3e8b6f
Fix issues with file-check for build workflow. 2024-08-22 10:04:50 -04:00
Ilya Mashchenko
b170da193c
go.d dnsmsasq_dhcp: improve parsing of dhcp ranges () 2024-08-22 12:51:28 +03:00
netdatabot
dfc4c54e25 [ci skip] Update changelog and version for nightly build: v1.46.0-373-nightly. 2024-08-22 00:18:26 +00:00
Netdata bot
7169aefa7f
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-21 22:02:07 +03:00
Stelios Fragkakis
17f51628f9
Modify CLI command remove-stale-node to accept hostname ()
* Remove stale node by name. If ALL is specified then ALL are checked and removed
if they are not live

* Change option ALL to ALL_NODES

* When ALL_NODES is used, do not report the attempt to clean live, locahost or already unregistered nodes

* Update src/daemon/commands.c

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-08-21 21:24:25 +03:00
Ilya Mashchenko
b792a9acca
remove proc zfspools () 2024-08-21 20:53:24 +03:00
thiagoftsm
392e1fa0b0
Update windows installer () 2024-08-21 12:07:43 +00:00
Netdata bot
730f1f1917
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-21 13:28:13 +03:00
Ilya Mashchenko
622f19235b
go.d zfspool: collect vdev health state () 2024-08-21 12:52:28 +03:00
netdatabot
57308513d2 [ci skip] Update changelog and version for nightly build: v1.46.0-366-nightly. 2024-08-21 00:18:38 +00:00
Austin S. Hemmelgarn
7b6bc61802
Origin-sign all DEB packages regardless of upload target. () 2024-08-20 09:43:26 -04:00
Stelios Fragkakis
caa795fa93
Remove debug message () 2024-08-20 15:50:54 +03:00
Austin S. Hemmelgarn
77b6725666
Switch to DEB822 format for APT repository configuration. ()
* Switch to DEB822 format for APT repository configuration.

* Fix typos.
2024-08-20 07:02:59 -04:00
Stelios Fragkakis
7160892c0a
Remove host immediately on stale node removal () 2024-08-20 12:43:03 +03:00
netdatabot
b189ee43f4 [ci skip] Update changelog and version for nightly build: v1.46.0-361-nightly. 2024-08-20 00:18:30 +00:00
Netdata bot
6d5d1b71bd
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-19 21:40:15 +03:00
Ilya Mashchenko
0072210050
go.d docs: add a note that debug mode not supported for Dyncfg jobs () 2024-08-19 21:33:30 +03:00
Ilya Mashchenko
6411b31c28
ci gen integrations: add cloud-authentication dir () 2024-08-19 20:20:29 +03:00
Netdata bot
4df96bda4d
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-19 20:06:55 +03:00
Juan Cañete
ea10e1333f
Add SCIM integration docs ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-08-19 19:16:06 +03:00
Ilya Mashchenko
bacd83a365
go.d dnsmasq: query metrics individually to handle v2.90+ SERVFAIL () 2024-08-19 18:28:21 +03:00
Netdata bot
3b3a61396b
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-19 17:57:00 +03:00
Costa Tsaousis
572011c0b6
Update README.md 2024-08-19 16:30:41 +03:00
Costa Tsaousis
f3e0a7b4d6
Update README.md 2024-08-19 16:29:52 +03:00
Costa Tsaousis
7a6a3f0269
Update README.md 2024-08-19 16:26:22 +03:00
Costa Tsaousis
8b74b30f26
Update README.md 2024-08-19 16:13:30 +03:00
Costa Tsaousis
b561adb123
Update README.md 2024-08-19 15:48:56 +03:00
Ilya Mashchenko
8cc4cd680c
remove python.d/changefinder () 2024-08-19 14:42:42 +03:00
Costa Tsaousis
35bbb6c067
Update README.md 2024-08-19 13:24:02 +03:00
Costa Tsaousis
905c36990f
Update README.md 2024-08-19 13:13:45 +03:00
Ilya Mashchenko
f1bf03ec66
remove python.d/example () 2024-08-19 13:05:19 +03:00
Costa Tsaousis
303de06de7
Update README.md 2024-08-19 12:24:06 +03:00
Ilya Mashchenko
6fafa32b09
go.d squidlog: improve parser init and parsing () 2024-08-19 11:44:23 +03:00
thiagoftsm
589eb8d065
eBPF (reduce CPU and memory usage) () 2024-08-19 10:58:55 +03:00
dependabot[bot]
5ff0aa8d30
Bump github.com/vmware/govmomi from 0.40.0 to 0.42.0 in /src/go ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 10:44:36 +03:00
dependabot[bot]
076847f485
Bump github.com/axiomhq/hyperloglog from 0.0.0-20240507144631-af9851f82b27 to 0.1.0 in /src/go ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 10:42:06 +03:00
Costa Tsaousis
e4d42c4fa7
Update README.md 2024-08-19 02:06:25 +01:00
Costa Tsaousis
417df22581
Update README.md 2024-08-19 01:46:50 +01:00
netdatabot
68a7dbee56 [ci skip] Update changelog and version for nightly build: v1.46.0-337-nightly. 2024-08-19 00:18:27 +00:00
Netdata bot
b2ce8814b4
Regenerate integrations.js ()
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
2024-08-18 23:28:57 +03:00
Ilya Mashchenko
8db74085fa
add go.d/tor () 2024-08-18 21:05:18 +03:00
Ilya Mashchenko
1005176e13
remove python.d/tor () 2024-08-18 20:37:22 +03:00
Costa Tsaousis
6ce20d8f18
Update README.md 2024-08-18 05:48:30 +01:00
Costa Tsaousis
0bb2be1885
Update README.md 2024-08-18 05:47:18 +01:00
Costa Tsaousis
a58cf17557
Update README.md 2024-08-18 04:28:11 +01:00
Costa Tsaousis
e32b6c85e5
Update README.md 2024-08-18 04:27:11 +01:00
Costa Tsaousis
d69d2676cf
Update README.md 2024-08-18 04:23:32 +01:00