summaryrefslogtreecommitdiffstats
path: root/aclk
AgeCommit message (Collapse)Author
2022-07-14Docs housekeeping (#13179)Tasos Katsoulas
* Change the title of the /docs/configure/machine-learning doc * fix some outdated links * Clarify some details in the postgres collector
2022-07-08Better ACLK debug communication log (#13281)Timotej S
2022-07-07UpdateNodeCollectors message (#13330)Emmanuel Vasilakis
* add new aclk-schemas. remove services related * add updatenodecollectors message * build with --disable-cloud
2022-07-06Use new MQTT as default (revert #13258)" (#13287)Timotej S
This reverts commit b92f5a3271bb0fb7d16b2c406e473eec7bd68102.
2022-06-30Remove warnings when openssl 3 is used. (#13170)thiagoftsm
* remove_warnings_openssl_v3: Add new macro to define latest OpenSSL version * remove_warnings_openssl_v3: Add headers necessary for new API * remove_warnings_openssl_v3: Add compatible variables and adjst code inside load_private_key * remove_warnings_openssl_v3: Adjust function aclk_get_mqtt_otp according to openssl version * remove_warnings_openssl_v3: Adjust function private_decrypt * remove_warnings_openssl_v3: Fix function private_decrypt * remove_warnings_openssl_v3: Update error message * remove_warnings_openssl_v3: Update missing error message
2022-06-29Use old mqtt implementation as default (#13258)Emmanuel Vasilakis
mqtt5 as default off
2022-06-28netdata doubles (#13217)Costa Tsaousis
* netdata doubles * fix cmocka test * fix cmocka test again * fix left-overs of long double to NETDATA_DOUBLE * RRDDIM detached from disk representation; db settings in [db] section of netdata.conf * update the memory before saving * rrdset is now detached from file structures too * on memory mode map, update the memory mapped structures on every iteration * allow RRD_ID_LENGTH_MAX to be changed * granularity secs, back to update every * fix formatting * more formatting
2022-06-27Removes Legacy JSON Cloud Protocol Support In Agent (#13111)Timotej S
* removes old protocol support (cloud removed support already)
2022-06-27Use new mqtt implementation as default (#13132)Timotej S
flips mqtt5 to be default instead of mqtt3
2022-06-14ACLK statistics on bytes recvd and sent (#13091)Timotej S
2022-06-13Labels with dictionary (#13070)Costa Tsaousis
* squashed and rebased to master * fix overflow and single character bug in sanitize; include rrd.h instead of node_info.h * added unittest for UTF-8 multibyte sanitization * Fix unit test compilation * Fix CMake build * remove double sanitizer for opentsdb; cleanup sanitize_json_string() * rename error_description to error_message to avoid conflict with json-c * revert last and undef error_description from json-c * more unittests; attempt to fix protobuf map issue * get rid of rrdlabels_get() and replace it with a safe version that writes the value to a buffer * added dictionary sorting unittest; rrdlabels_to_buffer() now is sorted * better sorted dictionary checking * proper unittesting for sorted dictionaries * call dictionary deletion callback when destroying the dictionary * remove obsolete variable * Fix exporting unit tests * Fix k8s label parsing test * workaround for cmocka and strdupz() * Bypass cmocka memory allocation check * Revert "Bypass cmocka memory allocation check" This reverts commit 4c49923839d9229bea23ca914dd8a0be1ebe2bf4. * Revert "workaround for cmocka and strdupz()" This reverts commit 7bebee04801db1865c748a7896d5fa54bb7104a5. * Bypass cmocka memory allocation checks * respect json formatting for chart labels * cloud sends colons * print the value only once * allow parenthesis in values and spaces; make stream sender send quotes for values Co-authored-by: Vladimir Kobal <vlad@prokk.net>
2022-06-06Allow usage of the new MQTT 5 implementation (#12838)Timotej S
* adds support for new MQTT5 implementation in agent, currently by default disabled as Tech Preview
2022-05-31Fix coverity issue 378617,378615 (#13021)Stelios Fragkakis
* Fix CID 378617 * Fix CID 378615 * Make sure the ST rrdr lock indicator is set/reset while holding a lock * Switch to int
2022-05-30Trigger queue removed alerts on health log exchange with cloud (#12954)Emmanuel Vasilakis
trigger queue removed on health log exchange with cloud
2022-05-27Cleanup Challenge Response Code (#11730)Timotej S
- Use OpenSSL for Base64 encode/decode - general cleanup of code
2022-05-24Stream and advertise metric correlations to the cloud (#12940)Emmanuel Vasilakis
* stream and advertise mc to the cloud * better reporting * remove log * remove aclk debug
2022-05-13Implements new capability fields in aclk_schemas (#12602)Timotej S
use new capability fields
2022-05-12Take into account the in queue wait time when executing a data query (#12885)Stelios Fragkakis
Take into account the in queue wait time when executing a query with a timeout
2022-05-09Workers utilization charts (#12807)Costa Tsaousis
* initial version of worker utilization * working example * without mutexes * monitoring DBENGINE, ACLKSYNC, WEB workers * added charts to monitor worker usage * fixed charts units * updated contexts * updated priorities * added documentation * converted threads to stacked chart * One query per query thread * Revert "One query per query thread" This reverts commit 6aeb391f5987c3c6ba2864b559fd7f0cd64b14d3. * fixed priority for web charts * read worker cpu utilization from proc * read workers cpu utilization via /proc/self/task/PID/stat, so that we have cpu utilization even when the jobs are too long to finish within our update_every frequency * disabled web server cpu utilization monitoring - it is now monitored by worker utilization * tight integration of worker utilization to web server * monitoring statsd worker threads * code cleanup and renaming of variables * contrained worker and statistics conflict to just one variable * support for rendering jobs per type * better priorities and removed the total jobs chart * added busy time in ms per job type * added proc.plugin monitoring, switch clock to MONOTONIC_RAW if available, global statistics now cleans up old worker threads * isolated worker thread families * added cgroups.plugin workers * remove unneeded dimensions when then expected worker is just one * plugins.d and streaming monitoring * rebased; support worker_is_busy() to be called one after another * added diskspace plugin monitoring * added tc.plugin monitoring * added ML threads monitoring * dont create dimensions and charts that are not needed * fix crash when job types are added on the fly * added timex and idlejitter plugins; collected heartbeat statistics; reworked heartbeat according to the POSIX * the right name is heartbeat for this chart * monitor streaming senders * added streaming senders to global stats * prevent division by zero * added clock_init() to external C plugins * added freebsd and macos plugins * added freebsd and macos to global statistics * dont use new as a variable; address compiler warnings on FreeBSD and MacOS * refactored contexts to be unique; added health threads monitoring Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
2022-05-05Accept a data query timeout parameter from the cloud (#12823)Stelios Fragkakis
* Add the ability to parse a "timeout" parameter in the incoming command * Cancel the incoming query if already in the queue for too long
2022-05-02Make atomics a hard-dep. (#12730)vkalintiris
They are used extensively throughout our code base, and not having support for them does not generate a thread-safe agent.
2022-04-28use aclk_parse_otp_error (#12767)Timotej S
2022-04-19Add the ability to perform a data query using an offline node id (#12650)Stelios Fragkakis
* Add the ability to build a host structure by node id to execute queries for archived hosts * Add the ability to execute queries from the cloud for archived hosts by node id * Add free_temporary_host function
2022-04-19Fix Valgrind errors (#12619)Vladimir Kobal
2022-04-01Fix memory leaks on Netdata exit (#12511)Vladimir Kobal
* Fix memory leaks in dimensions and charts * Initialize superblock memory regions * Clean up static threads * Fix memory leaks in compression * Fix memory leaks in rrdcaltemplate * Fix memory leaks in health config * Fix ACLK memory leaks
2022-03-22Extend aclk-state information (#12458)Timotej S
2022-03-21Implement fine-grained error replies to cloud queries (#12460)Timotej S
2022-03-18Add delay on missing priv_key (#12450)Timotej S
2022-03-09Improve agent to cloud synchronization performance (#12348)Stelios Fragkakis
* Switch to prepare statement when storing active charts / dimensions * Switch to prepare statement when storing chart labels * Switch to prepare statement when doing a node id lookup * Switch to prepare statement when loading the node id for a host * Improve performance by avoiding db query * Use prepare statement when counting pending chart messages to send to the cloud * Delay locking while preparing commands * No need to use buffer, avoid memory allocation overhead * Switch to prepare statement when loading pending chart updates to send to the cloud
2022-03-09Adds more info to aclk-state API call (#12231)Timotej S
2022-03-01Use the new error mechanism in case host not found (#12277)Timotej S
2022-03-01add host labels _aclk_ng_new_cloud_protocol (#12278)Timotej S
2022-03-01inform cloud about inability to deliver data payload (#12041)Timotej S
2022-02-28Adds chart for incoming proto msgs in new cloud protocol (#11969)Timotej S
2022-02-24Adds all query types to aclk_processed_query_type (#12036)Timotej S
* all query types in stats
2022-02-23remove ACLK_NEWARCH_DEVMODE (#12018)Timotej S
2022-02-22Remove unused NETDATA_NO_ATOMIC_INSTRUCTIONS macro (#12045)vkalintiris
2022-02-21Fix compilation warnings on macOS (#12082)Vladimir Kobal
2022-02-17Docs: Removed Google Analytics tags (#12145)Tina Luedtke
2022-02-11Adds legacy protocol deprecation banner to agent log (#12065)Timotej S
* Add legacy protocol deprecation banner to agent log
2022-02-09remove aclk legacy information (#12103)Timotej S
2022-02-02fix runtime reclaim (aclk_kill_link) reconnect loop (#12074)Timotej S
2022-01-28fix(docs): unresolved file references (#12053)Ilya Mashchenko
2022-01-19Blocking publish and in flight buffer regrowth (#11932)Timotej S
* implements blocking publish to support huge nodes until new MQTT is ready
2022-01-19Handle re-claim while the agent is running in new architecture (#11924)Emmanuel Vasilakis
* re-connect when re-claiming * send the previous claim_id when disconnecting * use same block for aclk_kill_link * free prev_claimed_id
2022-01-14fix aclk chart description (#11970)Timotej S
2022-01-11ACLK-NG remove 'cmd' switch by message type (#11866)Timotej S
* remove legacy protocl rx msg switch
2022-01-04Optimize rx msg name resolution (#11811)Timotej S
* optimize rx msg name resolution
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-12-22Spelling (#10976)Josh Soref
Co-authored-by: Tina Luedtke <kickoke@users.noreply.github.com> Co-authored-by: Josh Soref <jsoref@users.noreply.github.com> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>