]> git.ipfire.org Git - thirdparty/collectd.git/log
thirdparty/collectd.git
4 years agofix memory leaks in clone unit test 3524/head
Svetlana [Mon, 17 Aug 2020 13:06:35 +0000 (13:06 +0000)] 
fix memory leaks in clone unit test

4 years agofix Makefile.am
Svetlana [Mon, 17 Aug 2020 12:41:39 +0000 (12:41 +0000)] 
fix Makefile.am

4 years agoremove benchmark from Makefile
Svetlana [Mon, 17 Aug 2020 11:56:09 +0000 (11:56 +0000)] 
remove benchmark from Makefile

4 years agoremove benchmark csv files
Svetlana [Mon, 17 Aug 2020 11:53:11 +0000 (11:53 +0000)] 
remove benchmark csv files

4 years agoremove distribution benchmark as full benchmark was created in google-interns-2020...
Svetlana [Mon, 17 Aug 2020 11:31:54 +0000 (11:31 +0000)] 
remove distribution benchmark as full benchmark was created in google-interns-2020 branch

5 years agofix codestyle in distribution data structure
Svetlana [Fri, 14 Aug 2020 11:12:02 +0000 (11:12 +0000)] 
fix codestyle in distribution data structure

5 years agochange includes to collectd.h
Svetlana [Thu, 13 Aug 2020 09:36:34 +0000 (09:36 +0000)] 
change includes to collectd.h

5 years agochange benchmark
Svetlana [Wed, 12 Aug 2020 13:01:25 +0000 (13:01 +0000)] 
change benchmark

5 years agoadd unit test for clone function
Svetlana [Wed, 12 Aug 2020 12:53:17 +0000 (12:53 +0000)] 
add unit test for clone function

5 years agoadd mutexes
Svetlana [Wed, 12 Aug 2020 12:29:20 +0000 (12:29 +0000)] 
add mutexes

5 years agofix distribution clone function
Svetlana [Wed, 12 Aug 2020 11:57:34 +0000 (11:57 +0000)] 
fix distribution clone function

5 years agofix codestyle
Svetlana [Tue, 11 Aug 2020 13:21:45 +0000 (13:21 +0000)] 
fix codestyle

5 years agoremoved unnecessary if condition from the building function
Svetlana [Tue, 11 Aug 2020 13:20:18 +0000 (13:20 +0000)] 
removed unnecessary if condition from the building function

5 years agoadd benchmark for million updates
Svetlana [Fri, 7 Aug 2020 12:15:24 +0000 (12:15 +0000)] 
add benchmark for million updates

5 years agobenchmark done
Svetlana [Fri, 7 Aug 2020 10:39:56 +0000 (10:39 +0000)] 
benchmark done

5 years agoadd benchmark
Svetlana [Thu, 6 Aug 2020 14:27:33 +0000 (14:27 +0000)] 
add benchmark

5 years agoadd unit tests for percentile calculation
Svetlana [Mon, 3 Aug 2020 15:05:40 +0000 (15:05 +0000)] 
add unit tests for percentile calculation

5 years agoadd unit tests for average function
Svetlana [Mon, 3 Aug 2020 13:56:20 +0000 (13:56 +0000)] 
add unit tests for average function

5 years agoadd unit tests for update function
Svetlana [Mon, 3 Aug 2020 13:16:17 +0000 (13:16 +0000)] 
add unit tests for update function

5 years agoadd unit tests for custom constructor + add inf checker to custom constructor
Svetlana [Mon, 3 Aug 2020 09:25:22 +0000 (09:25 +0000)] 
add unit tests for custom constructor + add inf checker to custom constructor

5 years agochange return value from tree getter function
Svetlana [Mon, 3 Aug 2020 08:36:15 +0000 (08:36 +0000)] 
change return value from tree getter function

5 years agoremove libdistribution.la and remove -lm from COMMON_LIBS
Svetlana [Mon, 3 Aug 2020 08:27:20 +0000 (08:27 +0000)] 
remove libdistribution.la and remove -lm from COMMON_LIBS

5 years agofix exponential constructor unit tests
Svetlana [Fri, 31 Jul 2020 12:24:26 +0000 (12:24 +0000)] 
fix exponential constructor unit tests

5 years agoadd some tests for exponential constructor (test failed because of doubles equality...
Svetlana [Fri, 31 Jul 2020 12:11:20 +0000 (12:11 +0000)] 
add some tests for exponential constructor (test failed because of doubles equality check)

5 years agoadd destroy function for bucket_array_t data structure
Svetlana [Fri, 31 Jul 2020 11:54:59 +0000 (11:54 +0000)] 
add destroy function for bucket_array_t data structure

5 years agoadd some unit tests for distribution_new_exponential
Svetlana [Fri, 31 Jul 2020 11:34:32 +0000 (11:34 +0000)] 
add some unit tests for distribution_new_exponential

5 years agoadd some test for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 09:53:49 +0000 (09:53 +0000)] 
add some test for distribution_new_linear

5 years agoadd some unit tests for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 09:44:20 +0000 (09:44 +0000)] 
add some unit tests for distribution_new_linear

5 years agoadd some unit tests for distribution_new_linear
Svetlana [Fri, 31 Jul 2020 09:27:09 +0000 (09:27 +0000)] 
add some unit tests for distribution_new_linear

5 years agoadd checker to bucket getter
Svetlana [Fri, 31 Jul 2020 08:58:41 +0000 (08:58 +0000)] 
add checker to bucket getter

5 years agoadd getter for buckets
Svetlana [Fri, 31 Jul 2020 08:43:23 +0000 (08:43 +0000)] 
add getter for buckets

5 years agoadd some unit tests for distribution_new_linear
Svetlana [Thu, 30 Jul 2020 12:58:53 +0000 (12:58 +0000)] 
add some unit tests for distribution_new_linear

5 years agoadd distribution_num_buckets function
Svetlana [Thu, 30 Jul 2020 10:45:01 +0000 (10:45 +0000)] 
add distribution_num_buckets function

5 years agomove bucket_t declaration to the header file
Svetlana [Thu, 30 Jul 2020 10:37:32 +0000 (10:37 +0000)] 
move bucket_t declaration to the header file

5 years agoadd unit tests into a build system
Svetlana [Thu, 30 Jul 2020 10:32:48 +0000 (10:32 +0000)] 
add unit tests into a build system

5 years agotest ssh commit
Svetlana [Wed, 29 Jul 2020 13:44:44 +0000 (13:44 +0000)] 
test ssh commit

5 years agoadd distribution files to build system
Svetlana [Wed, 29 Jul 2020 13:34:08 +0000 (13:34 +0000)] 
add distribution files to build system

5 years agoadd distribution_test.c file
Svetlana [Wed, 29 Jul 2020 13:33:30 +0000 (13:33 +0000)] 
add distribution_test.c file

5 years agofix compilation errors
Svetlana [Wed, 29 Jul 2020 13:32:49 +0000 (13:32 +0000)] 
fix compilation errors

5 years agochange counter type from size_t to uint64_t
Svetlana Shmidt [Wed, 29 Jul 2020 09:54:11 +0000 (14:54 +0500)] 
change counter type from size_t to uint64_t

5 years agochange memory allocation style
Svetlana Shmidt [Wed, 29 Jul 2020 09:51:51 +0000 (14:51 +0500)] 
change memory allocation style

5 years agoadd checker in average function
Svetlana Shmidt [Wed, 29 Jul 2020 09:38:45 +0000 (14:38 +0500)] 
add checker in average function

5 years agocosmetic changes in custom constructor
Svetlana Shmidt [Wed, 29 Jul 2020 09:34:48 +0000 (14:34 +0500)] 
cosmetic changes in custom constructor

5 years agocosmetical change in linear constructor
Svetlana Shmidt [Wed, 29 Jul 2020 09:29:24 +0000 (14:29 +0500)] 
cosmetical change in linear constructor

5 years agochange exponential constructor
Svetlana Shmidt [Wed, 29 Jul 2020 09:23:23 +0000 (14:23 +0500)] 
change exponential constructor

5 years agoadd comments to header file
Svetlana Shmidt [Tue, 28 Jul 2020 13:46:49 +0000 (18:46 +0500)] 
add comments to header file

5 years agoadd comments to constructor functions
Svetlana Shmidt [Tue, 28 Jul 2020 13:35:46 +0000 (18:35 +0500)] 
add comments to constructor functions

5 years agoadd comments about stroing tree as an array
Svetlana Shmidt [Tue, 28 Jul 2020 13:17:07 +0000 (18:17 +0500)] 
add comments about stroing tree as an array

5 years agoadd license
Svetlana Shmidt [Tue, 28 Jul 2020 12:25:29 +0000 (17:25 +0500)] 
add license

5 years agoadd percentile calculation
Svetlana Shmidt [Tue, 28 Jul 2020 12:12:04 +0000 (17:12 +0500)] 
add percentile calculation

5 years agochange custom sizes to custom boundaries
Svetlana Shmidt [Tue, 28 Jul 2020 11:52:01 +0000 (16:52 +0500)] 
change custom sizes to custom boundaries

5 years agochange heap allocation to stack allocation
Svetlana Shmidt [Tue, 28 Jul 2020 11:44:11 +0000 (16:44 +0500)] 
change heap allocation to stack allocation

5 years agofix code duplication
Svetlana Shmidt [Tue, 28 Jul 2020 09:31:56 +0000 (14:31 +0500)] 
fix code duplication

5 years agofixed factor checker
Svetlana Shmidt [Tue, 28 Jul 2020 09:30:44 +0000 (14:30 +0500)] 
fixed factor checker

5 years agofix attributes
Svetlana Shmidt [Tue, 28 Jul 2020 09:27:04 +0000 (14:27 +0500)] 
fix attributes

5 years agoadd unused attribute
Svetlana Shmidt [Tue, 28 Jul 2020 09:25:18 +0000 (14:25 +0500)] 
add unused attribute

5 years agoadd static keyword to private functions
Svetlana Shmidt [Tue, 28 Jul 2020 09:23:20 +0000 (14:23 +0500)] 
add static keyword to private functions

5 years agoadd distribution_average()
Svetlana Shmidt [Mon, 27 Jul 2020 15:29:42 +0000 (20:29 +0500)] 
add distribution_average()

5 years agoadd distribution_update()
Svetlana Shmidt [Mon, 27 Jul 2020 14:32:30 +0000 (19:32 +0500)] 
add distribution_update()

5 years agoadd distribution_clone()
Svetlana Shmidt [Mon, 27 Jul 2020 11:45:59 +0000 (16:45 +0500)] 
add distribution_clone()

5 years agoadd custom constructor
Svetlana Shmidt [Mon, 27 Jul 2020 10:58:52 +0000 (15:58 +0500)] 
add custom constructor

5 years agofix possible memory leaks in build_distribution_from_bucket_array
Svetlana Shmidt [Mon, 27 Jul 2020 10:50:21 +0000 (15:50 +0500)] 
fix possible memory leaks in build_distribution_from_bucket_array

5 years agoadd exponential constructor
Svetlana Shmidt [Mon, 27 Jul 2020 10:39:53 +0000 (15:39 +0500)] 
add exponential constructor

5 years agoadd build_distribution_from_bucket_array function
Svetlana Shmidt [Mon, 27 Jul 2020 10:21:27 +0000 (15:21 +0500)] 
add build_distribution_from_bucket_array function

5 years agoadd checks + add infinity bucket
Svetlana Shmidt [Mon, 27 Jul 2020 10:11:00 +0000 (15:11 +0500)] 
add checks + add infinity bucket

5 years agoadd linear constructor
Svetlana Shmidt [Fri, 24 Jul 2020 10:04:18 +0000 (15:04 +0500)] 
add linear constructor

5 years agoadd distribution.h
Svetlana Shmidt [Fri, 24 Jul 2020 08:46:34 +0000 (13:46 +0500)] 
add distribution.h

5 years agoMerge pull request #3508 from octo/metric_t
Florian Forster [Wed, 22 Jul 2020 04:48:05 +0000 (06:48 +0200)] 
Merge pull request #3508 from octo/metric_t

Implement metric_t and metric_family_t.

5 years agosrc/daemon/metric.[ch]: Improve doc comments. 3508/head
Florian Forster [Mon, 20 Jul 2020 19:30:05 +0000 (21:30 +0200)] 
src/daemon/metric.[ch]: Improve doc comments.

5 years agostatsd plugin: Rename "metric_type_t" to avoid a name clash.
Florian Forster [Fri, 17 Jul 2020 08:48:32 +0000 (10:48 +0200)] 
statsd plugin: Rename "metric_type_t" to avoid a name clash.

5 years agoformat_json: Rename "label_t" to "keyval_t" in test.
Florian Forster [Fri, 17 Jul 2020 08:36:52 +0000 (10:36 +0200)] 
format_json: Rename "label_t" to "keyval_t" in test.

This is to avoid a name clash with the type defined in "metric.h".

5 years agosrc/testing.h: Support NULL pointers in EXPECT_EQ_STR().
Florian Forster [Thu, 16 Jul 2020 16:20:27 +0000 (18:20 +0200)] 
src/testing.h: Support NULL pointers in EXPECT_EQ_STR().

Changes in "format_graphite" fix the following error:

./src/testing.h:77:56: error: the address of ‘want’ will always evaluate as ‘true’ [-Werror=address]
   77 |              #actual, got__ ? got__ : "(null)", expect ? expect : "(null)");   \

5 years agosrc/testing.h: Support const pointers in CHECK_NOT_NULL().
Florian Forster [Fri, 17 Jul 2020 08:33:14 +0000 (10:33 +0200)] 
src/testing.h: Support const pointers in CHECK_NOT_NULL().

5 years agosrc/daemon/metric.[ch]: Implement metric_family_append().
Florian Forster [Tue, 7 Jul 2020 07:52:57 +0000 (09:52 +0200)] 
src/daemon/metric.[ch]: Implement metric_family_append().

5 years agosrc/daemon/metric.[ch]: Add metric_family_metric_reset().
Florian Forster [Sun, 28 Jun 2020 19:41:47 +0000 (21:41 +0200)] 
src/daemon/metric.[ch]: Add metric_family_metric_reset().

This and metric_family_metric_append() replace the metric_list_{add,reset}
functions.

5 years agosrc/daemon/metric.[ch]: Add metric_label_{get,set,reset}().
Florian Forster [Sun, 28 Jun 2020 19:07:27 +0000 (21:07 +0200)] 
src/daemon/metric.[ch]: Add metric_label_{get,set,reset}().

label_set_{get,add,reset} have been made static, providing the calling
code with a nicer API.

5 years agosrc/daemon/metric.[ch]: Implement metric_parse_identity().
Florian Forster [Tue, 21 Jul 2020 14:43:42 +0000 (16:43 +0200)] 
src/daemon/metric.[ch]: Implement metric_parse_identity().

5 years agosrc/daemon/metric.[ch]: Data types and functions representing metrics.
Florian Forster [Sun, 21 Jun 2020 16:33:58 +0000 (18:33 +0200)] 
src/daemon/metric.[ch]: Data types and functions representing metrics.

This implementation closely mirrors the Prometheus / OpenMetrics
protocol buffer.

A "metric family" is a set of metrics, all with the same name (but
different labels and/or label values). The identity is split between the
two types: the "metric family" holds the "name" while the "metric" holds
the labels. Likewise, the "metric family" holds the metric type, the
"metric" holds the metric value.

This commit contains all required changes to compile the daemon, but
pretty much everything else still fails to build. The tests have not yet
updated either.

5 years agoMerge pull request #3509 from octo/avltree
Florian Forster [Mon, 20 Jul 2020 16:36:27 +0000 (18:36 +0200)] 
Merge pull request #3509 from octo/avltree

avltree: Return errno values; unify argument handling.

5 years agoavltree: Return errno values; unify argument handling. 3509/head
Florian Forster [Thu, 2 Jul 2020 18:52:05 +0000 (20:52 +0200)] 
avltree: Return errno values; unify argument handling.

5 years agoMerge pull request #3507 from octo/remove-absolute
Florian Forster [Fri, 17 Jul 2020 08:12:25 +0000 (10:12 +0200)] 
Merge pull request #3507 from octo/remove-absolute

Tree-wide: Remove support for "absolute" metric values.

5 years agoTree-wide: Remove support for "absolute" metric values. 3507/head
Florian Forster [Thu, 16 Jul 2020 16:55:13 +0000 (18:55 +0200)] 
Tree-wide: Remove support for "absolute" metric values.

5 years agoMerge pull request #3481 from octo/strbuf
Florian Forster [Thu, 16 Jul 2020 18:11:31 +0000 (20:11 +0200)] 
Merge pull request #3481 from octo/strbuf

strbuf: Library that implements printing to a dynamically allocated buffer.

5 years agostrbuf: Update buf->size if realloc succeeds. 3481/head
Florian Forster [Thu, 9 Jul 2020 10:33:09 +0000 (12:33 +0200)] 
strbuf: Update buf->size if realloc succeeds.

5 years agostrbuf: Implenet "strbuf_printn" and "strbuf_print_escaped".
Florian Forster [Sun, 21 Jun 2020 19:23:22 +0000 (21:23 +0200)] 
strbuf: Implenet "strbuf_printn" and "strbuf_print_escaped".

5 years agocommon: Use the strbuf library in format_values().
Florian Forster [Fri, 19 Jun 2020 09:35:19 +0000 (11:35 +0200)] 
common: Use the strbuf library in format_values().

5 years agocommon: Add test for format_values().
Florian Forster [Fri, 19 Jun 2020 09:31:35 +0000 (11:31 +0200)] 
common: Add test for format_values().

5 years agostrbuf: Add STRBUF_CREATE_FIXED, unify naming.
Florian Forster [Fri, 19 Jun 2020 08:14:53 +0000 (10:14 +0200)] 
strbuf: Add STRBUF_CREATE_FIXED, unify naming.

This changes the macro and function name to use "fixed" when a buffer and
its size are provided, and "static" if `sizeof()` is used to determine the
size.

The macros now return and expect a `strbuf_t`, i.e. *not* a pointer. This
makes it easier to see that the buffer is allocated on the stack and may
go out of scope.

The buffer size in the tests has been changed to 9, so that `sizeof(array)`
and `sizeof(pointer)` return different values.

5 years agostrbuf: Improve documentation of exported functions.
Florian Forster [Fri, 19 Jun 2020 07:41:35 +0000 (09:41 +0200)] 
strbuf: Improve documentation of exported functions.

5 years agostrbuf: Add tests for stack allocation.
Florian Forster [Fri, 19 Jun 2020 07:41:19 +0000 (09:41 +0200)] 
strbuf: Add tests for stack allocation.

Add tests for the STRBUF_CREATE[_STATIC] macros. This surfaced a bug with
the STRBUF_DESTROY macro, which was missing `… while (0)` at the end.

5 years agostrbuf: Library that implements printing to a dynamically allocated buffer.
Florian Forster [Mon, 18 Sep 2017 14:35:51 +0000 (16:35 +0200)] 
strbuf: Library that implements printing to a dynamically allocated buffer.

5 years agoMerge pull request #3493 from octo/configfile
Florian Forster [Thu, 9 Jul 2020 15:11:57 +0000 (17:11 +0200)] 
Merge pull request #3493 from octo/configfile

src/daemon/configfile.c: Remove special case for the "libvirt" plugin.

5 years agosrc/daemon/configfile.c: Remove special case for the "libvirt" plugin. 3493/head
Florian Forster [Thu, 2 Jul 2020 18:55:21 +0000 (20:55 +0200)] 
src/daemon/configfile.c: Remove special case for the "libvirt" plugin.

5 years agoMerge pull request #3263 from duckfez/http_output_fix
Matthias Runge [Sat, 6 Jun 2020 17:37:17 +0000 (19:37 +0200)] 
Merge pull request #3263 from duckfez/http_output_fix

write_http no longer writes http response to stdout

5 years agoMerge pull request #3463 from miesi/master
Florian Forster [Wed, 20 May 2020 07:46:25 +0000 (09:46 +0200)] 
Merge pull request #3463 from miesi/master

mysql: report slave_io_running and slave_sql_running

5 years agorun format.sh to comply with coding style 3463/head
Thomas Mieslinger [Wed, 20 May 2020 06:13:13 +0000 (08:13 +0200)] 
run format.sh to comply with coding style

5 years agoreplace long if else with compact code
Thomas Mieslinger [Wed, 20 May 2020 06:09:02 +0000 (08:09 +0200)] 
replace long if else with compact code

5 years agoreplace slave_running with generic bool
Thomas Mieslinger [Wed, 20 May 2020 06:07:12 +0000 (08:07 +0200)] 
replace slave_running with generic bool

5 years agomysql: report slave status running io and sql
Thomas Mieslinger [Wed, 13 May 2020 19:30:20 +0000 (21:30 +0200)] 
mysql: report slave status running io and sql

5 years agoMerge pull request #3458 from octo/man-types-db
Florian Forster [Tue, 12 May 2020 07:04:47 +0000 (09:04 +0200)] 
Merge pull request #3458 from octo/man-types-db

types.db(5): Improve wording and document conventions.