0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-14 17:48:37 +00:00
Commit graph

693 commits

Author SHA1 Message Date
Austin S. Hemmelgarn
291f2b8001
Update kickstart script to use new repository host. ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2025-01-14 07:45:46 -05:00
Austin S. Hemmelgarn
db31a10503
Fix issues with $PATH and netdatacli detection. ()
- Account for Debian/Ubuntu still not including sbin directories in user
  $PATH.
- Report an inability to detect netdatacli location instead of trying to
  invoke an empty string when claiming.
2025-01-13 10:04:20 -05:00
Austin S. Hemmelgarn
40ab14d0d5
Assorted systemd detection fixes ()
Assorted systemd detection fixes:

- Properly scope `set -e` changes to only affect `systemctl
  is-system-running` invocation.
- Skip checking for hard-coded unit file paths. Other paths may
  technically be used for unit files instead of what we hard-code, and
  the presence or abscence of any specific unit file path _does not_
  reliably indicate the presence or abscence of systemd.
2025-01-08 08:37:42 -05:00
Austin S. Hemmelgarn
64b9f5e280
Add option to updater to report status of auto-updates on the system. ()
* Add option to updater to report status of auto-updates on the system.

* Improve systemd detection.

The _official_ way to check if a system is running systemd is to call
`systemctl is-system-running` and check the output. This adds that
checking to places where we are otherwise looking for systemd.

* Remove pointless subshell.
2025-01-08 06:37:57 -05:00
Ilya Mashchenko
13e6302728
fix(netdata-updater.sh): use explicit paths for temp dir creation () 2025-01-06 14:41:21 +02:00
Ilya Mashchenko
aa535b4317
fix(kickstart.sh): correct wrong function name in perpare_offline_install () 2025-01-06 11:50:19 +02:00
Ilya Mashchenko
080de4e4a5
build(deps): add bison and flex () 2024-12-28 18:09:13 +02:00
Ilya Mashchenko
3f1a1bd55e
fix(netdata-updater.sh): ensure tmpdir-path argument is always passed () 2024-12-27 20:08:33 +02:00
Ilya Mashchenko
cfd832964e
fix(netdata-updater.sh): remove commit_check_file directory () 2024-12-27 16:01:24 +02:00
Costa Tsaousis
5928070239
Updated copyright notices ()
* updated copyright notices everywhere (I hope)

* Update makeself.lsm

* Update coverity-scan.sh

* make all newlines be linux, not windows

* remove copyright from all files (the take it from the repo), unless it is printed to users
2024-12-20 15:25:45 +02:00
Ilya Mashchenko
c66992fdfe
disable h20 () 2024-12-16 10:20:15 +02:00
Ilya Mashchenko
96b5e8b12f
add pcre2 dev to install-requires-packages.sh ()
* add pcre2 dev to install-requires-packages.sh

* add rhel

---------

Co-authored-by: Costa Tsaousis <costa@netdata.cloud>
2024-12-15 22:01:51 +02:00
Ilya Mashchenko
d83b2cc908
fix(kickstart): netdata_avail_check on Ubuntu () 2024-12-11 12:28:14 +02:00
Austin S. Hemmelgarn
89179d3dde
Fixup URLs in package repo documentation to use index files. () 2024-12-11 08:43:57 +02:00
Ilya Mashchenko
d37130d640
Bump repository config fetched by kickstart to latest version () 2024-12-10 22:46:58 +02:00
thiagoftsm
dcbcf71743
Address installer minor issues (Windows) ()
* fix_msis2: remove unused file

* fix_msis2: Create empty directories ignored by WIX

* fix_msis2: Add nano as default editor

* fix_msis2: Add missing reference
2024-12-04 13:10:09 +02:00
Fotis Voutsas
173646d381
Edit the organize doc ()
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-11-28 13:49:34 +02:00
Fotis Voutsas
a2cbfa5290
claim -> connect in docs ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-11-22 21:25:31 +02:00
Fotis Voutsas
81b646268a
Windows doc updates ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-11-21 14:14:04 +02:00
Austin S. Hemmelgarn
bfbb27a5c5
Update documentation about our native package repos. ()
* Update documentation about our native package repos.

* Apply suggestions from code review

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

---------

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-11-21 07:00:35 -05:00
Fotis Voutsas
32a6cd38e7
Capitalize the word "Agent" ()
* Capitalize the word Agent

* yaml -> json

* fix uppercase keys

* json update
2024-11-20 15:27:03 +02:00
Fotis Voutsas
d8daa5527a
Capitalize the word "cloud" ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-11-20 11:14:52 +02:00
thiagoftsm
dea559c7d4
Update Windows Documentation ()
* update_doc: Upate user documentation with current MSI

* update_doc: Rename CLOUDLICENSE to CLOUDUILICENSE

* Update WINDOWS_INSTALLER.md

* Update UPDATE.md

* Update UNINSTALL.md

* update_doc: remove unnecessary lines

* update_doc: remove slash before arguemtn

* update

* update

* yamllint please

---------

Co-authored-by: Fotis Voutsas <fotis@netdata.cloud>
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-11-07 16:34:59 -05:00
Fotis Voutsas
a4201c88dc
Installation section simplification ()
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-11-04 11:18:34 +02:00
Fotis Voutsas
4b8a945df9
Docs: small fixes and pass on sizing Agents ()
* small fixes and pass on sizing Agents

* improvements

* grammar

* simplify innovations

* update title

---------

Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-11-01 13:45:31 +02:00
Fotis Voutsas
1e6a57adf5
uninstall docs edits ()
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2024-10-31 11:09:06 +02:00
Fotis Voutsas
55aaa2e856
Update uninstallation docs and remove reinstallation page ()
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-10-31 10:50:37 +02:00
Fotis Voutsas
73f52709cf
Updating Netdata docs ()
Co-authored-by: ilyam8 <ilya@netdata.cloud>
2024-10-30 21:57:50 +02:00
Ilya Mashchenko
fb6cf45661
fix(packaging): fix installing libcurl_dev on FreeBSD () 2024-10-22 17:54:57 +03:00
Austin S. Hemmelgarn
b95971fe21
Fix broken claiming via kickstart on some systems. () 2024-10-15 14:09:16 -04:00
Ilya Mashchenko
d8c5963e0b
fix(netdata-updater.sh): ensure --non-interactive flag is passed during self-update () 2024-10-15 14:59:11 +03:00
Austin S. Hemmelgarn
0a16c36fe8
Add Ubuntu 24.10 and Fedora 41 to CI. ()
* Add Ubuntu 24.10 and Fedora 41 to CI.

* Fix broken DNF package install checking in dependency handling script.

* Force usage of DNF on Fedora for dependency handling.
2024-10-11 11:27:21 -04:00
Fotis Voutsas
7332919cf5
Docs fixes () 2024-10-04 12:23:00 +03:00
Fotis Voutsas
1ddbc6610d
Docs lint on packaging/ dir ()
* docker readme pass

* installer/methods docs pass

* installer/ docs pass

* maintainers dir docs pass

* rest of packaging dir md docs pass
2024-10-03 12:07:25 +03:00
thiagoftsm
59d806e23b
Windows Installer (Silent mode) () 2024-10-01 18:24:01 +00:00
Austin S. Hemmelgarn
3c91cb0066
Use temporary file for commit date check. () 2024-10-01 06:50:43 -04:00
vkalintiris
7d4f9c58d5
Move plugins.d directory outside of collectors ()
* Move plugins.d out of collectors

It's being used by streaming as well.

* Move ndsudo and local_listeners back to collectors.
2024-09-30 13:14:26 +00:00
eya46
a270a04b6f
Update kickstart.sh ()
use "echo -e"
2024-09-20 19:46:16 +03:00
Austin S. Hemmelgarn
d837a629fb
Assorted build cleanup for external data collection plugins. ()
* Make Python collectors optional at build time.

Given the general shift of most data collectors to the Go plugin, it’s
no-longer the case that users ‘always’ need to have the Python plugin
included.

This also makes them consistent with the other external collectors.

* Make charts.d collectors optional at build time.

Same reasoning as for the Python collectors.

Also, this fixes up loopsleepms.sh to only be handled if a collector
that needs it is enabled.

* Properly tie config directories to their plugin components.

The Go and Python plugin config directories were being installed
unconditionally as part of the main Netdata component. This is wrong,
they should be installed as part of the plugin packages/components
instead, as they are only needed if those plugins are installed.
2024-09-16 07:25:06 -04:00
Ilya Mashchenko
8d8a6a8cd9
fix some docs issues () 2024-09-14 23:12:15 +03:00
Costa Tsaousis
a399128dbf
config parsers ()
* added parser for durations

* preliminary work for timeframes

* Update CMakeLists.txt

* updated parsing and generation for durations

* renames

* report parser errors; added compatibility to existing config_parse_duration()

* duration parsing is used on most netdata.conf and stream.conf entries

* more uses of duration parsing; simplification of stream.conf

* code cleanup

* more duration changes

* added html playground

* improved js code

* duration parsing applied to dbengine retention

* fixed doc

* simplified logic; added size parser

* added parsing for sizes

* renames and documentation updates

* hide appconfig internals from the rest of netdata

* fix crash on cleanup of streaming receivers

* fix buffer overflow in gorilla compression

* config return values are const

* ksm set to auto

* support reformatting migrated values

* removed obsolete metrics correlations settings

* split appconfig to multiple files

* durations documentation

* sizes documentation

* added backward compatibility in retention configuration

* provide description on migrations and reformattings

* config options are now a double linked list

* config sections are now a double linked list; config uses spinlocks; code cleanup and renames

* added data type to all config options

* update data types

* split appconfig api to multiple files

* code cleanup and renames

* removed size units above PiB

* Revert "fix buffer overflow in gorilla compression"

This reverts commit 3d5c48e84b.

* appconfig internal api changes
2024-09-04 14:42:01 +03:00
Ilya Mashchenko
933a2090c9
kickstart: fix write_claim_config when executed as a regular user ()
* kickstart: fix write_claim_config when executed as a regular user

* fix return
2024-08-25 22:27:17 +03:00
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
thiagoftsm
392e1fa0b0
Update windows installer () 2024-08-21 12:07:43 +00:00
Austin S. Hemmelgarn
6089849cf6
Add detailed reporting of failed checksums in kickstart script. ()
* Add detailed reporting of failed checksums in kickstart script.

* Fix output.
2024-08-08 07:24:31 -04:00
Austin S. Hemmelgarn
b936b41c66
Fix CI issues in build workflow. ()
* Temporarily enable trace mode to debug CI.

* Fix tmpdir path handling.

* Further kickstart fixes.
2024-08-06 13:57:58 -04:00
Austin S. Hemmelgarn
a817a5c75b
Clean up unneeded depencdencies. () 2024-07-30 13:27:09 -04:00
Austin S. Hemmelgarn
16750eacdf
Remove logs-management plugin. ()
It’s not been supported properly pretty much since it was introduced.
2024-07-17 07:04:55 -04:00
Austin S. Hemmelgarn
be1dc2ea51
Bump repository config fetched by kickstart to latest version. () 2024-06-28 10:05:00 -04:00
Ilya Mashchenko
a567f32357
fix grep warning in kickstart () 2024-06-27 14:26:06 +03:00