]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
4 years agochange format 3570/head
Svetlana Shmidt [Tue, 15 Sep 2020 11:01:57 +0000 (11:01 +0000)] 
change format

4 years agoadd comments to functions with typed_value
Svetlana Shmidt [Tue, 15 Sep 2020 10:57:22 +0000 (10:57 +0000)] 
add comments to functions with typed_value

4 years agoreturn constructor for derive
Svetlana Shmidt [Tue, 15 Sep 2020 10:52:11 +0000 (10:52 +0000)] 
return constructor for derive

4 years agochange type checks using typed_value
Svetlana Shmidt [Tue, 15 Sep 2020 08:10:57 +0000 (08:10 +0000)] 
change type checks using typed_value

4 years agochange values_raw type to typed_value to support distributions
Svetlana Shmidt [Tue, 15 Sep 2020 08:06:31 +0000 (08:06 +0000)] 
change values_raw type to typed_value to support distributions

4 years agochange naming
Svetlana Shmidt [Tue, 15 Sep 2020 07:58:58 +0000 (07:58 +0000)] 
change naming

4 years agoMerge remote-tracking branch 'github-sshmidt/utils-cache' into utils-cache
Svetlana Shmidt [Tue, 15 Sep 2020 07:27:14 +0000 (07:27 +0000)] 
Merge remote-tracking branch 'github-sshmidt/utils-cache' into utils-cache

4 years agoadd create_typed_value function
Svetlana Shmidt [Tue, 15 Sep 2020 07:24:27 +0000 (07:24 +0000)] 
add create_typed_value function

4 years agodaemon: Run contrib/format.sh
Florian Forster [Mon, 14 Sep 2020 16:21:29 +0000 (18:21 +0200)] 
daemon: Run contrib/format.sh

4 years agochange value_t to typed_value_t in start_value
Svetlana Shmidt [Mon, 14 Sep 2020 11:26:02 +0000 (11:26 +0000)] 
change value_t to typed_value_t in start_value

4 years agoadd new typed_value type
Svetlana Shmidt [Mon, 14 Sep 2020 11:11:04 +0000 (11:11 +0000)] 
add new typed_value type

4 years agofix codestyle
Svetlana Shmidt [Thu, 10 Sep 2020 11:44:22 +0000 (11:44 +0000)] 
fix codestyle

4 years agochange formatting for files
Svetlana Shmidt [Thu, 10 Sep 2020 11:40:41 +0000 (11:40 +0000)] 
change formatting for files

4 years agofix overwritten status
Svetlana Shmidt [Thu, 10 Sep 2020 11:35:15 +0000 (11:35 +0000)] 
fix overwritten status

4 years agosimplify distribution_cmp function
Svetlana Shmidt [Thu, 10 Sep 2020 10:58:11 +0000 (10:58 +0000)] 
simplify distribution_cmp function

4 years agoadd comment about double comparison
Svetlana Shmidt [Thu, 10 Sep 2020 10:39:30 +0000 (10:39 +0000)] 
add comment about double comparison

4 years agofix codestyle
Svetlana Shmidt [Wed, 9 Sep 2020 09:13:41 +0000 (09:13 +0000)] 
fix codestyle

4 years agoadd getters for start time and value
Svetlana Shmidt [Wed, 9 Sep 2020 09:07:54 +0000 (09:07 +0000)] 
add getters for start time and value

4 years agoremove old code
Svetlana Shmidt [Tue, 8 Sep 2020 12:55:13 +0000 (12:55 +0000)] 
remove old code

4 years agofix bug in update_metric function
Svetlana Shmidt [Tue, 8 Sep 2020 12:38:34 +0000 (12:38 +0000)] 
fix bug in update_metric function

4 years agofixed bug in comparison function
Svetlana Shmidt [Tue, 8 Sep 2020 12:37:54 +0000 (12:37 +0000)] 
fixed bug in comparison function

4 years agofix memory leak in subtract function
Svetlana Shmidt [Tue, 8 Sep 2020 11:38:31 +0000 (11:38 +0000)] 
fix memory leak in subtract function

4 years agochange update function to reset metric
Svetlana Shmidt [Tue, 8 Sep 2020 11:37:44 +0000 (11:37 +0000)] 
change update function to reset metric

4 years agoadd equals function for distribution add description for subtract function
Svetlana Shmidt [Tue, 8 Sep 2020 09:18:41 +0000 (09:18 +0000)] 
add equals function for distribution add description for subtract function

4 years agomake distribution_cmp private and change the return value type
Svetlana Shmidt [Mon, 7 Sep 2020 14:23:30 +0000 (14:23 +0000)] 
make distribution_cmp private and change the return value type

4 years agochange names
Svetlana Shmidt [Mon, 7 Sep 2020 11:19:14 +0000 (11:19 +0000)] 
change names

4 years agofix typo
Svetlana Shmidt [Mon, 7 Sep 2020 11:02:33 +0000 (11:02 +0000)] 
fix typo

4 years agochange distribution_sub function in order d1 >= d2
Svetlana Shmidt [Mon, 7 Sep 2020 11:01:41 +0000 (11:01 +0000)] 
change distribution_sub function in order d1 >= d2

4 years agoadd comparison for distributions
Svetlana Shmidt [Mon, 7 Sep 2020 10:55:34 +0000 (10:55 +0000)] 
add comparison for distributions

4 years agoadd start value to cache entry
Svetlana Shmidt [Mon, 7 Sep 2020 10:22:12 +0000 (10:22 +0000)] 
add start value to cache entry

4 years agoMerge pull request #3554 from pj1031999/google-interns-2020
Barbara Kaczorowska [Tue, 1 Sep 2020 14:31:37 +0000 (16:31 +0200)] 
Merge pull request #3554 from pj1031999/google-interns-2020

Avoid deadlocks.

4 years agoAvoid deadlocks. 3554/head
PaweÅ‚ Jasiak [Mon, 31 Aug 2020 21:42:01 +0000 (23:42 +0200)] 
Avoid deadlocks.

4 years agoMerge pull request #3545 from elene-margalit/google-interns-2020
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.

4 years agoFormatted code in metric.c. 3545/head
elene-margalit [Sun, 30 Aug 2020 11:07:55 +0000 (13:07 +0200)] 
Formatted code in metric.c.

4 years agoFormatted code.
elene-margalit [Sun, 30 Aug 2020 11:06:53 +0000 (13:06 +0200)] 
Formatted code.

4 years agoAdded unit test for function distribution_marshal_text.
elene-margalit [Sun, 30 Aug 2020 11:04:45 +0000 (13:04 +0200)] 
Added unit test for function distribution_marshal_text.

4 years agoFixed memory leak in distribution_marshal_text function in metric.c.
elene-margalit [Fri, 28 Aug 2020 10:11:26 +0000 (12:11 +0200)] 
Fixed memory leak in distribution_marshal_text function in metric.c.

4 years agoFound and fixed memory leak in function format_metric_distribution.
elene-margalit [Fri, 28 Aug 2020 10:02:09 +0000 (12:02 +0200)] 
Found and fixed memory leak in function format_metric_distribution.

4 years agoFormatted code.
elene-margalit [Fri, 28 Aug 2020 09:49:20 +0000 (11:49 +0200)] 
Formatted code.

4 years agoFixed error in format_json_test.c
elene-margalit [Fri, 28 Aug 2020 09:43:13 +0000 (11:43 +0200)] 
Fixed error in format_json_test.c

4 years agoFormatted code.
elene-margalit [Thu, 27 Aug 2020 22:19:02 +0000 (00:19 +0200)] 
Formatted code.

4 years agoExtended metric_family unit test to also test new format_metric_distribution function.
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.

4 years agoFix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 21:33:33 +0000 (23:33 +0200)] 
Fix argument in snprintf.

4 years agoFix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 21:23:16 +0000 (23:23 +0200)] 
Fix argument in snprintf.

4 years agoFix argument in snprintf.
elene-margalit [Thu, 27 Aug 2020 21:17:40 +0000 (23:17 +0200)] 
Fix argument in snprintf.

4 years agoAdded error handling for strbuf_printf and fixed formatting in the distribution_marsh...
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.

4 years agoAdded functions distribution_marshal_text, distribution_count_marshal_text and distri...
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.

4 years agoExtended function format_metric to call the new function format_metric_distribution...
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.

4 years agoFormatted code.
elene-margalit [Mon, 24 Aug 2020 15:12:10 +0000 (17:12 +0200)] 
Formatted code.

4 years agoMerge branch 'google-interns-2020' of https://github.com/collectd/collectd into googl...
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

4 years agoFixed return type of distribution_total_counter from double to uint64_t and added...
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.

4 years agoFixed return type from function distribution_total_counter from double to uint64_t
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

4 years agoMerge pull request #3538 from Lana243/google-interns-2020
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

4 years agofix dereferencing null pointer 3538/head
Svetlana Shmidt [Fri, 21 Aug 2020 12:11:52 +0000 (12:11 +0000)] 
fix dereferencing null pointer

4 years agoMerge pull request #3537 from yath/bootstrap
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

4 years agoAdd a bootstrapping script and a sample configuration 3537/head
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

4 years agoMerge pull request #3531 from bkjg/cache
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

4 years agoFormat Makefile.am 3531/head
Barbara Kaczorowska [Wed, 19 Aug 2020 09:48:35 +0000 (11:48 +0200)] 
Format Makefile.am

4 years agoclang format
Barbara Kaczorowska [Wed, 19 Aug 2020 08:21:00 +0000 (08:21 +0000)] 
clang format

4 years agoRemove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 08:20:17 +0000 (08:20 +0000)] 
Remove debug messages

4 years agoFix seg fault in tests
Barbara Kaczorowska [Wed, 19 Aug 2020 08:19:22 +0000 (08:19 +0000)] 
Fix seg fault in tests

4 years agoRemove debug messages
Barbara Kaczorowska [Wed, 19 Aug 2020 07:50:23 +0000 (07:50 +0000)] 
Remove debug messages

4 years agoclang format
Barbara Kaczorowska [Wed, 19 Aug 2020 07:20:55 +0000 (07:20 +0000)] 
clang format

4 years agoFix the bug in the uc_update function
Barbara Kaczorowska [Wed, 19 Aug 2020 07:05:01 +0000 (07:05 +0000)] 
Fix the bug in the uc_update function

4 years agoChange the signature of getters for time to return status of operation
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

4 years agoDelete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 23:58:10 +0000 (23:58 +0000)] 
Delete finished TODOs

4 years agoIntegrate utils_cache_test.c file with new distribution_t structure
Barbara Kaczorowska [Tue, 18 Aug 2020 23:54:45 +0000 (23:54 +0000)] 
Integrate utils_cache_test.c file with new distribution_t structure

4 years agoAdd updating total_sum in distribution_sub function
Barbara Kaczorowska [Tue, 18 Aug 2020 23:34:37 +0000 (23:34 +0000)] 
Add updating total_sum in distribution_sub function

4 years agoFix bug in distribution_percentile 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.

4 years agoAdd implementation of distribution_sub to the distribution.c file
Barbara Kaczorowska [Tue, 18 Aug 2020 23:21:51 +0000 (23:21 +0000)] 
Add implementation of distribution_sub to the distribution.c file

4 years agoAdd VALUE_TYPE_DISTRIBUTION to the metric.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 22:58:18 +0000 (22:58 +0000)] 
Add VALUE_TYPE_DISTRIBUTION to the metric.h file

4 years agoImplement additional functions to the plugin_mock.c 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.

4 years agoDelete finished TODOs
Barbara Kaczorowska [Tue, 18 Aug 2020 22:27:02 +0000 (22:27 +0000)] 
Delete finished TODOs

4 years agoclang format
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:47 +0000 (22:21 +0000)] 
clang format

4 years agoFix tests for uc_get_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 22:21:09 +0000 (22:21 +0000)] 
Fix tests for uc_get_rate_by_name function

4 years agoFix tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:57:55 +0000 (21:57 +0000)] 
Fix tests for uc_get_percentile function

4 years agoFix tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 21:37:33 +0000 (21:37 +0000)] 
Fix tests for uc_get_percentile_by_name function

4 years agoAdd more test cases to unit tests for uc_update 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

4 years agoReplace custom initialization functions with universal ones
Barbara Kaczorowska [Tue, 18 Aug 2020 20:48:19 +0000 (20:48 +0000)] 
Replace custom initialization functions with universal ones

4 years agoclang format
Barbara Kaczorowska [Tue, 18 Aug 2020 19:46:06 +0000 (19:46 +0000)] 
clang format

4 years agoImplement tests for uc_get_rate function
Barbara Kaczorowska [Tue, 18 Aug 2020 19:45:20 +0000 (19:45 +0000)] 
Implement tests for uc_get_rate function

4 years agoFix updating utils cache
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:39 +0000 (18:42 +0000)] 
Fix updating utils cache

4 years agoImplement draft of tests for uc_rate_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 18:42:03 +0000 (18:42 +0000)] 
Implement draft of tests for uc_rate_by_name function

4 years agoRemove DS_TYPE_DISTRIBUTION define
Barbara Kaczorowska [Tue, 18 Aug 2020 17:29:22 +0000 (17:29 +0000)] 
Remove DS_TYPE_DISTRIBUTION define

4 years agoAdd DS_TYPE_DISTRIBUTION to the plugin.h file
Barbara Kaczorowska [Tue, 18 Aug 2020 17:28:20 +0000 (17:28 +0000)] 
Add DS_TYPE_DISTRIBUTION to the plugin.h file

4 years agoAdd nickname of the new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:24:34 +0000 (17:24 +0000)] 
Add nickname of the new author to the license

4 years agoAdd new author to the license
Barbara Kaczorowska [Tue, 18 Aug 2020 17:23:52 +0000 (17:23 +0000)] 
Add new author to the license

4 years agoAdd support for distribution metrics in rate functions
Barbara Kaczorowska [Tue, 18 Aug 2020 17:20:08 +0000 (17:20 +0000)] 
Add support for distribution metrics in rate functions

4 years agoAdd functions for getting last time and update time of cache entry in avl tree
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

4 years agoRemove finished TODO in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 15:42:56 +0000 (15:42 +0000)] 
Remove finished TODO in tests

4 years agoAdd checking correctness of uc_update in tests
Barbara Kaczorowska [Tue, 18 Aug 2020 15:40:25 +0000 (15:40 +0000)] 
Add checking correctness of uc_update in tests

4 years agoImplement tests for uc_get_percentile_by_name function
Barbara Kaczorowska [Tue, 18 Aug 2020 14:52:44 +0000 (14:52 +0000)] 
Implement tests for uc_get_percentile_by_name function

4 years agoImplement tests for uc_get_percentile function
Barbara Kaczorowska [Tue, 18 Aug 2020 10:29:28 +0000 (10:29 +0000)] 
Implement tests for uc_get_percentile function

4 years agoAdd checking if the percent argument is correct
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.

4 years agoAdd test for uc_update function
Barbara Kaczorowska [Tue, 18 Aug 2020 06:54:37 +0000 (06:54 +0000)] 
Add test for uc_update function

4 years agoSuccessfully add tests to Makefile.am
Barbara Kaczorowska [Mon, 17 Aug 2020 13:00:41 +0000 (13:00 +0000)] 
Successfully add tests to Makefile.am

4 years agoAdd checking status after returning from distribution_sub function
Barbara Kaczorowska [Mon, 17 Aug 2020 10:00:47 +0000 (10:00 +0000)] 
Add checking status after returning from distribution_sub function

4 years agoClang format
Barbara Kaczorowska [Mon, 17 Aug 2020 07:26:13 +0000 (07:26 +0000)] 
Clang format

4 years agoAdd skeleton of tests for functions from utils_test.h file
Barbara Kaczorowska [Fri, 14 Aug 2020 14:00:48 +0000 (14:00 +0000)] 
Add skeleton of tests for functions from utils_test.h file

4 years agoAdd utils_cache_test to the Makefile.am
Barbara Kaczorowska [Fri, 14 Aug 2020 12:22:03 +0000 (12:22 +0000)] 
Add utils_cache_test to the Makefile.am