summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
AgeCommit message (Collapse)Author
2023-03-20Bundle libyaml (#14704)Emmanuel Vasilakis
* bundle libyaml * remove comment * .github/workflows/coverity.yml * add to coverity and tests * add deps * add to netdata.spec.in * add to contrib/debia/control * remove extra gentoo libyaml
2023-03-14Add experimental support for running under runit. (#13841)Austin S. Hemmelgarn
* Add basic runit service script for Netdata. * Integrate runit handling in install-service script. * Add new runit script to .gitignore. * Fix service file installation. We need to ensure the service directory actually gets created, and thus need to use `-D` with the `install` command. * Sync with system restructure. * Fix botched update to Makefile.am.
2023-03-13Add Amazon Linux 2 to CI and platform support. (#14599)Austin S. Hemmelgarn
* Add Amazon Linux 2 to CI and platform support. * Fix conditional in repoconfig spec file. * Fix package testing script. * Add support to kickstart.sh. * Fix pkg-test.sh typo. * Fix CI support package handling. * Make updater log to stderr if running under CI. * Fix broken sed expressions in installer. * Fix updater CI check WRT auto-update checking. * Update .github/scripts/pkg-test.sh Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com> * Clean up package testing code. * Fix filename matching for package testing. --------- Co-authored-by: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
2023-02-27Reorganize system directory to better reflect what files are actually used ↵Austin S. Hemmelgarn
for. (#14544) * Move systemd-specific system files to their own directory. * Move non-systemd init scripts to individual subdirectories. * Move cron files to their own directory. * Move logrotate config to it’s own directory. * Fix typos in Makefile.am. * Fix Debian package builds. * Fixed issues reported by @andrewm4894.
2023-02-16fix setting go.d.plugin capabilities (#14525)Ilya Mashchenko
2023-02-16Assorted shellcheck cleanup. (#14524)Austin S. Hemmelgarn
* Add shellcheck config file to globally disable dead code checks. These checks have an extremely high false positive rate and even when they’re correctly flagging code the impact is generally very low. * Fix assorted shellcheck errors in installer code. This should make reviewing PRs relating to this code much easier. * Make shellcheck quit complaining about shellcheckrc formatting.
2023-01-27Use "getent group" instead of reading "/etc/group" to get group information ↵Dim-P
(#14316) * Use getent group instead of /etc/group to search groups * Fallback to 'cat /etc/groups' if no getent exists * Use group_exists() in netdata-installer.sh * Rename group_exists() to get_group()
2023-01-04Fix typos (#14194)Dimitris Apostolou
2023-01-04Refactor ML code and add support for multiple KMeans models (#14198)vkalintiris
* Add profile.plugin Creates the specified number of charts/dimensions, and supports backfilling with pseudo-historical data. * Bump * Remove wrongly merged line. * Use the number of models specified from the config section. * Add option to consult all ML models. * Remove profiling option consuming all models. * Add underscore after chart name prefix. * prediction -> dimensions chart * reorder funcs * Split charts across types with correct priority * Ignore training request when chart is under replication. * Track global number of models consulted. * Cleanup config. * initial readme updates * fix readme * readme * Fix function definition when ML is disabled. * Add dummy ml_chart_update_{begin,end} * Remove profile_plugin * Define chart priorities under collectors/all.h * s/curr_t/current_time/ * Use libnetdata's lock/thread wrappers. * Fix autotools & cmake builds. * Delete ML dimensions & charts. * Let users of buffer preprocessing to handle memory. * Add separate API calls to start/stop ML threads. Co-authored-by: Andrew Maguire <andrewm4894@gmail.com>
2023-01-04Finish renaming the `--install` option to `--install-prefix`. (#13881)Austin S. Hemmelgarn
* Finish renaming the `--install` option to `--install-prefix`. * Fix remaining references to `--install` option.
2022-12-22feat(packaging): add netdata to www-data group on Proxmox (#14168)Ilya Mashchenko
2022-12-22Revert "Refactor ML code and add support for multiple KMeans models. … ↵vkalintiris
(#14172)
2022-12-21Refactor ML code and add support for multiple KMeans models. (#14065)vkalintiris
* Add profile.plugin Creates the specified number of charts/dimensions, and supports backfilling with pseudo-historical data. * Bump * Remove wrongly merged line. * Use the number of models specified from the config section. * Add option to consult all ML models. * Remove profiling option consuming all models. * Add underscore after chart name prefix. * prediction -> dimensions chart * reorder funcs * Split charts across types with correct priority * Ignore training request when chart is under replication. * Track global number of models consulted. * Cleanup config. * initial readme updates * fix readme * readme * Fix function definition when ML is disabled. * Add dummy ml_chart_update_{begin,end} * Remove profile_plugin * Define chart priorities under collectors/all.h * s/curr_t/current_time/ Co-authored-by: Andrew Maguire <andrewm4894@gmail.com>
2022-10-31feat(packaging): add CAP_NET_RAW to go.d.plugin (#13909)Ilya Mashchenko
2022-10-09allow netdata installer to install and run netdata as any user (#13780)Costa Tsaousis
* allow netdata installer to install and run netdata as any user * Update netdata-installer.sh Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com> * Update netdata-installer.sh Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com> Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com>
2022-10-04Use /bin/sh instead of ls to detect glibc (#13758)Emmanuel Vasilakis
* use ln instead of ls to detect glibc * use /bin/sh * remove echo
2022-08-13Remove extra U from log message (#13514)Nicholas Chambers
2022-08-11fix(packaging): add CAP_NET_ADMIN for go.d.plugin (#13507)Ilya Mashchenko
2022-07-22include Judy into our source tree (#13362)Timotej S
2022-06-30Remove obsolete --use-system-lws option from netdata-installer.sh help (#13272)Dim-P
Remove obsolete --use-system-lws option from netdata-installer.sh help
2022-06-23chore(netdata-installer): remove a call to 'cleanup_old_netdata_updater()' ↵Ilya Mashchenko
because it is no longer exists (#13189)
2022-05-03Rename --install option for kickstart.sh (#12798)maneamarius
* replace --install flag with --install-prefix and update documentation * fix * minor fix
2022-05-03Remove node.d.plugin and relevant files (#12769)Suraj Neupane
* Remove node.d.plugin and relevant files * fix build packages * remove node.d related words/phrases from docs and tests
2022-05-02Add `-pipe` to CFLAGS in most cases for builds. (#12709)Austin S. Hemmelgarn
* Add `-pipe` to CFLAGS in most cases for builds. This trades marginally higher memory usage at build time (on the order of a few hundred kB in the worst case scenario) for improved build times by avoiding using temporary files for passing data from the compiler to commands it invokes. * Suppress bogus shellcheck warnings. * Fix handling of CFLAGS in netdata-installer.sh.
2022-05-02just a simple fix to avoid recompiling protobuf all the time (#12790)Costa Tsaousis
* just a simple fix to avoid recompiling protobuf all the time on our development environments * added quotes * remove bashism
2022-05-02use '%b' argument when printing deferred errors (#12786)Ilya Mashchenko
2022-04-28Update netdata-installer.sh (#12755)Pete Cooper
installer help list formatting uniformity
2022-04-27Correctly propagate errors and warnings up to the kickstart script from ↵Austin S. Hemmelgarn
scripts it calls. (#12686) * Overhaul deferred error handling in netdata-installer.sh * Propagate errors from netdata-installer.sh properly to the kickstart script. * Propagate errors from netdata-updater.sh properly to the kickstart script. * Overhaul logging in uninstaller and integrate with error propagation in kickstart.sh. * Fix name of variable used for propagating warnings. * Fix handling of run_ok and run_failed with no arguments. * Fix environment file validation in updater. * Add debugging info to CI. * Properly accept empty NETDATA_PREFIX in updater. * Convert remaining unguarded unsuccessful exits in updater to use fatal. * Fix usage of `env` in updater.
2022-04-18Disable automake dependency tracking in our various one-time builds. (#12701)Austin S. Hemmelgarn
* Disable automake dependency tracking in our various one-time builds. * Also disable dependency tracking code in package builds.
2022-03-31Fix Build on MacOS (#12554)Timotej S
2022-03-22Switch to using netdata-updater.sh to toggle auto updates on and off when ↵Austin S. Hemmelgarn
installing. (#12296) * Switch to using netdata-updater.sh to toggle auto updates on and off on install. * Apply suggestions from code review Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com> * Make heading name less ambiguous. * Fix fallback case for unsupported updater script. * Fix invalid function name. Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com>
2022-03-15Remove backends subsystem (#12146)Vladimir Kobal
2022-03-14Remove owner check from webserver (#12339)thiagoftsm
2022-03-09Final migration of release code off of Travis CI. (#12239)Austin S. Hemmelgarn
* Initial version of release workflow. * Remove release code from Travis config. Final removal of the Travis CI code will be handled separately. * Do not push changes if not running in GHA. This simplifies testing the core logic locally. * Remove remote branch existence checking. It is not strictly nesescary for the expected execution context, and it makes it harder to test locally safely. * Fixed some minor oversights. * Make git config repo local to make testing easier.
2022-03-08CO-RE and syscalls (#12318)thiagoftsm
2022-02-25eBPF installation fixes (#12242)thiagoftsm
2022-02-23Add `--no-same-owner` to `tar -xf` in installer (#11940)Christian Mäder
This prevents errors like the following tar: protobuf-3.17.3: Cannot change ownership to uid 576694, gid 89939: Invalid argument
2022-02-22remove deprecated node.d modules (#12047)Ilya Mashchenko
2022-02-18Revert "Overhaul handling of auto-updates in the installer code. (#12076)" ↵Austin S. Hemmelgarn
(#12182) This reverts commit da7f215ad6c98cbf54ab93dbc1d2457ac01dbb08.
2022-02-18Overhaul handling of auto-updates in the installer code. (#12076)Austin S. Hemmelgarn
* Bundle updater script in native packages. * Move code for enabling/disabling auto-updates to netdata-updater.sh This lets us handle the logic sanely from the kickstart script regardless of the install method, and allows users to more reliably toggle auto-updates themselves without having to understand what is being done. * Add proper case-agnosticism to auto-update type selection. * Move auto-updater handling code to kickstart script. * Properly handle running against an older source tree. * First part of updater docmentation updates. * Fixed handling of updater in DEB packages. * Further documentation updates. * Minor typo fixes.
2022-02-17tidy up the installer script usage message (#12171)Pete Cooper
2022-02-15rename DO_NOT_TRACK to DISABLE_TELEMETRY (#12126)Ilya Mashchenko
2022-02-08update scripts for POSIX compatibility (#11961)maneamarius
2022-02-02Fix compilation errors for OpenSSL on macOS (#12048)Vladimir Kobal
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2022-01-31fix typo, tidy up sentence (#12062)Pete Cooper
2022-01-10Update dependencies for the pubsub exporting connector (#11872)Vladimir Kobal
2022-01-04Removes ACLK Legacy (#11841)Timotej S
* remove legacy from makefiles * remove ACLK Legacy from installer * remove ACLK Legacy from configure.ac * remove legacy from cmake * aclk api cleanup * remove legacy files from packaging * changes for CI from Austin
2021-11-04Sanely handle installing on systems with limited RAM. (#11658)Austin S. Hemmelgarn
* Add check for available RAM prior to installing. * Properly mark required shell for kickstart.sh It needs bash, and we only ever run it with bash, so make the shebang line indicate bash. This resolves a bunch of shellcheck complaints. * Add installation failure reporting statistics. The new event is called INSTALL_FAILED, and mostly mirrors a subset of the existing properties on the various agent events. * Fix error messages. * Fix checksums. * Apply suggestions from code review Co-authored-by: David Shreve, Jr. <david@netdata.cloud> * Fix kickstart checksums. * Fix memory calculations. They were off by a factor of 1024. * Fix kernel name handling. * Fix checksums. * Fix core count accounting. * Add a CLI option to skip checking for available RAM. * Addressed review feedback. * Update netdata-installer.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * Add RAM checking for ML builds. * Update packaging/installer/kickstart.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * Update packaging/installer/kickstart.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * Fix kickstart checksum. * Re-adjust memory limiting based on discussion from meeting. * Switch from using SI units to IEC units. * Fix typo. Co-authored-by: David Shreve, Jr. <david@netdata.cloud> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2021-11-04Add basic telemetry to the new kickstart script. (#11718)Austin S. Hemmelgarn
* Add basic telemetry to the new kickstart script. * Properly handle install type info for telemetry events. * Actually remove exit trap at end of script. * Update packaging/installer/kickstart-ng.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * Fix handling of memory info on macOS. * Addressed feedback from @ilyam8. * Fix issues pointed out in code reivew. * Update packaging/installer/kickstart-ng.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> * Add install prefix to search path when looking for existing installs. * Make variable names more sensible. * Fix install prefix handling in new kickstart script. * Fix kernel name handling in telemetry function. * More generically strip final `/usr` from path when looking for existing install. * Update packaging/installer/kickstart-ng.sh Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2021-10-28Add log grouping in installer and static build code when running under ↵Austin S. Hemmelgarn
GitHub Actions. (#11720) * Add log grouping in installer code when running under GitHub Actions. This will make our CI logs much easier to understand. * Add log grouping to static build process. * Use oneliner style group commands in netdata-installer.sh