]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
4 years agoMerge pull request #3768 from pj1031999/lock-order google-interns-2020
Barbara Kaczorowska [Fri, 16 Oct 2020 14:06:27 +0000 (16:06 +0200)] 
Merge pull request #3768 from pj1031999/lock-order

Avoid deadlocks.

4 years agoAvoid deadlocks. 3768/head
Paweł Jasiak [Tue, 13 Oct 2020 21:54:45 +0000 (23:54 +0200)] 
Avoid deadlocks.

4 years agoMerge pull request #3587 from bkjg/fix-format-name
Florian Forster [Thu, 1 Oct 2020 08:22:15 +0000 (10:22 +0200)] 
Merge pull request #3587 from bkjg/fix-format-name

Fix seg fault in format_name function

4 years agoMerge pull request #3760 from bkjg/fix-memory-leak-configfile
Florian Forster [Tue, 29 Sep 2020 07:16:02 +0000 (09:16 +0200)] 
Merge pull request #3760 from bkjg/fix-memory-leak-configfile

configfile.c: Fix memory leaks in case of failure

4 years agoFix memory leak in configfile.c 3760/head
Barbara Kaczorowska [Fri, 25 Sep 2020 12:50:13 +0000 (12:50 +0000)] 
Fix memory leak in configfile.c

4 years agoclang format 3587/head
Barbara Kaczorowska [Mon, 21 Sep 2020 10:31:26 +0000 (10:31 +0000)] 
clang format

4 years agoLittle fix
Barbara Kaczorowska [Mon, 21 Sep 2020 10:26:59 +0000 (10:26 +0000)] 
Little fix

4 years agoFix seg fault in format_name
Barbara Kaczorowska [Mon, 21 Sep 2020 10:21:27 +0000 (10:21 +0000)] 
Fix seg fault in format_name

4 years agoMerge pull request #3582 from Lana243/utils-cache-destroy
Barbara Kaczorowska [Thu, 17 Sep 2020 10:23:05 +0000 (12:23 +0200)] 
Merge pull request #3582 from Lana243/utils-cache-destroy

Utils cache destroy

4 years agoadd myself as a contributor 3582/head
Svetlana Shmidt [Wed, 16 Sep 2020 10:07:33 +0000 (10:07 +0000)] 
add myself as a contributor

4 years agofix formatting
Svetlana Shmidt [Wed, 16 Sep 2020 10:03:45 +0000 (10:03 +0000)] 
fix formatting

4 years agoadd uc_destroy to plugin_shuttdown_all
Svetlana Shmidt [Wed, 16 Sep 2020 10:00:57 +0000 (10:00 +0000)] 
add uc_destroy to plugin_shuttdown_all

4 years agofix memory leaks in tests
Svetlana Shmidt [Wed, 16 Sep 2020 10:00:19 +0000 (10:00 +0000)] 
fix memory leaks in tests

4 years agofix all memoty leaks
Svetlana Shmidt [Wed, 16 Sep 2020 09:57:50 +0000 (09:57 +0000)] 
fix all memoty leaks

4 years agoMerge pull request #3578 from bkjg/fix-leaks-write_http
Barbara Kaczorowska [Wed, 16 Sep 2020 09:36:19 +0000 (11:36 +0200)] 
Merge pull request #3578 from bkjg/fix-leaks-write_http

Fix memory leaks in write_http plugin

4 years agomodify cache_free to destroy distributions
Svetlana Shmidt [Wed, 16 Sep 2020 09:35:31 +0000 (09:35 +0000)] 
modify cache_free to destroy distributions

4 years agoadd typed_value_destroy function
Svetlana Shmidt [Wed, 16 Sep 2020 09:27:22 +0000 (09:27 +0000)] 
add typed_value_destroy function

4 years agoMerge pull request #3570 from Lana243/utils-cache
Svetlana Shmidt [Wed, 16 Sep 2020 09:20:04 +0000 (14:20 +0500)] 
Merge pull request #3570 from Lana243/utils-cache

Utils cache: Start value

4 years agoDelete const keyword 3578/head
Barbara Kaczorowska [Tue, 15 Sep 2020 20:54:42 +0000 (22:54 +0200)] 
Delete const keyword

4 years agoMerge pull request #3579 from bkjg/fix-bug-write_http
Florian Forster [Tue, 15 Sep 2020 13:46:48 +0000 (15:46 +0200)] 
Merge pull request #3579 from bkjg/fix-bug-write_http

Fix bug inside write_http plugin

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 agoFix bug inside write_http plugin 3579/head
Barbara Kaczorowska [Tue, 15 Sep 2020 10:02:39 +0000 (10:02 +0000)] 
Fix bug inside write_http plugin

4 years agoclang format
Barbara Kaczorowska [Tue, 15 Sep 2020 09:59:27 +0000 (09:59 +0000)] 
clang format

4 years agoFix memory leaks in write_http plugin
Barbara Kaczorowska [Tue, 15 Sep 2020 09:56:46 +0000 (09:56 +0000)] 
Fix memory leaks in write_http plugin

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 agoMerge pull request #3551 from elene-margalit/google-interns-2020
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

4 years agoClang format 3551/head
elene-margalit [Wed, 9 Sep 2020 22:29:32 +0000 (00:29 +0200)] 
Clang format

4 years agoReplaced function calls to deleted functions.
elene-margalit [Wed, 9 Sep 2020 22:25:19 +0000 (00:25 +0200)] 
Replaced function calls to deleted functions.

4 years agoDeleted already unneccessary functions distribution_marshal_count, distribution_marsh...
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.

4 years agoClang format.
elene-margalit [Wed, 9 Sep 2020 10:40:57 +0000 (12:40 +0200)] 
Clang format.

4 years agoFixed description in header file and changed function name to distribution_total_coun...
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.

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 agoFormatted code.
elene-margalit [Tue, 1 Sep 2020 10:51:29 +0000 (12:51 +0200)] 
Formatted code.

4 years agoRemove test for deleted distribution_marshal_text function.
elene-margalit [Tue, 1 Sep 2020 10:43:44 +0000 (12:43 +0200)] 
Remove test for deleted distribution_marshal_text function.

4 years agoFormatted code.
elene-margalit [Tue, 1 Sep 2020 10:37:03 +0000 (12:37 +0200)] 
Formatted code.

4 years agoRemoved unnecessary function distribution_marshal_text.
elene-margalit [Tue, 1 Sep 2020 10:29:57 +0000 (12:29 +0200)] 
Removed unnecessary function distribution_marshal_text.

4 years agoChanged string formatting in function format_metric_distribution and adjusted unit...
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.

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

4 years agoChanged buffer size in function format_metric_distribution.
elene-margalit [Mon, 31 Aug 2020 10:19:02 +0000 (12:19 +0200)] 
Changed buffer size in function format_metric_distribution.

4 years agoFormatted the code.
elene-margalit [Mon, 31 Aug 2020 10:11:42 +0000 (12:11 +0200)] 
Formatted the code.

4 years agoAdjusted distribution_marshal_text function to Prometheus text format of Histograms...
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.

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