summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-10-06Overhaul handling of installation of Netdata as a system service. (#13451)Austin S. Hemmelgarn
* Install templated files from system directory on target system. This will allow more robust handling of auto-updates and installation of service files. * Add a script to handle installing Netdata as a system service. This uses the files installed as a result of the previous commit, and provides more robust detection and system handling than the existing code used for this purpose. A subsequent commit will convert the various installation mechanisms to use this script instead of their own internal code for this purpose. * Assorted cleanup and fixes for install-service.sh script. * Use new service install script on installs when present. * Fix missing .gitignore line. * Fix install command. * Integrate with warning handling in kickstart script. * Fix systemd version check. * Explicitly exit successfully when done. * Further fixes. * Fix handling of start commands on service install. * Fix handling of passing service commands in installer. * Fix handling of inability to detect service manager type. * Centralize install-service.sh invocation and improve error reporting. * Fix typos in Linux service handling.
2022-10-06[ci skip] Update changelog and version for nightly build: v1.36.0-178-nightly.netdatabot
2022-10-05fix bad merge (#13764)Costa Tsaousis
* fix bad merge * fix for ssl_security_cert
2022-10-05Allow netdata plugins to expose functions for querying more information ↵Costa Tsaousis
about specific charts (#13720) * function renames and code cleanup in popen.c; no actual code changes * netdata popen() now opens both child process stdin and stdout and returns FILE * for both * pass both input and output to parser structures * updated rrdset to call custom functions * RRDSET FUNCTION leading calls for both sync and async operation * put RRDSET functions to a separate file * added format and timeout at function definition * support for synchronous (internal plugins) and asynchronous (external plugins and children) functions * /api/v1/function endpoint * functions are now attached to the host and there is a dictionary view per chart * functions implemented at plugins.d * remove the defer until keyword hook from plugins.d when it is done * stream sender implementation of functions * sanitization of all functions so that certain characters are only allowed * strictier sanitization * common max size * 1st working plugins.d example * always init inflight dictionary * properly destroy dictionaries to avoid parallel insertion of items * add more debugging on disconnection reasons * add more debugging on disconnection reasons again * streaming receiver respects newlines * dont use the same fp for both streaming receive and send * dont free dbengine memory with internal checks * make sender proceed in the buffer * added timing info and garbage collection at plugins.d * added info about routing nodes * added info about routing nodes with delay * added more info about delays * added more info about delays again * signal sending thread to wake up * streaming version labeling and commented code to support capabilities * added functions to /api/v1/data, /api/v1/charts, /api/v1/chart, /api/v1/info * redirect top output to stdout * address coverity findings * fix resource leaks of popen * log attempts to connect to individual destinations * better messages * properly parse destinations * try to find a function from the most matching to the least matching * log added streaming destinations * rotate destinations bypassing a node in the middle that does not accept our connection * break the loops properly * use typedef to define callbacks * capabilities negotiation during streaming * functions exposed upstream based on capabilities; compression disabled per node persisting reconnects; always try to connect with all capabilities * restore functionality to lookup functions * better logging of capabilities * remove old versions from capabilities when a newer version is there * fix formatting * optimization for plugins.d rrdlabels to avoid creating and destructing dictionaries all the time * delayed health initialization for rrddim and rrdset * cleanup health initialization * fix for popen() not returning the right value * add health worker jobs for initializing rrdset and rrddim * added content type support for functions; apps.plugin permanent function to display all the processes * fixes for functions parameters parsing in apps.plugin * fix for process matching in apps.plugiin * first working function for apps.plugin * Dashboard ACL is disabled for functions; Function errors are all in JSON format * apps.plugin function processes returns json table * use json_escape_string() to escape message * fix formatting * apps.plugin exposes all its metrics to function processes * fix json formatting when filtering out some rows * reopen the internal pipe of rrdpush in case of errors * misplaced statement * do not use buffer->len * support for GLOBAL functions (functions that are not linked to a chart * added /api/v1/functions endpoint; removed format from the FUNCTIONS api; * swagger documentation about the new api end points * added plugins.d documentation about functions * never re-close a file * remove uncessesary ifdef * fixed issues identified by codacy * fix for null label value * make edit-config copy-and-paste friendly * Revert "make edit-config copy-and-paste friendly" This reverts commit 54500c0e0a97f65a0c66c4d34e966f6a9056698e. * reworked sender handshake to fix coverity findings * timeout is zero, for both send_timeout() and recv_timeout() * properly detect that parent closed the socket * support caching of function responses; limit function response to 10MB; added protection from malformed function responses * disabled excessive logging * added units to apps.plugin function processes and normalized all values to be human readable * shorter field names * fixed issues reported * fixed apps.plugin error response; tested that pluginsd can properly handle faulty responses * use double linked list macros for double linked list management * faster apps.plugin function printing by minimizing file operations * added memory percentage * fix compatibility issues with older compilers and FreeBSD * rrdpush sender code cleanup; rrhost structure cleanup from sender flags and variables; * fix letftover variable in ifdef * apps.plugin: do not call detach from the thread; exit immediately when input is broken * exclude AR charts from health * flush cleaner; prefer sender output * clarity * do not fill the cbuffer if not connected * fix * dont enabled host->sender if streaming is not enabled; send host label updates to parent; * functions are only available through ACLK * Prepared statement reports only in dev mode * fix AR chart detection * fix for streaming not being enabling itself * more cleanup of sender and receiver structures * moved read-only flags and configuration options to rrdhost->options * fixed merge with master * fix for incomplete rename * prevent service thread from working on charts that are being collected Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2022-10-05Remove anomaly detector (#13657)vkalintiris
* Move all dims under one class. * Dimension owns anomaly rate RD. * Remove Dimension::isAnomalous() * Remove Dimension::trainEvery() * Rm ml/kmeans * Remove anomaly detector The same logic can be implemented by using the host anomaly rate dim. * Profile plugin. * Revert "Profile plugin." This reverts commit e3db37cb49c514502c5216cfe7bca2a003fb90f1. * Add separate source files for anomaly detection charts. * Handle training/prediction sync at the dimension level. * Keep multiple KMeans models in mem. * Move feature extraction outside KMeans class. * Use multiple models. * Add /api/v1/ml_models endpoint. * Remove Dimension::getID() * Use just 1 model and fix tests. * Add detection logic based on rrdr. * Remove config options related to anomaly detection. * Make anomaly detection queries configurable. * Fix ad query duration option. * Finalize queries in all code paths. * Check if query was initialized before finalizing it * Do not leak OWA * Profile plugin. * Revert "Profile plugin." This reverts commit 5c77145d0df7e091d030476c480ab8d9cbceb89e. * Change context from anomaly_detection to detector_events.
2022-10-05[ci skip] Update changelog and version for nightly build: v1.36.0-174-nightly.netdatabot
2022-10-04add 1m delay for tcp reset alarms (#13761)Ilya Mashchenko
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-10-04Add ZFS rate charts (#13757)Vladimir Kobal
2022-10-04Add CloudLinux OS detection to the updater script (#13752)Pulseeey
2022-10-04[ci skip] Update changelog and version for nightly build: v1.36.0-169-nightly.netdatabot
2022-10-03Add CloudLinux OS detection to kickstart (#13750)Pulseeey
2022-10-03add node level AR based example (#13684)Andrew Maguire
add node level anomaly rate based example
2022-10-03Fix streaming crash when child reconnects and is archived on the parent (#13754)Stelios Fragkakis
Remove unused RRDIM_FLAG_ACLK Create dictionaries that may have been deleted
2022-10-01[ci skip] Update changelog and version for nightly build: v1.36.0-165-nightly.netdatabot
2022-09-30Provide Details on Label Filtering/Custom Labels (#13745)DShreve2
* Provide Details on Label Filtering/Custom Labels Adding documentation for the new Chart Label Filtering feature and custom labels for collectors. * Add screenshots to label filtering * Update docs/dashboard/interact-charts.mdx Co-authored-by: Hugo Valente <82235632+hugovalente-pm@users.noreply.github.com> Co-authored-by: Hugo Valente <82235632+hugovalente-pm@users.noreply.github.com>
2022-09-30Add info for Docker containers about using hostname from host. (#13685)Austin S. Hemmelgarn
* Add info for Docker containers about using hostname from host. By directly mounting `/etc/hostname` into the container read-only. * Update packaging/docker/README.md Co-authored-by: DShreve2 <david@netdata.cloud> * Update packaging/docker/README.md Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> Co-authored-by: DShreve2 <david@netdata.cloud> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
2022-09-30bump go.d v0.40.2 (#13747)Ilya Mashchenko
2022-09-30fix(python.d): set correct label source for _collect_job label (#13746)Ilya Mashchenko
2022-09-30[ci skip] Update changelog and version for nightly build: v1.36.0-160-nightly.netdatabot
2022-09-29Fix handling of temporary directories in kickstart code. (#13744)Austin S. Hemmelgarn
Instead of checking whether the `$tmpdir` variable is set and short-circuiting if it is, we should instead check if the directory it references exists. This ensures that code that needs to use temporary directories can do so even if earlier code calls `cleanup()`
2022-09-29[ci skip] Update changelog and version for nightly build: v1.36.0-158-nightly.netdatabot
2022-09-28Dont send NodeInfo during first database cleanup (#13740)Emmanuel Vasilakis
2022-09-28Change cast to remove coverity warnings (#13735)thiagoftsm
2022-09-28CMake - add possibility to build without ACLK (#13736)Timotej S
make aclk optional in CMake
2022-09-28[ci skip] Update changelog and version for nightly build: v1.36.0-154-nightly.netdatabot
2022-09-27Remove Chart/Dim based communication (#13650)Timotej S
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2022-09-27[ci skip] Update changelog and version for nightly build: v1.36.0-152-nightly.netdatabot
2022-09-26Fix warnings during compilation time on ARM (32 bits) (#13681)thiagoftsm
2022-09-26Do not try to start an archived host in dbengine if dbengine is not compiled ↵Stelios Fragkakis
(#13724)
2022-09-26Use CMake generated config.h also in out of tree CMake build (#13692)Timotej S
Use generated config.h also in out of tree build
2022-09-26Update exporting unit tests (#13706)Vladimir Kobal
2022-09-25[ci skip] Update changelog and version for nightly build: v1.36.0-147-nightly.netdatabot
2022-09-24Faster streaming by 25% on the child (#13708)Costa Tsaousis
* faster printing of BEGIN, SET, END * fewer conditions * faster buffer_fast_strcat() * faster buffer_fast_strcat() fix * eliminate atomic operations and conditions in the BEGIN, SET, END flow * removed unecessary condition
2022-09-24feat(health): add new Redis alarms (#13715)Ilya Mashchenko
2022-09-24[ci skip] Update changelog and version for nightly build: v1.36.0-144-nightly.netdatabot
2022-09-23Specify paths to source files for out-of-tree build. (#11475)Tomáš Kopal
* Specify paths to source files for out-of-tree build. * Update also dashboard makefile generation script. * Sync submodules with master
2022-09-23Do not create train/predict dimensions meant for tracking anomaly rates. ↵vkalintiris
(#13707)
2022-09-23[ci skip] Update changelog and version for nightly build: v1.36.0-141-nightly.netdatabot
2022-09-22bump go.d.plugin to v0.40.1 (#13704)Ilya Mashchenko
2022-09-22Build judy even without dbengine (#13703)Timotej S
always build judy
2022-09-22alarms collector: ability to exclude certain alarms via config (#13701)Andrew Maguire
alarms collector: ability to exclude certain alarms via config
2022-09-22Fix inconsistent alert class names (#13699)Ralph Meijer
This renames the alert classes from Error to Errors, to align with the 125 occurances of the latter, vs. these three of the former.
2022-09-22[ci skip] Update changelog and version for nightly build: v1.36.0-136-nightly.netdatabot
2022-09-21disable Postgres last vacuum/analyze alarms (#13698)Ilya Mashchenko
2022-09-21Update uninstaller documentation. (#13627)Austin S. Hemmelgarn
* Update uninstaller documentation. * Apply suggestions from code review Co-authored-by: DShreve2 <david@netdata.cloud> * Fix typo. Co-authored-by: DShreve2 <david@netdata.cloud>
2022-09-21Update dashboard to version v2.29.1. (#13696)Netdata bot
Co-authored-by: netdatabot <netdatabot@users.noreply.github.com>
2022-09-21docs: nvidia-smi in a container limitation note (#13695)Ilya Mashchenko
2022-09-21Add a document outlining how to build native packages locally. (#12431)Austin S. Hemmelgarn
* Add a document outlining how to build native packages locally. For developers and contributors so they don’t have to bug me every time they need to do it. * Apply suggestions from code review * Further updates to package build documentation. * Further updates. * Apply suggestions from code review Co-authored-by: DShreve2 <david@netdata.cloud> * Even more updates. * Apply suggestions from code review Co-authored-by: DShreve2 <david@netdata.cloud> Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com> Co-authored-by: DShreve2 <david@netdata.cloud>
2022-09-21Store nulls instead of empty strings in health tables (#13683)Emmanuel Vasilakis
* store nulls instead of empty strings in health tables * remove empty line * make define