]>
git.ipfire.org Git - thirdparty/collectd.git/log
Barbara Kaczorowska [Tue, 15 Sep 2020 10:02:39 +0000 (10:02 +0000)]
Fix bug inside write_http plugin
Elene Margalitadze [Thu, 10 Sep 2020 07:22:43 +0000 (09:22 +0200)]
Merge pull request #3551 from elene-margalit/google-interns-2020
Finalized formatting distribution metrics to JSON
elene-margalit [Wed, 9 Sep 2020 22:29:32 +0000 (00:29 +0200)]
Clang format
elene-margalit [Wed, 9 Sep 2020 22:25:19 +0000 (00:25 +0200)]
Replaced function calls to deleted functions.
elene-margalit [Wed, 9 Sep 2020 22:15:20 +0000 (00:15 +0200)]
Deleted already unneccessary functions distribution_marshal_count, distribution_marshal_sum and distribution_marshal_text and added another switch case for distribution type in metric.c.
elene-margalit [Wed, 9 Sep 2020 10:40:57 +0000 (12:40 +0200)]
Clang format.
elene-margalit [Wed, 9 Sep 2020 10:39:04 +0000 (12:39 +0200)]
Fixed description in header file and changed function name to distribution_total_counter_marshal_text.
Barbara Kaczorowska [Tue, 1 Sep 2020 14:31:37 +0000 (16:31 +0200)]
Merge pull request #3554 from pj1031999/google-interns-2020
Avoid deadlocks.
elene-margalit [Tue, 1 Sep 2020 10:51:29 +0000 (12:51 +0200)]
Formatted code.
elene-margalit [Tue, 1 Sep 2020 10:43:44 +0000 (12:43 +0200)]
Remove test for deleted distribution_marshal_text function.
elene-margalit [Tue, 1 Sep 2020 10:37:03 +0000 (12:37 +0200)]
Formatted code.
elene-margalit [Tue, 1 Sep 2020 10:29:57 +0000 (12:29 +0200)]
Removed unnecessary function distribution_marshal_text.
elene-margalit [Tue, 1 Sep 2020 10:28:44 +0000 (12:28 +0200)]
Changed string formatting in function format_metric_distribution and adjusted unit test.
Paweł Jasiak [Mon, 31 Aug 2020 21:42:01 +0000 (23:42 +0200)]
Avoid deadlocks.
elene-margalit [Mon, 31 Aug 2020 10:19:02 +0000 (12:19 +0200)]
Changed buffer size in function format_metric_distribution.
elene-margalit [Mon, 31 Aug 2020 10:11:42 +0000 (12:11 +0200)]
Formatted the code.
elene-margalit [Mon, 31 Aug 2020 10:07:22 +0000 (12:07 +0200)]
Adjusted distribution_marshal_text function to Prometheus text format of Histograms and changed unit test accordingly.
Elene Margalitadze [Sun, 30 Aug 2020 21:02:55 +0000 (23:02 +0200)]
Merge pull request #3545 from elene-margalit/google-interns-2020
Extended format_json.c to map distribution metrics to json output.
elene-margalit [Sun, 30 Aug 2020 11:07:55 +0000 (13:07 +0200)]
Formatted code in metric.c.
elene-margalit [Sun, 30 Aug 2020 11:06:53 +0000 (13:06 +0200)]
Formatted code.
elene-margalit [Sun, 30 Aug 2020 11:04:45 +0000 (13:04 +0200)]
Added unit test for function distribution_marshal_text.
elene-margalit [Fri, 28 Aug 2020 10:11:26 +0000 (12:11 +0200)]
Fixed memory leak in distribution_marshal_text function in metric.c.
elene-margalit [Fri, 28 Aug 2020 10:02:09 +0000 (12:02 +0200)]
Found and fixed memory leak in function format_metric_distribution.
elene-margalit [Fri, 28 Aug 2020 09:49:20 +0000 (11:49 +0200)]
Formatted code.
elene-margalit [Fri, 28 Aug 2020 09:43:13 +0000 (11:43 +0200)]
Fixed error in format_json_test.c
elene-margalit [Thu, 27 Aug 2020 22:19:02 +0000 (00:19 +0200)]
Formatted code.
elene-margalit [Thu, 27 Aug 2020 22:10:36 +0000 (00:10 +0200)]
Extended metric_family unit test to also test new format_metric_distribution function.
elene-margalit [Thu, 27 Aug 2020 21:33:33 +0000 (23:33 +0200)]
Fix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 21:23:16 +0000 (23:23 +0200)]
Fix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 21:17:40 +0000 (23:17 +0200)]
Fix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 17:25:01 +0000 (19:25 +0200)]
Added error handling for strbuf_printf and fixed formatting in the distribution_marshal_text function.
elene-margalit [Thu, 27 Aug 2020 16:28:53 +0000 (18:28 +0200)]
Added functions distribution_marshal_text, distribution_count_marshal_text and distribution_sum_marshal_text to be called when the value argument of value_marshal_text is a distribution metric.
elene-margalit [Thu, 27 Aug 2020 16:18:15 +0000 (18:18 +0200)]
Extended function format_metric to call the new function format_metric_distribution if the argument is a distribution. Function format_metric_distribution formats the distribution metric to into json according to the prom2json mapping of Histograms to json.
elene-margalit [Mon, 24 Aug 2020 15:12:10 +0000 (17:12 +0200)]
Formatted code.
elene-margalit [Mon, 24 Aug 2020 14:56:01 +0000 (16:56 +0200)]
Merge branch 'google-interns-2020' of https://github.com/collectd/collectd into google-interns-2020
elene-margalit [Mon, 24 Aug 2020 14:46:44 +0000 (16:46 +0200)]
Fixed return type of distribution_total_counter from double to uint64_t and added cast to double for it in distribution_square_deviation_sum.
elene-margalit [Mon, 24 Aug 2020 12:12:09 +0000 (14:12 +0200)]
Fixed return type from function distribution_total_counter from double to uint64_t
Svetlana Shmidt [Fri, 21 Aug 2020 12:22:21 +0000 (17:22 +0500)]
Merge pull request #3538 from Lana243/google-interns-2020
bugfix in metric.c
Svetlana Shmidt [Fri, 21 Aug 2020 12:11:52 +0000 (12:11 +0000)]
fix dereferencing null pointer
Svetlana Shmidt [Fri, 21 Aug 2020 11:47:20 +0000 (16:47 +0500)]
Merge pull request #3537 from yath/bootstrap
[interns] Add a bootstrapping script and a sample configuration
Sebastian Schmidt [Fri, 21 Aug 2020 10:41:45 +0000 (12:41 +0200)]
Add a bootstrapping script and a sample configuration
This adds a script that installs necessary build dependencies to the
system, builds and installs collectd into an 'install/' subdirectory,
installs a sample config and starts collectd in foreground mode
afterwards.
Note that this script is entirely optional but it may help you to get
started (some plugins don't compile, so this script is only building a
few). Once installed this way, another 'make install' will re-install
collectd into install/sbin/collectd and it can be started normally.
NOTE: collectd segfaults in src/daemon/metric.c:208 (called from
src/cpu.c:545) when build this way from the current branch HEAD. It
works on tree
630b948 , so it's likely caused by your code and you
already got something to fix. :-)
ChangeLog: collectd: added bootstrap helper script
Barbara Kaczorowska [Wed, 19 Aug 2020 10:35:18 +0000 (10:35 +0000)]
Merge pull request #3531 from bkjg/cache
Add support for the distribution metrics to the collectd core
Barbara Kaczorowska [Wed, 19 Aug 2020 09:48:35 +0000 (11:48 +0200)]
Format Makefile.am
Barbara Kaczorowska [Wed, 19 Aug 2020 08:21:00 +0000 (08:21 +0000)]
clang format
Barbara Kaczorowska [Wed, 19 Aug 2020 08:20:17 +0000 (08:20 +0000)]
Remove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 08:19:22 +0000 (08:19 +0000)]
Fix seg fault in tests
Barbara Kaczorowska [Wed, 19 Aug 2020 07:50:23 +0000 (07:50 +0000)]
Remove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 07:20:55 +0000 (07:20 +0000)]
clang format
Barbara Kaczorowska [Wed, 19 Aug 2020 07:05:01 +0000 (07:05 +0000)]
Fix the bug in the uc_update function
Barbara Kaczorowska [Wed, 19 Aug 2020 06:54:21 +0000 (06:54 +0000)]
Change the signature of getters for time to return status of operation
Barbara Kaczorowska [Tue, 18 Aug 2020 23:58:10 +0000 (23:58 +0000)]
Delete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 23:54:45 +0000 (23:54 +0000)]
Integrate utils_cache_test.c file with new distribution_t structure
Barbara Kaczorowska [Tue, 18 Aug 2020 23:34:37 +0000 (23:34 +0000)]
Add updating total_sum in distribution_sub function
Barbara Kaczorowska [Tue, 18 Aug 2020 23:22:22 +0000 (23:22 +0000)]
Fix bug in distribution_percentile function
This commit will add fix to the distribution_percentile function.
Before this commit, distribution_percentile function didn't check
if it received null pointer as an argument and didn't handle this
case and in result it had seg fault. Now this bug is fixed.
Barbara Kaczorowska [Tue, 18 Aug 2020 23:21:51 +0000 (23:21 +0000)]
Add implementation of distribution_sub to the distribution.c file
Barbara Kaczorowska [Tue, 18 Aug 2020 22:58:18 +0000 (22:58 +0000)]
Add VALUE_TYPE_DISTRIBUTION to the metric.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 22:31:49 +0000 (22:31 +0000)]
Implement additional functions to the plugin_mock.c file
This commit will add the implementation of
plugin_dispatch_cache_event and plugin_dispatch_missing mock
functions.
Barbara Kaczorowska [Tue, 18 Aug 2020 22:27:02 +0000 (22:27 +0000)]
Delete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:47 +0000 (22:21 +0000)]
clang format
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:09 +0000 (22:21 +0000)]
Fix tests for uc_get_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:57:55 +0000 (21:57 +0000)]
Fix tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:37:33 +0000 (21:37 +0000)]
Fix tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:03:27 +0000 (21:03 +0000)]
Add more test cases to unit tests for uc_update function
Barbara Kaczorowska [Tue, 18 Aug 2020 20:48:19 +0000 (20:48 +0000)]
Replace custom initialization functions with universal ones
Barbara Kaczorowska [Tue, 18 Aug 2020 19:46:06 +0000 (19:46 +0000)]
clang format
Barbara Kaczorowska [Tue, 18 Aug 2020 19:45:20 +0000 (19:45 +0000)]
Implement tests for uc_get_rate function
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:39 +0000 (18:42 +0000)]
Fix updating utils cache
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:03 +0000 (18:42 +0000)]
Implement draft of tests for uc_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 17:29:22 +0000 (17:29 +0000)]
Remove DS_TYPE_DISTRIBUTION define
Barbara Kaczorowska [Tue, 18 Aug 2020 17:28:20 +0000 (17:28 +0000)]
Add DS_TYPE_DISTRIBUTION to the plugin.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 17:24:34 +0000 (17:24 +0000)]
Add nickname of the new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:23:52 +0000 (17:23 +0000)]
Add new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:20:08 +0000 (17:20 +0000)]
Add support for distribution metrics in rate functions
Barbara Kaczorowska [Tue, 18 Aug 2020 15:46:29 +0000 (15:46 +0000)]
Add functions for getting last time and update time of cache entry in avl tree
Barbara Kaczorowska [Tue, 18 Aug 2020 15:42:56 +0000 (15:42 +0000)]
Remove finished TODO in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 15:40:25 +0000 (15:40 +0000)]
Add checking correctness of uc_update in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 14:52:44 +0000 (14:52 +0000)]
Implement tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 10:29:28 +0000 (10:29 +0000)]
Implement tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 09:49:37 +0000 (09:49 +0000)]
Add checking if the percent argument is correct
This commit will add checking if the percent argument in
uc_get_percentile and uc_get_percentile_by_name functions is correct,
i.e. is not smaller than zero and not greater than 100.
Barbara Kaczorowska [Tue, 18 Aug 2020 06:54:37 +0000 (06:54 +0000)]
Add test for uc_update function
Barbara Kaczorowska [Mon, 17 Aug 2020 13:00:41 +0000 (13:00 +0000)]
Successfully add tests to Makefile.am
Barbara Kaczorowska [Mon, 17 Aug 2020 10:00:47 +0000 (10:00 +0000)]
Add checking status after returning from distribution_sub function
Barbara Kaczorowska [Mon, 17 Aug 2020 07:26:13 +0000 (07:26 +0000)]
Clang format
Barbara Kaczorowska [Fri, 14 Aug 2020 14:00:48 +0000 (14:00 +0000)]
Add skeleton of tests for functions from utils_test.h file
Barbara Kaczorowska [Fri, 14 Aug 2020 12:22:03 +0000 (12:22 +0000)]
Add utils_cache_test to the Makefile.am
Barbara Kaczorowska [Fri, 14 Aug 2020 11:26:03 +0000 (11:26 +0000)]
Add uc_get_percentile and uc_get_percentile_by_name functions
Barbara Kaczorowska [Fri, 14 Aug 2020 07:44:23 +0000 (07:44 +0000)]
Add prototype of uc_get_percentile function
Barbara Kaczorowska [Thu, 13 Aug 2020 12:38:10 +0000 (12:38 +0000)]
Starting implementing support for distribution metrics to the cache
This commit will begin providing support for distribution metrics to the
cache. distribution_t now is added to the cache_entry_t structure and
also to the uc_insert and uc_update functions.
Svetlana Shmidt [Wed, 19 Aug 2020 07:36:09 +0000 (12:36 +0500)]
Merge pull request #3529 from Lana243/add_squares
Add getter functions to distribution data structure
Svetlana Shmidt [Wed, 19 Aug 2020 07:26:52 +0000 (07:26 +0000)]
fix metric test
Svetlana Shmidt [Tue, 18 Aug 2020 14:00:48 +0000 (14:00 +0000)]
fix code style
Svetlana Shmidt [Tue, 18 Aug 2020 13:55:57 +0000 (13:55 +0000)]
add unit tests for getters
Svetlana Shmidt [Tue, 18 Aug 2020 13:02:03 +0000 (13:02 +0000)]
add getters for total sum and total counter. Add square deviation sum
Elene Margalitadze [Tue, 18 Aug 2020 16:09:11 +0000 (18:09 +0200)]
Merge pull request #3530 from elene-margalit/google-interns-2020
Fixed unit test to work with adjusted metric_reset function
elene-margalit [Tue, 18 Aug 2020 15:36:38 +0000 (17:36 +0200)]
Formatted code.
elene-margalit [Tue, 18 Aug 2020 15:30:08 +0000 (17:30 +0200)]
Adjusted existing unit test to work with changed metric_reset function.
elene-margalit [Mon, 17 Aug 2020 15:46:42 +0000 (17:46 +0200)]
Merge branch 'google-interns-2020' of https://github.com/collectd/collectd into google-interns-2020
Elene Margalitadze [Mon, 17 Aug 2020 15:38:24 +0000 (17:38 +0200)]
Merge pull request #3525 from collectd/revert-3523-google-interns-2020
Revert "Integrate distribution metrics into collectd core"
Elene Margalitadze [Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)]
Revert "Integrate distribution metrics into collectd core: add new distribution_t value to metric_type_t enum, add distribution_t* to the value_t pointer, modify function metric_reset to call distribution_destroy when appropriate, add according documentation to metric.h. Modify metric_list_clone to call distribution_clone when appropriate."
This reverts commit
ce53eb79ae455131e28c1869a28150e0c48cfad3 .
Elene Margalitadze [Mon, 17 Aug 2020 15:35:56 +0000 (17:35 +0200)]
Revert "Formatted the code."
This reverts commit
6214e862a84bf9c6613b009bdc744fa040e6c872 .